张延森 3 gadus atpakaļ
vecāks
revīzija
ddef31077e
1 mainītis faili ar 9 papildinājumiem un 1 dzēšanām
  1. 9
    1
      src/pages/PayOrder/index.jsx

+ 9
- 1
src/pages/PayOrder/index.jsx Parādīt failu

@@ -93,12 +93,20 @@ export default withLayout((props) => {
93 93
       //   requestPayment(payInfo);
94 94
       //   return;
95 95
       // }
96
-
97 96
       Taro.showLoading({
98 97
         title: '支付中',
99 98
       })
100 99
 
101 100
       if (packageId) {
101
+        if (!totalPrice?.actualPrice) {
102
+          Taro.showToast({
103
+            title: '请选择有效账单',
104
+            icon: 'none'
105
+          })
106
+          return
107
+        }
108
+
109
+
102 110
         saveOrder(
103 111
           list.map((x) => {
104 112
             return {