鲍张超 3 years ago
parent
commit
b329082022
1 changed files with 9 additions and 15 deletions
  1. 9
    15
      src/pages/OrderInfo/index.jsx

+ 9
- 15
src/pages/OrderInfo/index.jsx View File

122
 
122
 
123
 
123
 
124
   const pay = () => {
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