|
@@ -514,6 +514,7 @@ import minePupop from '../../../components/minePupop/index.vue'
|
514
|
514
|
import QRCode from 'qrcodejs2'
|
515
|
515
|
import api from '../../../server/home'
|
516
|
516
|
import internal from 'assert';
|
|
517
|
+import { log } from 'console';
|
517
|
518
|
|
518
|
519
|
export default {
|
519
|
520
|
components: { minePupop },
|
|
@@ -1172,8 +1173,9 @@ export default {
|
1172
|
1173
|
let payWayList = this.payList.filter(res => {
|
1173
|
1174
|
return res.isSelect == true
|
1174
|
1175
|
})
|
|
1176
|
+ console.log(this.discountList);
|
1175
|
1177
|
// 卡券,项目券数据包, id:订单项目ID, coupon_id:优惠券ID, 如:[{ "id": 1220, coupon_id: 199 }]isSelectCoup
|
1176
|
|
- this.discountList = this.card_data.length > 0||this.order_data.discount!=0 ? 0 : this.discountList.sort(this.compare("priceSet"))[0].id
|
|
1178
|
+ this.discountList = this.card_data.length > 0||this.order_data.discount!=0 ? 0 :this.discountList.length!=0?this.discountList.sort(this.compare("priceSet"))[0].id:0
|
1177
|
1179
|
let params = {
|
1178
|
1180
|
id: this.id,
|
1179
|
1181
|
pay_way: payWayList[0].pay_way,
|