Commit d442da71 by 高淑倩

add: 退单详情

parent a6547afa
...@@ -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) {
......
...@@ -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({
//准备复制的数据 //准备复制的数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment