Junling Bu 5 years ago
parent
commit
ef34494a09
1 changed files with 0 additions and 6 deletions
  1. 0 6
      litemall-wx/pages/index/index.js

+ 0 - 6
litemall-wx/pages/index/index.js

@@ -124,12 +124,6 @@ Page({
     // 页面关闭
     // 页面关闭
   },
   },
   getCoupon(e) {
   getCoupon(e) {
-    if (!app.globalData.hasLogin) {
-      wx.navigateTo({
-        url: "/pages/auth/login/login"
-      });
-    }
-
     let couponId = e.currentTarget.dataset.index
     let couponId = e.currentTarget.dataset.index
     util.request(api.CouponReceive, {
     util.request(api.CouponReceive, {
       couponId: couponId
       couponId: couponId