From bd5e56abc40cd6363c3e01fafbfa63e0a8881574 Mon Sep 17 00:00:00 2001 From: "uuz.vva" Date: Mon, 3 May 2021 00:13:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=87=BD=E6=95=B0=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=20(#478)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wx.naviageTo是异步的。这里需要返回语句。 --- litemall-wx/pages/coupon/coupon.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litemall-wx/pages/coupon/coupon.js b/litemall-wx/pages/coupon/coupon.js index e1c12ca4..e18bee28 100644 --- a/litemall-wx/pages/coupon/coupon.js +++ b/litemall-wx/pages/coupon/coupon.js @@ -106,6 +106,7 @@ Page({ wx.navigateTo({ url: "/pages/auth/login/login" }); + return; } let couponId = e.currentTarget.dataset.index @@ -146,4 +147,4 @@ Page({ }); this.getCouponList(); } -}) \ No newline at end of file +})