Commit f27294c20a1f15bd0fee29d866067bf9e6e8e293

Authored by yvan.ni
1 parent 5e5c828e

导购的优化

Showing 1 changed file with 4 additions and 1 deletions
@@ -51,7 +51,7 @@ App({ @@ -51,7 +51,7 @@ App({
51 config: null, //门店参数 51 config: null, //门店参数
52 config2: null, //门店配置 52 config2: null, //门店配置
53 code: null, 53 code: null,
54 - user_id:null,//15240065,//6520352,//6520390,//6520352 54 + user_id:null,//6520390,//6520352
55 // user_id:6520314,// qa-6519858,// 55 // user_id:6520314,// qa-6519858,//
56 // user_id:14148118,// qa-6519858,// 56 // user_id:14148118,// qa-6519858,//
57 buy_now: null, 57 buy_now: null,
@@ -124,6 +124,7 @@ App({ @@ -124,6 +124,7 @@ App({
124 getApp().globalData.guide_id = res.data.data.id; 124 getApp().globalData.guide_id = res.data.data.id;
125 } 125 }
126 }) 126 })
  127 + app.promiseGet("/api/weshop/users/getAndUpdateUser/" +user.store_id + "/" + user.user_id, {})
127 128
128 } 129 }
129 wx.setStorageSync("userinfo", user); 130 wx.setStorageSync("userinfo", user);
@@ -140,6 +141,8 @@ App({ @@ -140,6 +141,8 @@ App({
140 if(res.data.code==0){ 141 if(res.data.code==0){
141 app.globalData.userInfo = res.data.data; 142 app.globalData.userInfo = res.data.data;
142 wx.setStorageSync("userinfo",app.globalData.userInfo); 143 wx.setStorageSync("userinfo",app.globalData.userInfo);
  144 + //刷一下导购
  145 + app.promiseGet("/api/weshop/users/getAndUpdateUser/" +app.globalData.setting.stoid + "/" + app.globalData.user_id, {})
143 } 146 }
144 }) 147 })
145 } 148 }