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
4e58e227
Commit
4e58e227
authored
May 19, 2020
by
Afid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
numberId
parent
5efd6b8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
TransactionDetail.js
view/TransactionDetail.js
+5
-3
No files found.
view/TransactionDetail.js
View file @
4e58e227
...
@@ -22,7 +22,8 @@ class TransactionDetail extends React.Component {
...
@@ -22,7 +22,8 @@ class TransactionDetail extends React.Component {
trans_total
:
''
,
trans_total
:
''
,
point_reduce
:
''
,
point_reduce
:
''
,
transaction_detail
:
[],
transaction_detail
:
[],
detail_trans
:
''
detail_trans
:
''
,
numberId
:
''
}
}
}
}
...
@@ -50,7 +51,8 @@ class TransactionDetail extends React.Component {
...
@@ -50,7 +51,8 @@ class TransactionDetail extends React.Component {
trans_total
:
data
.
trans_total
,
trans_total
:
data
.
trans_total
,
point_reduce
:
data
.
point_reduce
,
point_reduce
:
data
.
point_reduce
,
transaction_detail
:
data
.
transaction_detail
,
transaction_detail
:
data
.
transaction_detail
,
detail_trans
:
data
detail_trans
:
data
,
numberId
:
data
.
id
.
substring
(
0
,
5
)
})
})
console
.
log
(
this
.
state
.
detail_trans
)
console
.
log
(
this
.
state
.
detail_trans
)
// console.log(this.props.route.params.idTrans)
// console.log(this.props.route.params.idTrans)
...
@@ -61,7 +63,7 @@ class TransactionDetail extends React.Component {
...
@@ -61,7 +63,7 @@ class TransactionDetail extends React.Component {
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
header
}
>
<
View
style
=
{
styles
.
header
}
>
<
Text
style
=
{{
fontSize
:
16
,
fontFamily
:
'Gotham-Light'
,
textAlign
:
'center'
}}
>
{
this
.
state
.
detail_trans
.
i
d
}
<
/Text
>
<
Text
style
=
{{
fontSize
:
16
,
fontFamily
:
'Gotham-Light'
,
textAlign
:
'center'
}}
>
{
this
.
state
.
numberI
d
}
<
/Text
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
textAlign
:
'center'
}}
>
{
moment
(
this
.
state
.
detail_trans
.
trans_time
).
format
(
'DD MMMM YYYY HH:mm:ss'
)}
<
/Text
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
textAlign
:
'center'
}}
>
{
moment
(
this
.
state
.
detail_trans
.
trans_time
).
format
(
'DD MMMM YYYY HH:mm:ss'
)}
<
/Text
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
textAlign
:
'center'
}}
>
{
this
.
state
.
detail_trans
.
trans_status_display
}
<
/Text
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
textAlign
:
'center'
}}
>
{
this
.
state
.
detail_trans
.
trans_status_display
}
<
/Text
>
<
/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