|
|
@@ -116,7 +116,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
getCouponList().then((res) => {
|
|
|
- this.couponList = res || [];
|
|
|
+ this.couponList = res.data || [];
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -133,16 +133,18 @@ export default {
|
|
|
};
|
|
|
const payload = {
|
|
|
couponId: this.couponId,
|
|
|
- deliver: this.deliverList[this.deliverList_.indexOf(this.deliver)],
|
|
|
+ deliver: this.deliverList_[this.deliverList.indexOf(this.deliver)],
|
|
|
canDuplicate: this.canDuplicate,
|
|
|
- nums: this.nums,
|
|
|
- extra: JSON.stringify(extra),
|
|
|
+ nums: Number.parseInt(this.nums),
|
|
|
+ extra: extra,
|
|
|
};
|
|
|
console.log(payload);
|
|
|
deliverCoupon(payload).then((res) => {
|
|
|
console.log(res);
|
|
|
if (res.code === 1) {
|
|
|
this.showSuccessDialog = true;
|
|
|
+ this.showDeliverDialog = false;
|
|
|
+
|
|
|
setTimeout(() => {
|
|
|
this.showSuccessDialog = false;
|
|
|
}, 1000);
|