Explorar el Código

处理手机号违规

yuhao hace 5 meses
padre
commit
14c2dd4265
Se han modificado 2 ficheros con 10 adiciones y 8 borrados
  1. 7 5
      pages/member/member.js
  2. 3 3
      pages/shoppingMall/shoppingMall.js

+ 7 - 5
pages/member/member.js

@@ -51,11 +51,13 @@ Page({
51 51
    * 生命周期函数--监听页面显示
52 52
    */
53 53
   onShow: function () {
54
-    // 获取用户折扣等级
55
-    this.getLevel()
56
-    this.getUser()
57
-    this.getAmount()
58
-    this.getCoin()
54
+    if (wx.getStorageSync('token')){
55
+      // 获取用户折扣等级
56
+      this.getLevel()
57
+      this.getUser()
58
+      this.getAmount()
59
+      this.getCoin()
60
+    }
59 61
     if (wx.getStorageSync('token') && this.data.needReqActivity) {
60 62
       this.getUserActivity()
61 63
     }

+ 3 - 3
pages/shoppingMall/shoppingMall.js

@@ -427,7 +427,7 @@ Page({
427 427
       this.getProductCategory(options)
428 428
     })
429 429
     this.productList()
430
-    this.needAddGood()
430
+    // this.needAddGood()
431 431
     // 进入页面判断是否是直接跳转到美妆产品的是的话调用修改类型
432 432
     if (app.globalData.showGoods) {
433 433
       this.gotoGoods()
@@ -506,7 +506,7 @@ Page({
506 506
     }
507 507
     setTimeout(() => {
508 508
       if (this.data.current == 3) {
509
-        this.needAddGood()
509
+        // this.needAddGood()
510 510
       } else {
511 511
         this.needAddCar()
512 512
       }
@@ -632,7 +632,7 @@ Page({
632 632
         }
633 633
         this.onTabsItem(_dataset)
634 634
         if (this.data.current == 3) {
635
-          this.needAddGood()
635
+          // this.needAddGood()
636 636
           return
637 637
         }
638 638
         this.showCarMoney()