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

商品下单

This commit is contained in:
2023-03-21 18:12:10 +08:00
parent 0e83116550
commit b71d4381d7
9 changed files with 140 additions and 26 deletions

View File

@@ -112,10 +112,23 @@ Page({
}
if (res.confirm) {
wx.showToast({
title: '支付成功',
icon: 'success',
})
(async () => {
let payResult = await orderService.payOrder(this.data.orderId)
console.log("payResult", payResult)
wx.showModal({
title: '支付结果',
content: payResult,
showCancel: false,
complete: (res) => {
wx.navigateBack({
delta: getCurrentPages().length - 1
})
wx.navigateTo({
url: "/pages/shop/orderDetail?orderId=" + this.data.orderId,
})
}
})
})();
}
}
})
@@ -165,4 +178,4 @@ Page({
})
})();
}
})
})