wx.naviageTo是异步的。这里需要返回语句。
@@ -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();
-})
+})