Sfoglia il codice sorgente

修改停车缴费页面存在的bug

zaijin 2 anni fa
parent
commit
c850711e3d
2 ha cambiato i file con 14 aggiunte e 14 eliminazioni
  1. 1 1
      pages/choosePayment/choosePayment.vue
  2. 13 13
      pages/payLists/payLists.vue

+ 1 - 1
pages/choosePayment/choosePayment.vue

@@ -263,7 +263,7 @@ export default {
       }
     },
     /**
-     * 描述
+     * 获取优惠券列表
      * @date 2023-02-17
      * @param {any} orderId
      * @returns {any}

+ 13 - 13
pages/payLists/payLists.vue

@@ -352,19 +352,19 @@ export default {
     },
     // 全部缴费确认
     confirmPrice() {
-      let orderNum = 0,
-        price = 0;
-      this.currentItem = [];
-      this.payList[this.current].forEach((item) => {
-        if (item.orderStatus !== 4 && item.payStatus !== 1) {
-          price += Number(item.payAmount);
-          orderNum++;
-          this.currentItem.push(item.orderId);
-        }
-      });
-      this.payTipsItem.num = orderNum;
-      this.payTipsItem.price = price.toFixed(2);
-      if (orderNum !== 0 && price !== 0) {
+      // let orderNum = 0,
+      //   price = 0;
+      // this.currentItem = [];
+      // this.payList[this.current].forEach((item) => {
+      //   if (item.orderStatus !== 4 && item.payStatus !== 1) {
+      //     price += Number(item.payAmount);
+      //     orderNum++;
+      //     this.currentItem.push(item.orderId);
+      //   }
+      // });
+      this.payTipsItem.num = this.totalCount;
+      this.payTipsItem.price = this.totalPayAmount.toFixed(2);
+      if (this.payTipsItem.num !== 0 && this.payTipsItem.price !== 0) {
         this.payTipsPop = true;
       } else {
         this.$refs.uToast.show({