Browse Source

处理手机号违规

yuhao 5 months ago
parent
commit
14c2dd4265
2 changed files with 10 additions and 8 deletions
  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
   onShow: function () {
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
     if (wx.getStorageSync('token') && this.data.needReqActivity) {
61
     if (wx.getStorageSync('token') && this.data.needReqActivity) {
60
       this.getUserActivity()
62
       this.getUserActivity()
61
     }
63
     }

+ 3 - 3
pages/shoppingMall/shoppingMall.js

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