Commit 9485d24bc416a75fdb11afa70ff389b062e954f7
1 parent
75550135
我的分销小店的分享
Showing
1 changed file
with
9 additions
and
0 deletions
packageA/pages/distribution/shop/shop.js
| @@ -55,6 +55,15 @@ Page({ | @@ -55,6 +55,15 @@ Page({ | ||
| 55 | getApp().globalData.first_leader = first_leader; | 55 | getApp().globalData.first_leader = first_leader; |
| 56 | this.data.first_leader = first_leader; | 56 | this.data.first_leader = first_leader; |
| 57 | 57 | ||
| 58 | + //调用接口判断是不是会员 | ||
| 59 | + getApp().request.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + first_leader, {}).then(res => { | ||
| 60 | + if (res.data.code == 0) { | ||
| 61 | + getApp().globalData.guide_id = res.data.data.id; | ||
| 62 | + getApp().globalData.guide_pick_id= res.data.data.pickup_id | ||
| 63 | + } | ||
| 64 | + }) | ||
| 65 | + | ||
| 66 | + | ||
| 58 | getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + first_leader, { | 67 | getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + first_leader, { |
| 59 | isShowLoading: false, | 68 | isShowLoading: false, |
| 60 | data: { r: Math.random() }, | 69 | data: { r: Math.random() }, |