[新增退款流程、查看物流]
This commit is contained in:
@@ -68,15 +68,42 @@ Page({
|
||||
content : '是否签收',
|
||||
success : res=> {
|
||||
if (res.confirm) {
|
||||
wx.$api.order.goodsSign(this.data.goodsData.order_no).then(res => {
|
||||
//拉起确认收货组件
|
||||
if (wx.openBusinessView) {
|
||||
wx.openBusinessView({
|
||||
businessType: 'weappOrderConfirm',
|
||||
extraData: {
|
||||
merchant_id: this.data.goodsData.payment.mch_id,
|
||||
merchant_trade_no: this.data.goodsData.payment.trade_id
|
||||
},
|
||||
success: ()=> {
|
||||
wx.$api.order.goodsSign(this.data.goodsData.order_no).then(res => {
|
||||
wx.showToast({
|
||||
title:'签收成功',
|
||||
icon:'none'
|
||||
})
|
||||
|
||||
// 获取订单详情
|
||||
this.goodsInfo();
|
||||
}).catch(err => {})
|
||||
},
|
||||
fail: ()=> {
|
||||
wx.showToast({
|
||||
title:'取消收货',
|
||||
icon:'none'
|
||||
})
|
||||
},
|
||||
complete: ()=> {
|
||||
console.log('complete')
|
||||
},
|
||||
});
|
||||
} else {
|
||||
//引导用户升级微信版本
|
||||
wx.showToast({
|
||||
title:'签收成功',
|
||||
icon:'none'
|
||||
title:'请升级微信版本',
|
||||
icon:'none'
|
||||
})
|
||||
|
||||
// 获取订单详情
|
||||
this.goodsInfo();
|
||||
}).catch(err => {})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -125,7 +152,14 @@ Page({
|
||||
// wx.navigateTo({
|
||||
// url: '/pages/mall/webView/webView?url=' + this.data.goodsData.express.url,
|
||||
// })
|
||||
var data = JSON.stringify(this.data.goodsData.express)
|
||||
// 免费的
|
||||
// var data = JSON.stringify(this.data.goodsData.express)
|
||||
// wx.navigateTo({
|
||||
// url: `../logistic/logistic?newData=` + encodeURIComponent(data)
|
||||
// })
|
||||
|
||||
// 花钱的
|
||||
var data = JSON.stringify(this.data.goodsData.order_no)
|
||||
wx.navigateTo({
|
||||
url: `../logistic/logistic?newData=` + encodeURIComponent(data)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user