Commit 1bfdbfcc742a427836cd87a36e07f5c18176e0f5

Authored by yvan.ni
1 parent 2fbf11ce

生日, 评价有礼, 节日有礼 新人礼在领取礼包的时候 "buyFrom": 2 ,保证来源的显示

pages/giftpack/birthdaygift/birthdaygift.js
... ... @@ -140,7 +140,8 @@ Page({
140 140 "actType": 4, //活动类型 1:新人礼、2:评价有礼、3:节日营销、4:生日营销
141 141 "giftBagId": th.data.giftID, //礼包Id
142 142 "storeId": a.stoid, //商家Id
143   - "userId": d.user_id //用户ID
  143 + "userId": d.user_id, //用户ID
  144 + "buyFrom": 2
144 145 };
145 146 var data = JSON.stringify(json);
146 147 var url = th.data.url + "/api/weshop/marketing/free/receive/gift/record/insert";
... ...
pages/giftpack/evaluategift/evaluategift.js
... ... @@ -157,7 +157,8 @@ Page({
157 157 "orderNumber": th.data.orderNumber,
158 158 "orderType": th.data.orderType,
159 159 "orderGoodsId": th.data.orderGoodsId,
160   - "giftBagId": th.data.giftBagId
  160 + "giftBagId": th.data.giftBagId,
  161 + "buyFrom": 2
161 162 };
162 163 var data = JSON.stringify(json);
163 164 var url = th.data.url + "/api/weshop/marketing/free/receive/gift/record/insert";
... ...
pages/giftpack/festival/festival.js
... ... @@ -147,7 +147,8 @@ Page({
147 147 "actType": 3, //活动类型 1:新人礼、2:评价有礼、3:节日营销、4:生日营销
148 148 "giftBagId": th.data.giftID, //礼包Id
149 149 "storeId": a.stoid, //商家Id
150   - "userId": d.user_id //用户ID
  150 + "userId": d.user_id, //用户ID
  151 + "buyFrom": 2
151 152 }
152 153 var data = JSON.stringify(json);
153 154 var url = th.data.url + "/api/weshop/marketing/free/receive/gift/record/insert";
... ...
pages/giftpack/newvipgift/newvipgift.js
... ... @@ -139,7 +139,8 @@ Page({
139 139 "actType": 1, //活动类型 1:新人礼、2:评价有礼、3:节日营销、4:生日营销
140 140 "giftBagId": th.data.giftID, //礼包Id
141 141 "storeId": a.stoid, //商家Id
142   - "userId": d.user_id //用户ID
  142 + "userId": d.user_id, //用户ID
  143 + "buyFrom": 2
143 144 };
144 145 var data = JSON.stringify(json);
145 146 var url = th.data.url + "/api/weshop/marketing/free/receive/gift/record/insert";
... ...