|
@@ -224,7 +224,11 @@ export default {
|
|
|
|
|
|
// 确认
|
|
// 确认
|
|
confirm() {
|
|
confirm() {
|
|
- console.log(310,this.orderDetail);
|
|
|
|
|
|
+ // 如果用户没有选择纸质优惠券,则返回上一级页面
|
|
|
|
+ if(!this.paperCoupons.length) {
|
|
|
|
+ this.$router.back();
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
|
|
this.$store.dispatch('order/savePaperCoupon', {
|
|
this.$store.dispatch('order/savePaperCoupon', {
|
|
paperCoupons: this.paperCoupons,
|
|
paperCoupons: this.paperCoupons,
|