|
|
@@ -496,14 +496,14 @@ export default {
|
|
|
const skuId = this.$route.query.id;
|
|
|
this.dataForm.skuId = skuId;
|
|
|
this.getInfo(skuId);
|
|
|
- this.getCouponList();
|
|
|
+ this.getCouponList(skuId);
|
|
|
},
|
|
|
methods: {
|
|
|
changeCouponList(val){
|
|
|
this.couponName = this.couponList.find(item => item.voucher == val).couponName;
|
|
|
},
|
|
|
- getCouponList(){
|
|
|
- couponList({ actId: this.activeType })
|
|
|
+ getCouponList(id){
|
|
|
+ couponList({ actId: this.activeType,skuId:id })
|
|
|
.then((response) => {
|
|
|
this.couponList = response.data.data;
|
|
|
});
|
|
|
@@ -698,7 +698,7 @@ export default {
|
|
|
this.dialogVisible = false;
|
|
|
if (this.deliveryType == "1") {
|
|
|
var params = {
|
|
|
- voucher:this.data.voucher,
|
|
|
+ voucher:this.voucher,
|
|
|
skuId: this.data.skuId,
|
|
|
skuCount: this.skuCount,
|
|
|
price: this.data.price,
|
|
|
@@ -715,7 +715,7 @@ export default {
|
|
|
};
|
|
|
} else if (this.deliveryType == "4") {
|
|
|
var params = {
|
|
|
- voucher:this.data.voucher,
|
|
|
+ voucher:this.voucher,
|
|
|
skuId: this.data.skuId,
|
|
|
skuCount: this.skuCount,
|
|
|
price: this.data.price,
|
|
|
@@ -727,7 +727,7 @@ export default {
|
|
|
};
|
|
|
} else {
|
|
|
var params = {
|
|
|
- voucher:this.data.voucher,
|
|
|
+ voucher:this.voucher,
|
|
|
skuId: this.data.skuId,
|
|
|
skuCount: this.skuCount,
|
|
|
price: this.data.price,
|