diff --git a/litemall-wx/pages/checkout/checkout.js b/litemall-wx/pages/checkout/checkout.js index ced7b3fc..79c3e82e 100644 --- a/litemall-wx/pages/checkout/checkout.js +++ b/litemall-wx/pages/checkout/checkout.js @@ -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