Commit 2646c3de authored by leiqingsong's avatar leiqingsong

修改会员优惠券选择的bug

parent 1beb5fbb
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
// 领取 // 领取
handleGet() { handleGet() {
let params = { let params = {
couponId: this.awardGood.activityPrize ? this.awardGood.activityPrize.couponId : this.couponDetail.couponId, couponId: this.awardGood.activityPrize ? this.awardGood.activityPrize.couponId : this.couponDetail.id,
unionId: this.userBaseInfo.unionid, unionId: this.userBaseInfo.unionid,
vipId: this.userBaseInfo.vipId vipId: this.userBaseInfo.vipId
}; };
......
...@@ -192,7 +192,7 @@ export default { ...@@ -192,7 +192,7 @@ export default {
this.maxNumber = res.data.activityInfo.joinLimit?.toString(); this.maxNumber = res.data.activityInfo.joinLimit?.toString();
this.totalLimit = res.data.activityInfo.totalLimit?.toString(); this.totalLimit = res.data.activityInfo.totalLimit?.toString();
this.checked_coupon = { this.checked_coupon = {
couponId: res.data.activityInfo.couponId, id: res.data.activityInfo.couponId,
name: res.data.activityInfo.couponName name: res.data.activityInfo.couponName
} }
this.message = res.activityInfo.des; this.message = res.activityInfo.des;
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
// 总发放数量 // 总发放数量
totalLimit: Number(this.totalLimit), totalLimit: Number(this.totalLimit),
couponName: this.checked_coupon.name, couponName: this.checked_coupon.name,
couponId: this.checked_coupon.couponId, couponId: this.checked_coupon.id,
des: this.message, des: this.message,
image: JSON.stringify(this.fileList) image: JSON.stringify(this.fileList)
......
...@@ -420,7 +420,7 @@ export default { ...@@ -420,7 +420,7 @@ export default {
item.probability = p.probability?.toString(); item.probability = p.probability?.toString();
item.preLimit = p.limitReceive?.toString(); item.preLimit = p.limitReceive?.toString();
this.checked_coupon = { this.checked_coupon = {
couponId: p.coupon_id, id: p.couponId,
name: p.couponName name: p.couponName
}; };
prizes.push(item); prizes.push(item);
...@@ -519,7 +519,7 @@ export default { ...@@ -519,7 +519,7 @@ export default {
temp.probability = p.probability; temp.probability = p.probability;
total_probability += Number(p.probability); total_probability += Number(p.probability);
temp.limitReceive = p.preLimit; temp.limitReceive = p.preLimit;
temp.couponId = p.checked_coupon.couponId; temp.couponId = p.checked_coupon.id;
temp.couponName = p.checked_coupon.name; temp.couponName = p.checked_coupon.name;
params_prizeList.push(temp); params_prizeList.push(temp);
}); });
......
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
userInfoResOld: "", userInfoResOld: "",
userInfoResNew: "" userInfoResNew: ""
}, },
flag: 2 flag: 1
}; };
}, },
created() { created() {
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
this.flag = sessionStorage.getItem("role"); this.flag = sessionStorage.getItem("role");
} }
} else { } else {
this.zReadyUserId(); // this.zReadyUserId();
this.zTestGetNowUrlInfo(); this.zTestGetNowUrlInfo();
} }
this.GET_CurrentActive(); this.GET_CurrentActive();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment