鲍张超 3 vuotta sitten
vanhempi
commit
b329082022
1 muutettua tiedostoa jossa 9 lisäystä ja 15 poistoa
  1. 9
    15
      src/pages/OrderInfo/index.jsx

+ 9
- 15
src/pages/OrderInfo/index.jsx Näytä tiedosto

@@ -122,24 +122,18 @@ export default withLayout((props) => {
122 122
 
123 123
 
124 124
   const pay = () => {
125
-    console.log('asd2222222222sad`a',);
126 125
 
127
-    Taro.switchTab({
128
-      url: '/pages/index/index?tab=3'
129
-    })
130
-    console.log('asdsad`a',);
131
-
132
-    // orderPrepay(orderId, {
133
-    //   payType: 'wx',
126
+    orderPrepay(orderId, {
127
+      payType: 'wx',
134 128
 
135
-    // }).then((e) => {
136
-    //   console.log('订单返回', e);
137
-    //   Taro.showLoading({
138
-    //     title: '支付中',
139
-    //   })
140
-    //   requestPayment(e)
129
+    }).then((e) => {
130
+      console.log('订单返回', e);
131
+      Taro.showLoading({
132
+        title: '支付中',
133
+      })
134
+      requestPayment(e)
141 135
 
142
-    // })
136
+    })
143 137
     //支付逻辑
144 138
   }
145 139