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 | 55 | getApp().globalData.first_leader = first_leader; |
56 | 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 | 67 | getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + first_leader, { |
59 | 68 | isShowLoading: false, |
60 | 69 | data: { r: Math.random() }, | ... | ... |