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
c15a27d8
Commit
c15a27d8
authored
Mar 17, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单详情
parent
8eb554a4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
10 deletions
+6
-10
order.js
src/pages/order/order.js
+1
-1
orderDetail.js
src/pages/orderDetail/orderDetail.js
+3
-8
refundDetail.js
src/pages/refundDetail/refundDetail.js
+1
-0
project.config.json
src/project.config.json
+1
-1
No files found.
src/pages/order/order.js
View file @
c15a27d8
...
@@ -304,7 +304,7 @@ wxService.page({
...
@@ -304,7 +304,7 @@ wxService.page({
this
.
setData
({
this
.
setData
({
no_data
:
this
.
data
.
orderList
.
length
?
true
:
false
no_data
:
this
.
data
.
orderList
.
length
?
true
:
false
})
})
wx
.
setStorageSync
(
'orderList'
,
this
.
data
.
orderList
)
//
wx.setStorageSync('orderList', this.data.orderList)
})
})
}
}
}
}
...
...
src/pages/orderDetail/orderDetail.js
View file @
c15a27d8
...
@@ -26,16 +26,14 @@ wxService.page({
...
@@ -26,16 +26,14 @@ wxService.page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
this
.
data
.
id
=
options
.
id
;
wx
.
hideShareMenu
()
wx
.
hideShareMenu
()
},
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
:
function
()
{
onShow
:
function
()
{
const
{
id
}
=
this
.
options
const
{
id
}
=
this
.
options
;
let
detailOrderList
=
wx
.
getStorageSync
(
'orderList'
)
let
currentDetail
=
detailOrderList
.
filter
(
item
=>
item
.
id
==
id
)
// /trade/buyer/{id} 订单详情
if
(
id
)
{
if
(
id
)
{
this
.
setData
({
this
.
setData
({
id
id
...
@@ -43,16 +41,13 @@ wxService.page({
...
@@ -43,16 +41,13 @@ wxService.page({
this
.
getOrderDetail
(
id
)
this
.
getOrderDetail
(
id
)
})
})
}
}
// this.setData({
// detail: currentDetail[0]
// })
},
},
getOrderDetail
(
id
){
getOrderDetail
(
id
){
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'加载中'
,
title
:
'加载中'
,
mask
:
true
mask
:
true
})
})
wxService
.
get
(
`/sale/trade/
buy
er/
${
id
}
`
).
then
(
res
=>
{
wxService
.
get
(
`/sale/trade/
sell
er/
${
id
}
`
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
if
(
result
==
0
)
{
...
...
src/pages/refundDetail/refundDetail.js
View file @
c15a27d8
...
@@ -21,6 +21,7 @@ wxService.page({
...
@@ -21,6 +21,7 @@ wxService.page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
this
.
data
.
id
=
options
.
id
;
wx
.
hideShareMenu
()
wx
.
hideShareMenu
()
},
},
...
...
src/project.config.json
View file @
c15a27d8
...
@@ -205,7 +205,7 @@
...
@@ -205,7 +205,7 @@
"id"
:
24
,
"id"
:
24
,
"name"
:
"订单详情"
,
"name"
:
"订单详情"
,
"pathName"
:
"pages/orderDetail/orderDetail"
,
"pathName"
:
"pages/orderDetail/orderDetail"
,
"query"
:
"id=6
61154673541124096
"
,
"query"
:
"id=6
89550313044185088
"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
...
...
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