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
cd5e3149
Commit
cd5e3149
authored
Apr 27, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update checkout
parent
baf57aa8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
MenuConfirmation.js
view/MenuConfirmation.js
+16
-10
No files found.
view/MenuConfirmation.js
View file @
cd5e3149
...
@@ -8,27 +8,22 @@ class MenuConfirmation extends React.Component {
...
@@ -8,27 +8,22 @@ class MenuConfirmation extends React.Component {
this
.
state
=
{
this
.
state
=
{
kasproBalance
:
''
,
kasproBalance
:
''
,
kasproPoint
:
''
,
kasproPoint
:
''
,
checkedBalance
:
false
,
checkedPoint
:
false
,
checkedBalancePoint
:
false
,
balanceused
:
0
,
balanceused
:
0
,
pointsused
:
0
,
pointsused
:
0
,
ongkir
:
0
,
ongkir
:
0
,
diskon
:
0
,
diskon
:
0
,
isDelivery
:
false
,
totalOrder
:
0
isPickUp
:
false
// dummyBalance : 155000,
// dummyPoint : 20000
}
}
}
}
render
()
{
render
()
{
console
.
log
(
this
.
props
)
console
.
log
(
this
.
props
)
let
total
=
0
return
(
return
(
<
ScrollView
style
=
{
styles
.
container
}
>
<
ScrollView
style
=
{
styles
.
container
}
>
{
{
this
.
props
.
order_item
.
map
((
item
,
index
)
=>
{
this
.
props
.
order_item
.
map
((
item
,
index
)
=>
{
total
=
total
+
item
.
quantity
*
item
.
price
return
(
return
(
<
View
style
=
{{
margin
:
10
}}
key
=
{
index
}
>
<
View
style
=
{{
margin
:
10
}}
key
=
{
index
}
>
<
View
style
=
{{
flex
:
1
,
margin
:
10
,
flexDirection
:
'row'
,
justifyContent
:
'space-around'
}}
>
<
View
style
=
{{
flex
:
1
,
margin
:
10
,
flexDirection
:
'row'
,
justifyContent
:
'space-around'
}}
>
...
@@ -50,7 +45,7 @@ class MenuConfirmation extends React.Component {
...
@@ -50,7 +45,7 @@ class MenuConfirmation extends React.Component {
})
})
}
}
<
View
style
=
{{
alignItems
:
'flex-end'
,
borderTopWidth
:
1
,
margin
:
10
,
padding
:
10
}}
>
<
View
style
=
{{
alignItems
:
'flex-end'
,
borderTopWidth
:
1
,
margin
:
10
,
padding
:
10
}}
>
<
Text
>
0
<
/Text
>
<
Text
>
{
total
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
margin
:
10
,
justifyContent
:
'space-between'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
margin
:
10
,
justifyContent
:
'space-between'
}}
>
<
View
style
=
{{
margin
:
10
}}
>
<
View
style
=
{{
margin
:
10
}}
>
...
@@ -84,7 +79,7 @@ class MenuConfirmation extends React.Component {
...
@@ -84,7 +79,7 @@ class MenuConfirmation extends React.Component {
<
Text
>
{
this
.
props
.
route
.
params
.
balanceUsed
}
<
/Text
>
<
Text
>
{
this
.
props
.
route
.
params
.
balanceUsed
}
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
margin
:
10
,
justifyContent
:
'space-between'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
margin
:
10
,
justifyContent
:
'space-between'
}}
>
<
View
style
=
{{
margin
:
10
}}
>
<
View
style
=
{{
margin
:
10
}}
>
<
Text
>
Point
Used
<
/Text
>
<
Text
>
Point
Used
<
/Text
>
<
/View
>
<
/View
>
...
@@ -92,6 +87,17 @@ class MenuConfirmation extends React.Component {
...
@@ -92,6 +87,17 @@ class MenuConfirmation extends React.Component {
<
Text
>
{
this
.
props
.
route
.
params
.
pointused
}
<
/Text
>
<
Text
>
{
this
.
props
.
route
.
params
.
pointused
}
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
margin
:
10
,
justifyContent
:
'space-between'
}}
>
<
View
style
=
{{
margin
:
10
}}
>
<
Text
>
Delivery
to
<
/Text
>
<
/View
>
<
View
style
=
{{
margin
:
10
}}
>
<
Text
>
{
this
.
props
.
address
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
margin
:
10
}}
>
<
Button
title
=
'order'
/>
<
/View
>
<
/ScrollView
>
<
/ScrollView
>
)
)
}
}
...
...
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