Browse Source

处理支付新人折扣

yuhao 2 years ago
parent
commit
3ad758d0a9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/pages/confirmOrder/details/index.vue

+ 3 - 3
src/pages/confirmOrder/details/index.vue

@@ -1036,7 +1036,7 @@ export default {
1036
         order_data: JSON.stringify(order_data),
1036
         order_data: JSON.stringify(order_data),
1037
         // order_day: this.tsTableList[this.tsTableIndex].order_day,
1037
         // order_day: this.tsTableList[this.tsTableIndex].order_day,
1038
         // order_time: this.timeIndexText
1038
         // order_time: this.timeIndexText
1039
-      }
1039
+      } 
1040
       this.$loading({
1040
       this.$loading({
1041
         lock: true,
1041
         lock: true,
1042
         text: '加载中',
1042
         text: '加载中',
@@ -1173,11 +1173,11 @@ export default {
1173
         return res.isSelect == true
1173
         return res.isSelect == true
1174
       })
1174
       })
1175
       // 卡券,项目券数据包, id:订单项目ID, coupon_id:优惠券ID, 如:[{ "id": 1220, coupon_id: 199 }]isSelectCoup
1175
       // 卡券,项目券数据包, id:订单项目ID, coupon_id:优惠券ID, 如:[{ "id": 1220, coupon_id: 199 }]isSelectCoup
1176
-      this.discountList = this.card_data.length > 0 ? 0 : this.discountList
1176
+      this.discountList = this.card_data.length > 0 ? 0 : this.discountList.sort(this.compare("priceSet"))[0].id
1177
       let params = {
1177
       let params = {
1178
         id: this.id,
1178
         id: this.id,
1179
         pay_way: payWayList[0].pay_way,
1179
         pay_way: payWayList[0].pay_way,
1180
-        discountList: this.discountList
1180
+        discount: this.discountList
1181
       }
1181
       }
1182
 
1182
 
1183
       let coupon_data = []
1183
       let coupon_data = []