fix[litemall-wx]: 下单成功后,重置couponId

This commit is contained in:
Junling Bu
2018-12-13 12:57:53 +08:00
parent 00af973129
commit 653f6b3ccd

View File

@@ -141,6 +141,14 @@ Page({
grouponLinkId: this.data.grouponLinkId
}, 'POST').then(res => {
if (res.errno === 0) {
// 下单成功重置couponId
try {
wx.setStorageSync('couponId', 0);
} catch (error) {
}
const orderId = res.data.orderId;
util.request(api.OrderPrepay, {
orderId: orderId