Commit d442da71 by 高淑倩

add: 退单详情

parent a6547afa
......@@ -172,8 +172,7 @@ wxService.page({
// 退单详情
handelDetailRf(e) {
const { id } = e.currentTarget.dataset
console.log('id', id)
// wxService.router(`/pages/orderDetail/orderDetail?id=${id}`)
wxService.router(`/pages/refundDetail/refundDetail?id=${id}`)
},
//点击切换tab
switchTab(e) {
......
......@@ -5,7 +5,8 @@ Page({
* 页面的初始数据
*/
data: {
showApplyRefundModal:false
showApplyRefundModal:false,
id:''
},
/**
......@@ -19,9 +20,33 @@ Page({
* 生命周期函数--监听页面显示
*/
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){
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