Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
new_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Prasetya Saputra
new_excelso
Commits
5b99a935
Commit
5b99a935
authored
Jun 25, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revisi home soal card_number
parent
dbbc3b2f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
Home.js
view/Home.js
+10
-8
No files found.
view/Home.js
View file @
5b99a935
...
@@ -40,7 +40,8 @@ class Home extends React.Component {
...
@@ -40,7 +40,8 @@ class Home extends React.Component {
is_expired_date
:
true
,
is_expired_date
:
true
,
old_balance_claimed
:
true
,
old_balance_claimed
:
true
,
member_since
:
""
,
member_since
:
""
,
old_balance
:
0
old_balance
:
0
,
card_number
:
''
}
}
}
}
...
@@ -181,6 +182,7 @@ class Home extends React.Component {
...
@@ -181,6 +182,7 @@ class Home extends React.Component {
let
old_balance_claimed
=
dataCard
.
old_balance_claimed
let
old_balance_claimed
=
dataCard
.
old_balance_claimed
let
member_since
=
dataCard
.
member_since
let
member_since
=
dataCard
.
member_since
let
old_balance
=
dataCard
.
old_balance
let
old_balance
=
dataCard
.
old_balance
let
card_number
=
dataCard
.
card_number
this
.
setState
({
this
.
setState
({
point
:
point
,
point
:
point
,
...
@@ -441,7 +443,7 @@ class Home extends React.Component {
...
@@ -441,7 +443,7 @@ class Home extends React.Component {
<
Card
style
=
{{
padding
:
10
,
margin
:
10
,
alignContent
:
'center'
,
backgroundColor
:
'#838383'
}}
>
<
Card
style
=
{{
padding
:
10
,
margin
:
10
,
alignContent
:
'center'
,
backgroundColor
:
'#838383'
}}
>
<
View
style
=
{{
flex
:
1
,
backgroundColor
:
'grey'
,
height
:
150
,
borderRadius
:
20
,
marginRight
:
10
,
marginLeft
:
10
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
flex
:
1
,
backgroundColor
:
'grey'
,
height
:
150
,
borderRadius
:
20
,
marginRight
:
10
,
marginLeft
:
10
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Card Activation'
)}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Card Activation'
,{
cardNumber
:
this
.
state
.
card_number
}
)}
>
<
View
style
=
{{
height
:
50
,
borderRadius
:
20
,
backgroundColor
:
'white'
,
marginRight
:
20
,
marginLeft
:
20
,
}}
>
<
View
style
=
{{
height
:
50
,
borderRadius
:
20
,
backgroundColor
:
'white'
,
marginRight
:
20
,
marginLeft
:
20
,
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
15
}}
>
{
i18n
.
t
(
'Acitvatecard'
)}
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
15
}}
>
{
i18n
.
t
(
'Acitvatecard'
)}
<
/Text
>
<
/View
>
<
/View
>
...
@@ -464,7 +466,7 @@ class Home extends React.Component {
...
@@ -464,7 +466,7 @@ class Home extends React.Component {
<
/View
>
<
/View
>
<
View
style
=
{{
paddingHorizontal
:
10
}}
>
<
View
style
=
{{
paddingHorizontal
:
10
}}
>
<
Text
style
=
{{
textAlign
:
"center"
,
fontSize
:
30
,
color
:
'#c9af6d'
,
fontFamily
:
'Gotham-Black'
}}
>
<
Text
style
=
{{
textAlign
:
"center"
,
fontSize
:
30
,
color
:
'#c9af6d'
,
fontFamily
:
'Gotham-Black'
}}
>
{
this
.
state
.
account
_number
}
{
this
.
state
.
card
_number
}
<
/Text
>
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
line
}
><
/View
>
<
View
style
=
{
styles
.
line
}
><
/View
>
...
@@ -516,7 +518,7 @@ class Home extends React.Component {
...
@@ -516,7 +518,7 @@ class Home extends React.Component {
<
/View
>
<
/View
>
<
View
style
=
{{
paddingHorizontal
:
10
}}
>
<
View
style
=
{{
paddingHorizontal
:
10
}}
>
<
Text
style
=
{{
textAlign
:
"center"
,
fontSize
:
30
,
color
:
'#c9af6d'
,
fontFamily
:
'Gotham-Black'
}}
>
<
Text
style
=
{{
textAlign
:
"center"
,
fontSize
:
30
,
color
:
'#c9af6d'
,
fontFamily
:
'Gotham-Black'
}}
>
{
this
.
state
.
account
_number
}
{
this
.
state
.
card
_number
}
<
/Text
>
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
line
}
><
/View
>
<
View
style
=
{
styles
.
line
}
><
/View
>
...
@@ -575,7 +577,7 @@ class Home extends React.Component {
...
@@ -575,7 +577,7 @@ class Home extends React.Component {
<
/View
>
<
/View
>
<
View
style
=
{{
paddingHorizontal
:
10
}}
>
<
View
style
=
{{
paddingHorizontal
:
10
}}
>
<
Text
style
=
{{
textAlign
:
"center"
,
fontSize
:
30
,
color
:
'#c9af6d'
,
fontFamily
:
'Gotham-Black'
}}
>
<
Text
style
=
{{
textAlign
:
"center"
,
fontSize
:
30
,
color
:
'#c9af6d'
,
fontFamily
:
'Gotham-Black'
}}
>
{
this
.
state
.
account
_number
}
{
this
.
state
.
card
_number
}
<
/Text
>
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
line
}
><
/View
>
<
View
style
=
{
styles
.
line
}
><
/View
>
...
@@ -608,15 +610,15 @@ class Home extends React.Component {
...
@@ -608,15 +610,15 @@ class Home extends React.Component {
<
/View
>
<
/View
>
)
)
}
}
<
View
style
=
{{
flexDirection
:
'row'
,
flex
:
1
,
height
:
40
,
marginTop
:
40
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
flex
:
1
,
height
:
40
,
marginTop
:
40
}}
>
<
View
style
=
{{
justifyContent
:
'center'
,
flex
:
1
}}
>
<
View
style
=
{{
justifyContent
:
'center'
,
flex
:
1
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'TopUpInfo'
)}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'TopUpInfo'
)}
>
<
View
style
=
{{
height
:
40
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
marginRight
:
20
,
marginLeft
:
20
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
height
:
40
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
marginRight
:
20
,
marginLeft
:
20
,
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
14
}}
>
{
i18n
.
t
(
'topup'
)}
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
14
}}
>
{
i18n
.
t
(
'topup'
)}
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
,
flex
:
1
}}
>
<
View
style
=
{{
justifyContent
:
'center'
,
flex
:
1
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
handleuseBalance
()}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
handleuseBalance
()}
>
<
View
style
=
{{
height
:
40
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
marginRight
:
20
,
marginLeft
:
20
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
height
:
40
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
marginRight
:
20
,
marginLeft
:
20
,
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
14
}}
>
{
i18n
.
t
(
'usebalance'
)}
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
14
}}
>
{
i18n
.
t
(
'usebalance'
)}
<
/Text
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment