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
972fa6ef
Commit
972fa6ef
authored
Jun 05, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benerin logic metode pembayaran use balance
parent
f95ead32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
Home.js
view/Home.js
+3
-4
UseBalance.js
view/UseBalance.js
+5
-5
No files found.
view/Home.js
View file @
972fa6ef
...
@@ -396,14 +396,14 @@ class Home extends React.Component {
...
@@ -396,14 +396,14 @@ class Home extends React.Component {
// style={styles.submitUpgradePemium}
// style={styles.submitUpgradePemium}
activeOpacity
=
{.
5
}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'TopUpInfo'
)}
>
activeOpacity
=
{.
5
}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'TopUpInfo'
)}
>
<
View
style
=
{
styles
.
topUseBalance
}
>
<
View
style
=
{
styles
.
topUseBalance
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
1
5
}}
>
TOP
UP
BALANCE
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
1
4
}}
>
TOP
UP
BALANCE
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
// style={styles.submitUpgradePemium}
// style={styles.submitUpgradePemium}
activeOpacity
=
{.
5
}
onPress
=
{()
=>
this
.
_useBalance
()}
>
activeOpacity
=
{.
5
}
onPress
=
{()
=>
this
.
_useBalance
()}
>
<
View
style
=
{
styles
.
topUseBalance
}
>
<
View
style
=
{
styles
.
topUseBalance
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
1
5
}}
>
USE
BALANCE
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
1
4
}}
>
USE
BALANCE
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
...
@@ -491,8 +491,7 @@ const styles = StyleSheet.create({
...
@@ -491,8 +491,7 @@ const styles = StyleSheet.create({
height
:
40
,
height
:
40
,
top
:
20
,
top
:
20
,
margin
:
5
,
margin
:
5
,
padding
:
10
,
paddingVertical
:
12
,
paddingBottom
:
10
,
paddingHorizontal
:
16
,
paddingHorizontal
:
16
,
borderRadius
:
10
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
backgroundColor
:
'#CFB368'
,
...
...
view/UseBalance.js
View file @
972fa6ef
...
@@ -61,10 +61,10 @@ class UseBalance extends React.Component {
...
@@ -61,10 +61,10 @@ class UseBalance extends React.Component {
// // Buat Debug
// // Buat Debug
// this.setState({
// this.setState({
// current_balance: '5,000',
// current_balance: '5
00
,000',
// kaspro_point: '
10,00
0',
// kaspro_point: '0',
// kasproBalance: '5,000'.replace(/,/g, ''),
// kasproBalance: '5
00
,000'.replace(/,/g, ''),
// kasproPoint: '
10,00
0'.replace(/,/g, '')
// kasproPoint: '0'.replace(/,/g, '')
// })
// })
// console.log("INI SESSION " + this.props.session_id)
// console.log("INI SESSION " + this.props.session_id)
...
@@ -428,7 +428,7 @@ class UseBalance extends React.Component {
...
@@ -428,7 +428,7 @@ class UseBalance extends React.Component {
<
/View
>
<
/View
>
<
View
style
=
{{
alignItems
:
'center'
}}
>
<
View
style
=
{{
alignItems
:
'center'
}}
>
{
{
this
.
state
.
input_redeem
==
0
||
parseInt
(
this
.
state
.
input_redeem
)
>
parseInt
(
this
.
state
.
kasproPoint
)
+
parseInt
(
this
.
state
.
kasproBalance
)
?
(
this
.
state
.
input_redeem
==
0
||
this
.
state
.
kasproPoint
==
0
||
parseInt
(
this
.
state
.
input_redeem
)
>
parseInt
(
this
.
state
.
kasproPoint
)
+
parseInt
(
this
.
state
.
kasproBalance
)
?
(
<
Card
style
=
{{
margin
:
5
,
padding
:
10
,
backgroundColor
:
'gray'
}}
>
<
Card
style
=
{{
margin
:
5
,
padding
:
10
,
backgroundColor
:
'gray'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
alignItems
:
'center'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
alignItems
:
'center'
}}
>
<
View
>
<
View
>
...
...
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