Commit ea98a5b483e2cac08739297e8d4d78f4653c04b6

Authored by yvan.ni
1 parent 5934d37c

要先拿到系统的的参数, 再来判断会员是不是有登陆绑定

Showing 1 changed file with 11 additions and 8 deletions
pages/user/plus/plus.js
... ... @@ -93,14 +93,7 @@ Page({
93 93 })
94 94 }
95 95  
96   - //--先判断会员状态--
97   - var user_info = getApp().globalData.userInfo;
98   - if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) {
99   - wx.navigateTo({
100   - url: '/packageE/pages/togoin/togoin?first_leader=' + fir_leader,
101   - })
102   - return false;
103   - }
  96 +
104 97 //-----------商家配置信息----- 等级卡规则,是否又开邀请码,营业员------------
105 98 getApp().request.get("/api/weshop/storeconfig/get/" + store_id, {
106 99 success: function (res) {
... ... @@ -116,6 +109,16 @@ Page({
116 109 });
117 110 }
118 111 });
  112 +
  113 + //--先判断会员状态--
  114 + var user_info = getApp().globalData.userInfo;
  115 + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) {
  116 + wx.navigateTo({
  117 + url: '/packageE/pages/togoin/togoin?first_leader=' + fir_leader,
  118 + })
  119 + return false;
  120 + }
  121 +
119 122 },
120 123  
121 124 /**
... ...