1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

小程序端确认收货

This commit is contained in:
2023-04-17 23:15:43 +08:00
parent 3e822ba3a0
commit 918917868f
6 changed files with 90 additions and 3 deletions

View File

@@ -188,6 +188,39 @@ Page({
})
},
// 订单状态:已发货,点击确认收货
confirmReceipt() {
// 点击确认收货按钮
wx.showModal({
title: '是否确认收货?',
content: '未收到货时请不要点击确认',
complete: (res) => {
if (res.confirm) {
(async () => {
this.clearPageData()
let confirmResult = await orderService.confirmOrder(this.data.orderId)
console.log("confirmResult", confirmResult)
this.onLoad(this.data._options)
this.refreshMyOrderPage()
wx.showModal({
title: '操作结果',
content: confirmResult || "操作失败,请重试",
showCancel: false,
complete: (res) => {
// wx.navigateBack({
// delta: getCurrentPages().length - 1
// })
// wx.navigateTo({
// url: "/pages/shop/orderDetail?orderId=" + this.data.orderId,
// })
}
})
})();
}
}
})
},
loadPageData() {
(async () => {
console.log("orderId", this.data.orderId)