Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
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
高淑倩
7-Eleven
Commits
7db73f90
Commit
7db73f90
authored
May 24, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 订单详情接口
parent
196898cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
consumptionDetails.js
src/pages/consumptionDetails/consumptionDetails.js
+9
-6
No files found.
src/pages/consumptionDetails/consumptionDetails.js
View file @
7db73f90
...
...
@@ -22,7 +22,7 @@ wxService.page({
{
count
:
1
,
name
:
'牛奶'
,
price
:
112
},
{
count
:
2
,
name
:
'榛果'
,
price
:
5222
},
{
count
:
2
,
name
:
'薯片'
,
price
:
124
},
]
]
,
},
...
...
@@ -36,13 +36,16 @@ wxService.page({
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
const
options
=
this
.
options
console
.
log
(
'options'
,
options
.
memberid
)
onShow
()
{
const
{
orderNo
}
=
this
.
options
console
.
log
(
'orderNo'
,
orderNo
)
if
(
orderNo
){
this
.
initOrderDetail
(
orderNo
)
}
},
initOrderDetail
(){
wxService
.
post
(
`/
order/findById?id=
${
id
}
`
).
then
(
res
=>
{
initOrderDetail
(
orderNo
){
wxService
.
post
(
`/
sale/order/findByOrderNo?orderNo=
${
orderNo
}
`
).
then
(
res
=>
{
this
.
setData
({
orderDetail
:
res
.
data
.
ddat
.
content
})
...
...
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