Commit ab77ecadcc9d0ec08ba645ce146fc78f83009d33

Authored by yvan.ni
1 parent 7bf27aee

分享导购是自己的优化

packageD/pages/user/coupons/coupons.js
... ... @@ -48,7 +48,7 @@ Page({
48 48 * 生命周期函数--监听页面加载
49 49 */
50 50 onLoad: function (options) {
51   - // _this = this;
  51 + _this = this;
52 52 // this.setData({
53 53 // details: []
54 54 // });
... ...
pages/togoin/togoin.js
... ... @@ -123,7 +123,7 @@ Page({
123 123 wx.setStorageSync("userinfo",e.data.data);
124 124  
125 125 //调用接口判断是不是会员
126   - app.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + user.user_id, {}).then(res => {
  126 + app.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + e.data.data.user_id, {}).then(res => {
127 127 if (res.data.code == 0) {
128 128 getApp().globalData.guide_id = res.data.data.id;
129 129 }
... ...