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
d442da71
Commit
d442da71
authored
Aug 24, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 退单详情
parent
a6547afa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
5 deletions
+29
-5
order.js
src/pages/order/order.js
+1
-2
refundDetail.js
src/pages/refundDetail/refundDetail.js
+28
-3
No files found.
src/pages/order/order.js
View file @
d442da71
...
@@ -172,8 +172,7 @@ wxService.page({
...
@@ -172,8 +172,7 @@ wxService.page({
// 退单详情
// 退单详情
handelDetailRf
(
e
)
{
handelDetailRf
(
e
)
{
const
{
id
}
=
e
.
currentTarget
.
dataset
const
{
id
}
=
e
.
currentTarget
.
dataset
console
.
log
(
'id'
,
id
)
wxService
.
router
(
`/pages/refundDetail/refundDetail?id=
${
id
}
`
)
// wxService.router(`/pages/orderDetail/orderDetail?id=${id}`)
},
},
//点击切换tab
//点击切换tab
switchTab
(
e
)
{
switchTab
(
e
)
{
...
...
src/pages/refundDetail/refundDetail.js
View file @
d442da71
...
@@ -5,7 +5,8 @@ Page({
...
@@ -5,7 +5,8 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
showApplyRefundModal
:
false
showApplyRefundModal
:
false
,
id
:
''
},
},
/**
/**
...
@@ -19,9 +20,33 @@ Page({
...
@@ -19,9 +20,33 @@ Page({
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
:
function
()
{
onShow
:
function
()
{
const
{
id
}
=
this
.
options
console
.
log
(
'id'
,
id
)
if
(
id
)
{
this
.
setData
({
id
},()
=>
{
this
.
getRfDetail
(
id
)
})
}
},
getRfDetail
(
id
)
{
// wx.showLoading({
// title: '加载中',
// mask: true
// })
// wxService.get(`/sale/trade/buyer/${id}`).then(res => {
// if (res) {
// const { result, data } = res.data
// if (result == 0) {
// wx.hideLoading()
// this.setData({
// detail: data
// })
// }
// }
// })
},
},
copy
(
e
){
copy
(
e
){
wx
.
setClipboardData
({
wx
.
setClipboardData
({
//准备复制的数据
//准备复制的数据
...
...
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