|
@@ -197,7 +197,7 @@
|
197
|
197
|
<div v-if="1==1">
|
198
|
198
|
<div>
|
199
|
199
|
<div class="coupon-ps"
|
200
|
|
- v-for="item,index in isSelectCoup"
|
|
200
|
+ v-for="item,index in isSelectCoupList"
|
201
|
201
|
:key="index">
|
202
|
202
|
<div>{{item.coupon_name}}</div>
|
203
|
203
|
<div class="cou-price"
|
|
@@ -296,7 +296,7 @@
|
296
|
296
|
</li>
|
297
|
297
|
</ul>
|
298
|
298
|
<div class="coupon-confirm"
|
299
|
|
- @click="isCoupun=false">确认</div>
|
|
299
|
+ @click="isCoupunConfirm">确认</div>
|
300
|
300
|
</div>
|
301
|
301
|
</mine-pupop>
|
302
|
302
|
<!-- 选择项目 -->
|
|
@@ -628,6 +628,7 @@ export default {
|
628
|
628
|
coupSelectType: '',
|
629
|
629
|
productDiscount: '',
|
630
|
630
|
isSelectCoup: [], // 选择的优惠券
|
|
631
|
+ isSelectCoupList:[], //选择的优惠券列表
|
631
|
632
|
// 下面是支付的数据
|
632
|
633
|
showMoney: 0, // 价值总额
|
633
|
634
|
discountPrice: 0,//活动后金额
|
|
@@ -651,6 +652,17 @@ export default {
|
651
|
652
|
watch: {},
|
652
|
653
|
|
653
|
654
|
methods: {
|
|
655
|
+ // 选择优惠券确认
|
|
656
|
+ isCoupunConfirm(){
|
|
657
|
+ this.isCoupun = false
|
|
658
|
+ let list = []
|
|
659
|
+ this.isSelectCoup.forEach(item=>{
|
|
660
|
+ if(item.isSelect) {
|
|
661
|
+ list.push(item)
|
|
662
|
+ }
|
|
663
|
+ })
|
|
664
|
+ this.isSelectCoupList = list
|
|
665
|
+ },
|
654
|
666
|
toHome () {
|
655
|
667
|
this.$router.replace('/home')
|
656
|
668
|
},
|
|
@@ -1325,7 +1337,6 @@ export default {
|
1325
|
1337
|
}
|
1326
|
1338
|
}
|
1327
|
1339
|
this.isSelectCoup = isSelectCoups
|
1328
|
|
-
|
1329
|
1340
|
// 抵扣顺序按照项目金额计算
|
1330
|
1341
|
that.theMoneyBest()
|
1331
|
1342
|
},
|