Commit f1981f6748752dcf65803abaaa5bb60e18303766
1 parent
935c5880
商品分享的导购
Showing
1 changed file
with
6 additions
and
1 deletions
pages/goods/goodsInfo/goodsInfo.js
@@ -314,7 +314,6 @@ Page({ | @@ -314,7 +314,6 @@ Page({ | ||
314 | getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+os.stoid+"/"+first_leader,{}).then(res=>{ | 314 | getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+os.stoid+"/"+first_leader,{}).then(res=>{ |
315 | if(res.data.code==0){ | 315 | if(res.data.code==0){ |
316 | getApp().globalData.guide_id=res.data.data.id; | 316 | getApp().globalData.guide_id=res.data.data.id; |
317 | - console.log("log2---".getApp().globalData.guide_id); | ||
318 | } | 317 | } |
319 | }) | 318 | }) |
320 | } | 319 | } |
@@ -3587,6 +3586,12 @@ Page({ | @@ -3587,6 +3586,12 @@ Page({ | ||
3587 | 'store_id': os.stoid, | 3586 | 'store_id': os.stoid, |
3588 | 'type': 5 | 3587 | 'type': 5 |
3589 | }; | 3588 | }; |
3589 | + | ||
3590 | + //-- 导购ID -- | ||
3591 | + if(getApp().globalData.guide_id){ | ||
3592 | + pdata.guide_id=getApp().globalData.guide_id; | ||
3593 | + } | ||
3594 | + | ||
3590 | var app = getApp(), | 3595 | var app = getApp(), |
3591 | th = this; | 3596 | th = this; |
3592 | app.request.post("/api/weshop/couponList/saveCouponList", { | 3597 | app.request.post("/api/weshop/couponList/saveCouponList", { |