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
ac03402b
Commit
ac03402b
authored
Jun 04, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add note
parent
d61e607f
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
36 deletions
+37
-36
Item.js
view/Item.js
+7
-5
ItemShopingCart.js
view/ItemShopingCart.js
+6
-4
MenuConfirmation.js
view/MenuConfirmation.js
+1
-0
MenuSelection.js
view/MenuSelection.js
+1
-1
OrderDetail.js
view/OrderDetail.js
+1
-0
TopUpInfo.js
view/TopUpInfo.js
+21
-26
No files found.
view/Item.js
View file @
ac03402b
...
...
@@ -27,13 +27,12 @@ class Item extends React.Component {
code
:
item
.
code
,
name
:
item
.
name
,
description
:
item
.
description
,
note
:
'jangan garing'
,
note
:
this
.
state
.
note
,
image
:
item
.
image
,
price
:
parseInt
(
item
.
price
),
}
this
.
props
.
changeQuantity
({
item
:
order_item
,
quantity
:
qty
})
console
.
log
(
"ini udah masuk sini"
);
}
}
...
...
@@ -57,7 +56,7 @@ class Item extends React.Component {
render
()
{
const
{
item
}
=
this
.
props
// console.log("ini id itemnya "+item.id
)
console
.
log
(
"ini id itemnya "
+
item
.
note
)
return
(
<
View
style
=
{{
flex
:
1
,
margin
:
10
}}
key
=
{
item
.
id
}
ref
=
{
this
.
props
.
_scrollView
}
>
<
Modal
animationType
=
"slide"
...
...
@@ -75,9 +74,12 @@ class Item extends React.Component {
<
TextInput
style
=
{
styles
.
textInput
}
onChangeText
=
{(
note
)
=>
this
.
setState
({
note
})}
value
=
{
this
.
state
.
description
}
textAlign
=
'center'
/>
>
{
this
.
state
.
note
}
{
item
.
note
}
<
/TextInput
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
TouchableOpacity
style
=
{{
margin
:
5
}}
onPress
=
{()
=>
this
.
handleEdit
(
item
)
}
>
...
...
view/ItemShopingCart.js
View file @
ac03402b
...
...
@@ -29,7 +29,7 @@ class ItemShoping extends React.Component {
code
:
item
.
code
,
name
:
item
.
name
,
description
:
item
.
description
,
note
:
this
.
state
.
note
,
note
:
item
.
note
,
image
:
item
.
image
,
price
:
parseInt
(
item
.
price
),
}
...
...
@@ -76,9 +76,12 @@ class ItemShoping extends React.Component {
<
TextInput
style
=
{
styles
.
textInput
}
onChangeText
=
{(
note
)
=>
this
.
setState
({
note
})}
value
=
{
this
.
state
.
note
}
textAlign
=
'center'
/>
>
{
item
.
note
}
<
/TextInput
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
TouchableOpacity
style
=
{{
margin
:
5
}}
onPress
=
{()
=>
this
.
handleEdit
(
item
)
}
>
...
...
@@ -94,7 +97,6 @@ class ItemShoping extends React.Component {
<
/View
>
<
/View
>
<
/View
>
<
/Modal
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
height
:
100
,
marginVertical
:
5
}}
>
<
View
style
=
{{
flex
:
1
,
height
:
100
}}
>
...
...
view/MenuConfirmation.js
View file @
ac03402b
...
...
@@ -275,6 +275,7 @@ class MenuConfirmation extends React.Component {
</View> */
}
<
View
style
=
{{
flex
:
0.4
,
alignItems
:
'baseline'
,
justifyContent
:
'center'
,
alignItems
:
'flex-start'
,
paddingLeft
:
10
}}
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'#838383'
}}
>
{
item
.
name
}
<
/Text
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'#838383'
}}
>
{
item
.
note
}
<
/Text
>
<
/View
>
<
View
style
=
{{
flex
:
0.3
,
alignItems
:
'flex-end'
,
justifyContent
:
'center'
,
paddingRight
:
5
}}
>
{
/* <Text style={{ fontSize: 12, fontFamily: 'Gotham-Light', color:'#838383' }}>{item.quantity * item.price} </Text> */
}
...
...
view/MenuSelection.js
View file @
ac03402b
...
...
@@ -206,7 +206,7 @@ class MenuSelection extends React.Component {
code
:
item
.
code
,
name
:
item
.
name
,
description
:
item
.
description
,
note
:
'jangan garing'
,
note
:
item
.
note
,
image
:
item
.
image
,
price
:
parseInt
(
item
.
price
),
}
...
...
view/OrderDetail.js
View file @
ac03402b
...
...
@@ -245,6 +245,7 @@ class OrderDetail extends React.Component {
<
/View
>
<
View
style
=
{{
flex
:
0.4
,
alignItems
:
'baseline'
,
justifyContent
:
'center'
,
alignItems
:
'flex-start'
,
paddingLeft
:
10
}}
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
}}
>
{
item
.
item_name
}
<
/Text
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
,
top
:
10
}}
>
{
item
.
item_note
}
<
/Text
>
<
/View
>
<
View
style
=
{{
flex
:
0.3
,
alignItems
:
'flex-end'
,
justifyContent
:
'center'
,
paddingRight
:
10
}}
>
{
/* <Text style={{ fontSize: 12, fontFamily: 'Gotham-Light' }}>{item.item_quantity * item.item_price} </Text> */
}
...
...
view/TopUpInfo.js
View file @
ac03402b
...
...
@@ -32,16 +32,17 @@ export default class TopUpInfo extends React.Component {
render
()
{
return
(
<
View
style
=
{
styles
.
container
(
this
.
state
.
statusbar_height
)
}
>
<
View
style
=
{
styles
.
header
}
>
<
View
style
=
{
styles
.
container
}
>
{
/*
<View style={styles.header}>
<Text style={styles.headerTitle}>TOPUP INFO</Text>
<
/View
>
</View>
*/
}
<
ScrollView
>
<
View
style
=
{
styles
.
content
}
>
{
this
.
state
.
topup_info
.
map
((
item
,
i
)
=>
{
return
(
<
View
>
<
View
style
=
{
styles
.
item_container
}
key
=
{
i
}
>
<
Collapse
>
<
CollapseHeader
>
...
...
@@ -55,6 +56,7 @@ export default class TopUpInfo extends React.Component {
<
/CollapseBody
>
<
/Collapse
>
<
/View
>
<
/View
>
)
})
}
...
...
@@ -67,17 +69,10 @@ export default class TopUpInfo extends React.Component {
}
const
styles
=
StyleSheet
.
create
({
container
:
(
marginTop
)
=>
({
container
:
{
flex
:
1
,
marginTop
:
marginTop
,
backgroundColor
:
'white'
,
}),
header
:
{
height
:
60
,
paddingHorizontal
:
10
,
flexDirection
:
'row'
,
backgroundColor
:
'#CFB368'
,
alignItems
:
'center'
backgroundColor
:
'white'
},
headerTitle
:
{
flex
:
1
,
...
...
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