Przeglądaj źródła

优化项目订单新人折扣支付

yuhao 2 lat temu
rodzic
commit
e9002af4d1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/pages/confirmOrder/details/index.vue

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

@@ -1173,7 +1173,7 @@ 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.sort(this.compare("priceSet"))[0].id
1176
+      this.discountList = this.card_data.length > 0||this.order_data.discount!=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,