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
c1d0391c
Commit
c1d0391c
authored
Jun 04, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://repo.cs.co.id:2222/wahyu/bahanoprek
parents
b5240593
a5abe414
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
20 deletions
+21
-20
OrderDetail.js
view/OrderDetail.js
+3
-4
RatingOrder.js
view/RatingOrder.js
+18
-16
No files found.
view/OrderDetail.js
View file @
c1d0391c
...
@@ -169,13 +169,13 @@ class OrderDetail extends React.Component {
...
@@ -169,13 +169,13 @@ class OrderDetail extends React.Component {
<
/View
>
<
/View
>
<
View
>
<
View
>
<
/View
>
<
/View
>
<
View
style
=
{{
margin
:
5
}}
>
<
View
style
=
{{
margin
:
5
,
flexDirection
:
'row'
}}
>
<
TouchableOpacity
style
=
{{
marginBottom
:
10
}}
onPress
=
{()
=>
this
.
handleOrderCancel
()}
>
<
TouchableOpacity
style
=
{{
margin
:
5
}}
onPress
=
{()
=>
this
.
handleOrderCancel
()}
>
<
View
style
=
{
styles
.
button2
}
>
<
View
style
=
{
styles
.
button2
}
>
<
Text
style
=
{{
color
:
'white'
,
fontWeight
:
'bold'
,
fontSize
:
16
}}
>
Cancel
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
fontWeight
:
'bold'
,
fontSize
:
16
}}
>
Cancel
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
handleBack
()}
>
<
TouchableOpacity
style
=
{{
margin
:
5
}}
onPress
=
{()
=>
this
.
handleBack
()}
>
<
View
style
=
{
styles
.
button2
}
>
<
View
style
=
{
styles
.
button2
}
>
<
Text
style
=
{{
color
:
'white'
,
fontWeight
:
'bold'
,
fontSize
:
16
}}
>
Back
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
fontWeight
:
'bold'
,
fontSize
:
16
}}
>
Back
<
/Text
>
<
/View
>
<
/View
>
...
@@ -363,7 +363,6 @@ class OrderDetail extends React.Component {
...
@@ -363,7 +363,6 @@ class OrderDetail extends React.Component {
<
/View
>
<
/View
>
{
{
this
.
state
.
trans_status
==
0
?
(
<
TouchableOpacity
onPress
=
{()
=>
this
.
handleCancel
()}
>
this
.
state
.
trans_status
==
0
?
(
<
TouchableOpacity
onPress
=
{()
=>
this
.
handleCancel
()}
>
<
View
style
=
{
styles
.
button
}
>
<
View
style
=
{
styles
.
button
}
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
16
,
fontFamily
:
'Gotham-Black'
}}
>
Cancel
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
16
,
fontFamily
:
'Gotham-Black'
}}
>
Cancel
<
/Text
>
<
/View
>
<
/View
>
...
...
view/RatingOrder.js
View file @
c1d0391c
...
@@ -75,8 +75,7 @@ class RatingOrder extends React.Component {
...
@@ -75,8 +75,7 @@ class RatingOrder extends React.Component {
}
}
review
()
{
review
()
{
let
parameter
=
{
let
paramater
=
{
session_id
:
this
.
props
.
session_id
,
session_id
:
this
.
props
.
session_id
,
transaction_id
:
this
.
props
.
route
.
params
.
idTrans
,
transaction_id
:
this
.
props
.
route
.
params
.
idTrans
,
rating
:
this
.
state
.
rating
,
rating
:
this
.
state
.
rating
,
...
@@ -84,18 +83,20 @@ class RatingOrder extends React.Component {
...
@@ -84,18 +83,20 @@ class RatingOrder extends React.Component {
lat
:
this
.
props
.
lat
,
lat
:
this
.
props
.
lat
,
long
:
this
.
props
.
long
long
:
this
.
props
.
long
}
}
if
(
parameter
.
rating
<
4
&&
parameter
.
review
==
""
)
{
console
.
log
(
"INI PARAMS"
+
JSON
.
stringify
(
paramater
));
Alert
.
alert
(
''
,
'Review Wajib Diisi !'
);
}
else
{
Axios
.
post
(
'https://excelsocrm.ravintoladev.com/crm/v2/review/transaction'
,
paramater
).
then
(
res
=>
{
Alert
.
alert
(
''
,
'Terimakasih Atas masukan anda!'
)
Axios
.
post
(
'https://excelsocrm.ravintoladev.com/crm/v2/review/transaction'
,
parameter
).
then
(
res
=>
{
this
.
props
.
navigation
.
navigate
(
'Home'
);
Alert
.
alert
(
''
,
'Terimakasih Atas masukan anda!'
)
this
.
props
.
navigation
.
navigate
(
'Home'
);
}).
catch
(
error
=>
{
console
.
log
(
"INI error "
+
error
)
}).
catch
(
error
=>
{
let
response
=
error
.
response
.
data
;
console
.
log
(
"INI error "
+
error
)
Alert
.
alert
(
response
.
msg
);
let
response
=
error
.
response
.
data
;
})
Alert
.
alert
(
response
.
msg
);
})
}
}
}
render
()
{
render
()
{
...
@@ -114,13 +115,14 @@ class RatingOrder extends React.Component {
...
@@ -114,13 +115,14 @@ class RatingOrder extends React.Component {
size
=
{
30
}
size
=
{
30
}
/
>
/
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
3
,
top
:
10
}}
>
Review
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
3
,
top
:
10
}}
>
Review
<
/Text
>
<
TextInput
style
=
{{
height
:
150
,
borderWidth
:
1
,
padding
:
5
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
,
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
color
:
'grey'
,
fontWeight
:
'bold'
,
fontSize
:
20
,
top
:
20
}}
<
TextInput
style
=
{{
height
:
150
,
borderWidth
:
1
,
padding
:
10
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
,
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
color
:
'grey'
,
fontWeight
:
'bold'
,
fontSize
:
20
,
top
:
20
}}
onChangeText
=
{(
review
)
=>
this
.
setState
({
review
})}
onChangeText
=
{(
review
)
=>
this
.
setState
({
review
})}
value
=
{
this
.
state
.
review
}
value
=
{
this
.
state
.
review
}
autoCapitalize
=
"none"
autoCapitalize
=
"none"
value
=
{
this
.
state
.
review
}
value
=
{
this
.
state
.
review
}
multiline
=
{
true
}
multiline
=
{
true
}
numberOfLines
=
{
5
}
numberOfLines
=
{
4
}
blurOnSubmit
=
{
false
}
/
>
/
>
<
TouchableOpacity
style
=
{{
height
:
100
}}
onPress
=
{()
=>
this
.
review
()}
>
<
TouchableOpacity
style
=
{{
height
:
100
}}
onPress
=
{()
=>
this
.
review
()}
>
...
...
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