From 653f6b3ccdfd798b7b75f49e01466b28fd3b5577 Mon Sep 17 00:00:00 2001 From: Junling Bu Date: Thu, 13 Dec 2018 12:57:53 +0800 Subject: [PATCH] =?UTF-8?q?fix[litemall-wx]:=20=E4=B8=8B=E5=8D=95=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E5=90=8E=EF=BC=8C=E9=87=8D=E7=BD=AEcouponId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-wx/pages/checkout/checkout.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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