Commit 653f6b3c authored by Junling Bu's avatar Junling Bu
Browse files

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

parent 00af9731
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment