diff --git a/packageA/pages/activity_share/activity_share.js b/packageA/pages/activity_share/activity_share.js index b7bd371..2c7e35a 100644 --- a/packageA/pages/activity_share/activity_share.js +++ b/packageA/pages/activity_share/activity_share.js @@ -159,7 +159,7 @@ Page({ imageUrl: img, }; th.setData({share_hidden:1}); - th.insert_act_share(title,lbid); + th.insert_act_share(title,lbid,6); return ob; }else{ //---秒杀,拼团,促销--- @@ -180,13 +180,17 @@ Page({ imageUrl: img, }; th.setData({share_hidden:1,share_good:null}); - + + var ind=3;//秒杀活动分享 + if(item.prom_type==6){ + ind=4; + } //插入活动 if(item.prom_type==3){ var hui_active=this.data.hui_active; - th.insert_act_share(hui_active.name,hui_active.id); - }else{ - th.insert_act_share(item.title,item.id); + th.insert_act_share(hui_active.name,hui_active.id,5); + }else{ + th.insert_act_share(item.title,item.id,ind); } return ob; @@ -1111,13 +1115,13 @@ Page({ }, //-- 推送活动分享 -- - insert_act_share:function(title,actid){ + insert_act_share:function(title,actid,ind){ var th = this; var url="/api/weshop/sharetypeList/save"; var req_data={ shareActId:actid, shareActName:title, - shareType:3, + shareType:ind, shareUserId:th.data.first_leader, shareStaffId:th.data.StaffId, shareStorageId:th.data.StorageId, diff --git a/packageA/pages/live_share/live_share.js b/packageA/pages/live_share/live_share.js index 9dc0903..c2d1c9c 100644 --- a/packageA/pages/live_share/live_share.js +++ b/packageA/pages/live_share/live_share.js @@ -202,7 +202,7 @@ Page({ var req_data={ shareActId:actid, shareActName:title, - shareType:4, + shareType:7, shareUserId:th.data.first_leader, shareStaffId:th.data.StaffId, shareStorageId:th.data.StorageId, diff --git a/packageA/pages/quan_list/quan_list.js b/packageA/pages/quan_list/quan_list.js index 44058ac..f1a13f0 100644 --- a/packageA/pages/quan_list/quan_list.js +++ b/packageA/pages/quan_list/quan_list.js @@ -108,6 +108,10 @@ Page({ 'store_id': os.stoid, 'type': 5 }; + //-- 导购ID -- + if(getApp().globalData.guide_id){ + pdata.guide_id=getApp().globalData.guide_id; + } var app = getApp(), th = this; app.request.post("/api/weshop/couponList/saveCouponList", { diff --git a/packageA/pages/quan_pro/quan_pro.js b/packageA/pages/quan_pro/quan_pro.js index 0d7b01d..e5c6b48 100644 --- a/packageA/pages/quan_pro/quan_pro.js +++ b/packageA/pages/quan_pro/quan_pro.js @@ -102,6 +102,12 @@ Page({ 'store_id': os.stoid, 'type': 5 }; + + //-- 分享导购ID -- + if(getApp().globalData.guide_id){ + pdata.guide_id=getApp().globalData.guide_id; + } + var app = getApp(), th = this; app.request.post("/api/weshop/couponList/saveCouponList", { diff --git a/pages/giftpack/giftpacklist/giftpacklist.js b/pages/giftpack/giftpacklist/giftpacklist.js index 018e713..5d1f2c8 100644 --- a/pages/giftpack/giftpacklist/giftpacklist.js +++ b/pages/giftpack/giftpacklist/giftpacklist.js @@ -100,6 +100,12 @@ Page({ "userId": d.user_id, //用户ID "buyFrom": 2 }; + + //-- 分享导购要记录 -- + if(getApp().globalData.guide_id){ + json.guide_id=getApp().globalData.guide_id; + } + var data = JSON.stringify(json); var url = that.url + "/api/weshop/marketing/buy/receive/gift/record/insert";