Commit 1f274c78ea38f92205707e450f8f9b723ee0b899

Authored by 前端开发-罗建龙
1 parent 995332c3

导购评价有礼优化

packageB/pages/evaluate/evaluate.js
... ... @@ -26,7 +26,8 @@ Page({
26 26 is_act:0, //是否能购获取图片
27 27 actId:0, //活动ID
28 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 243 this.setData({ftype:parseInt(options.fromtype)}) ;
243 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 251 //th.query_bea();
246 252  
247 253 var userinfo=getApp().globalData.userInfo;
... ... @@ -288,8 +294,9 @@ Page({
288 294 console.log(id,"订单", this.data.number);
289 295  
290 296 var ty=this.data.ftype?this.data.ftype:2;
  297 + var isdg = this.data.isdg
291 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 189 "giftBagId": th.data.giftBagId,
190 190 "buyFrom": 2
191 191 };
  192 + if (th.data.isdg) {
  193 + json.isdg=th.data.isdg
  194 + }
192 195 var data = JSON.stringify(json);
193 196 var url = th.data.url + "/api/weshop/marketing/free/receive/gift/record/insert";
194 197 getApp().request.json_post(url, json,
... ...