Commit 75ed65331321e1d3030643be5d56c73406bf8638

Authored by yvan.ni
1 parent fae4eea4

获取默认的手机号

Showing 1 changed file with 9 additions and 0 deletions
... ... @@ -135,6 +135,15 @@ App({
135 135 }
136 136 })
137 137 }
  138 +
  139 + else if(app.globalData.user_id){ //启用默认的user_id
  140 + app.promiseGet("/api/weshop/users/get/" + app.globalData.setting.stoid + "/" + app.globalData.user_id,{}).then(res=>{
  141 + if(res.data.code==0){
  142 + app.globalData.userInfo = res.data.data;
  143 + wx.setStorageSync("userinfo",app.globalData.userInfo);
  144 + }
  145 + })
  146 + }
138 147 }
139 148 wx.getSystemInfo({
140 149 success: (res) => {
... ...