Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_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
clone_excelso
Commits
897f4248
Commit
897f4248
authored
May 29, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use balance pin
parent
87d5cd48
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
UseBalance.js
view/UseBalance.js
+18
-6
No files found.
view/UseBalance.js
View file @
897f4248
...
...
@@ -15,6 +15,7 @@ class UseBalance extends React.Component {
redeem_balance
:
0
,
redeem_point
:
0
,
modalVisible
:
false
,
pin
:
''
}
}
...
...
@@ -49,7 +50,19 @@ class UseBalance extends React.Component {
})
}
handleBack
(){
this
.
setState
({
modalVisible
:
false
})
}
handleSubmit
(){
this
.
redeem
()
this
.
setState
({
modalVisible
:
false
,
pin
:
''
,
})
}
modal
()
{
this
.
setState
({
modalVisible
:
true
...
...
@@ -64,7 +77,7 @@ class UseBalance extends React.Component {
}
else
{
let
params
=
{
session_id
:
this
.
props
.
session_id
,
pin
:
''
,
pin
:
this
.
state
.
pin
,
balance
:
this
.
state
.
redeem_balance
,
point
:
this
.
state
.
redeem_point
}
...
...
@@ -82,7 +95,6 @@ class UseBalance extends React.Component {
})
}
}
render
()
{
...
...
@@ -102,17 +114,17 @@ class UseBalance extends React.Component {
<
View
style
=
{{
margin
:
10
}}
>
<
TextInput
style
=
{
styles
.
textInput
}
onChangeText
=
{(
reason
)
=>
this
.
setState
({
reaso
n
})}
value
=
{
this
.
state
.
reaso
n
}
onChangeText
=
{(
pin
)
=>
this
.
setState
({
pi
n
})}
value
=
{
this
.
state
.
pi
n
}
textAlign
=
'center'
/>
<
/View
>
<
View
>
<
/View
>
<
View
style
=
{{
margin
:
5
}}
>
<
TouchableOpacity
style
=
{{
marginBottom
:
10
}}
onPress
=
{()
=>
this
.
handle
OrderCancel
()}
>
<
TouchableOpacity
style
=
{{
marginBottom
:
10
}}
onPress
=
{()
=>
this
.
handle
Submit
()}
>
<
View
style
=
{
styles
.
button2
}
>
<
Text
style
=
{{
color
:
'white'
,
fontWeight
:
'bold'
,
fontSize
:
16
}}
>
Cancel
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
fontWeight
:
'bold'
,
fontSize
:
16
}}
>
submit
<
/Text
>
<
/View
>
<
/TouchableOpacity
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
handleBack
()}
>
...
...
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