yuhao лет назад: 2
Родитель
Сommit
3ad758d0a9
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/pages/confirmOrder/details/index.vue

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

@@ -1036,7 +1036,7 @@ export default {
1036 1036
         order_data: JSON.stringify(order_data),
1037 1037
         // order_day: this.tsTableList[this.tsTableIndex].order_day,
1038 1038
         // order_time: this.timeIndexText
1039
-      }
1039
+      } 
1040 1040
       this.$loading({
1041 1041
         lock: true,
1042 1042
         text: '加载中',
@@ -1173,11 +1173,11 @@ export default {
1173 1173
         return res.isSelect == true
1174 1174
       })
1175 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 1177
       let params = {
1178 1178
         id: this.id,
1179 1179
         pay_way: payWayList[0].pay_way,
1180
-        discountList: this.discountList
1180
+        discount: this.discountList
1181 1181
       }
1182 1182
 
1183 1183
       let coupon_data = []