From 9c89fcd30af31c171a25ee0fa0f11d398cad6b94 Mon Sep 17 00:00:00 2001 From: gooking Date: Sat, 13 May 2017 13:58:45 +0800 Subject: [PATCH] create order , clear shop car --- pages/to-pay-order/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/to-pay-order/index.js b/pages/to-pay-order/index.js index 3640cdbd..ef54d9ed 100644 --- a/pages/to-pay-order/index.js +++ b/pages/to-pay-order/index.js @@ -91,8 +91,12 @@ Page({ }) return; } - - + // 清空购物车数据 + wx.removeStorageSync('shopCarInfo'); + // 下单成功,跳转到订单管理界面 + wx.reLaunch({ + url: "/pages/order-list/index" + }); } }) },