Commit 1f274c78ea38f92205707e450f8f9b723ee0b899
1 parent
995332c3
导购评价有礼优化
Showing
2 changed files
with
12 additions
and
2 deletions
packageB/pages/evaluate/evaluate.js
@@ -26,7 +26,8 @@ Page({ | @@ -26,7 +26,8 @@ Page({ | ||
26 | is_act:0, //是否能购获取图片 | 26 | is_act:0, //是否能购获取图片 |
27 | actId:0, //活动ID | 27 | actId:0, //活动ID |
28 | giftBagId:0, //礼包ID | 28 | giftBagId:0, //礼包ID |
29 | - ftype:0 | 29 | + ftype:0, |
30 | + isdg:0, //是否是导购 | ||
30 | 31 | ||
31 | }, | 32 | }, |
32 | //点击星级 | 33 | //点击星级 |
@@ -242,6 +243,11 @@ Page({ | @@ -242,6 +243,11 @@ Page({ | ||
242 | this.setData({ftype:parseInt(options.fromtype)}) ; | 243 | this.setData({ftype:parseInt(options.fromtype)}) ; |
243 | if(options.fromtype==4 || options.fromtype==1 ) th.judge_act(); | 244 | if(options.fromtype==4 || options.fromtype==1 ) th.judge_act(); |
244 | } | 245 | } |
246 | + if (options.isdg) { | ||
247 | + this.setData({ | ||
248 | + isdg:options.isdg | ||
249 | + }) | ||
250 | + } | ||
245 | //th.query_bea(); | 251 | //th.query_bea(); |
246 | 252 | ||
247 | var userinfo=getApp().globalData.userInfo; | 253 | var userinfo=getApp().globalData.userInfo; |
@@ -288,8 +294,9 @@ Page({ | @@ -288,8 +294,9 @@ Page({ | ||
288 | console.log(id,"订单", this.data.number); | 294 | console.log(id,"订单", this.data.number); |
289 | 295 | ||
290 | var ty=this.data.ftype?this.data.ftype:2; | 296 | var ty=this.data.ftype?this.data.ftype:2; |
297 | + var isdg = this.data.isdg | ||
291 | wx.redirectTo({ | 298 | wx.redirectTo({ |
292 | - url: "/pages/giftpack/evaluategift/evaluategift?actId="+id+ "&orderType="+ty+"&orderNumber="+this.data.number+"&isdg=1" | 299 | + url: "/pages/giftpack/evaluategift/evaluategift?actId="+id+ "&orderType="+ty+"&orderNumber="+this.data.number+"&isdg="+isdg |
293 | }); | 300 | }); |
294 | 301 | ||
295 | }, | 302 | }, |
pages/giftpack/evaluategift/evaluategift.js
@@ -189,6 +189,9 @@ Page({ | @@ -189,6 +189,9 @@ Page({ | ||
189 | "giftBagId": th.data.giftBagId, | 189 | "giftBagId": th.data.giftBagId, |
190 | "buyFrom": 2 | 190 | "buyFrom": 2 |
191 | }; | 191 | }; |
192 | + if (th.data.isdg) { | ||
193 | + json.isdg=th.data.isdg | ||
194 | + } | ||
192 | var data = JSON.stringify(json); | 195 | var data = JSON.stringify(json); |
193 | var url = th.data.url + "/api/weshop/marketing/free/receive/gift/record/insert"; | 196 | var url = th.data.url + "/api/weshop/marketing/free/receive/gift/record/insert"; |
194 | getApp().request.json_post(url, json, | 197 | getApp().request.json_post(url, json, |