[新增退款流程、查看物流]

This commit is contained in:
2023-11-01 17:08:36 +08:00
parent 9acf8137af
commit a3ee59adda
29 changed files with 1391 additions and 190 deletions

View File

@@ -97,25 +97,64 @@ Page({
* 订单签收
*/
signClick(e) {
console.log(e.currentTarget.dataset)
let payment = e.currentTarget.dataset.payment,
orderNo = e.currentTarget.dataset.order_no
wx.showModal({
title : '提示',
content : '是否签收',
success : res=> {
if (res.confirm) {
wx.$api.order.goodsSign(e.currentTarget.dataset.order_no).then(res => {
//拉起确认收货组件
if (wx.openBusinessView) {
wx.openBusinessView({
businessType: 'weappOrderConfirm',
extraData: {
merchant_id: payment.mch_id,
merchant_trade_no: payment.trade_id
},
success: ()=> {
wx.$api.order.goodsSign(e.currentTarget.dataset.order_no).then(res => {
wx.showToast({
title:'签收成功',
icon:'none'
})
// 获取订单列表
this.listInfo()
}).catch(err => {})
},
fail: ()=> {
wx.showToast({
title:'取消收货',
icon:'none'
})
},
complete: ()=> {
console.log('complete')
},
});
} else {
//引导用户升级微信版本
wx.showToast({
title:'签收成功',
icon:'none'
title:'请升级微信版本',
icon:'none'
})
// 获取订单列表
this.listInfo()
}).catch(err => {})
}
}
}
})
},
/**
* 退货售后
*/
refundClick(no){
wx.navigateTo({
url: '/pages/order/refundForm/refundForm?order_no=' + no.currentTarget.dataset.order_no
})
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/