Commit ab77ecadcc9d0ec08ba645ce146fc78f83009d33
1 parent
7bf27aee
分享导购是自己的优化
Showing
2 changed files
with
2 additions
and
2 deletions
packageD/pages/user/coupons/coupons.js
| @@ -48,7 +48,7 @@ Page({ | @@ -48,7 +48,7 @@ Page({ | ||
| 48 | * 生命周期函数--监听页面加载 | 48 | * 生命周期函数--监听页面加载 |
| 49 | */ | 49 | */ |
| 50 | onLoad: function (options) { | 50 | onLoad: function (options) { |
| 51 | - // _this = this; | 51 | + _this = this; |
| 52 | // this.setData({ | 52 | // this.setData({ |
| 53 | // details: [] | 53 | // details: [] |
| 54 | // }); | 54 | // }); |
pages/togoin/togoin.js
| @@ -123,7 +123,7 @@ Page({ | @@ -123,7 +123,7 @@ Page({ | ||
| 123 | wx.setStorageSync("userinfo",e.data.data); | 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 | if (res.data.code == 0) { | 127 | if (res.data.code == 0) { |
| 128 | getApp().globalData.guide_id = res.data.data.id; | 128 | getApp().globalData.guide_id = res.data.data.id; |
| 129 | } | 129 | } |