Ver código fonte

Merge branch 'master' of http://git.ycjcjy.com/nanyang/machinery-miniapp

[baozhangchao] 3 anos atrás
pai
commit
e45192384a
2 arquivos alterados com 9 adições e 17 exclusões
  1. 0
    2
      src/pages/MyAddressList/index.jsx
  2. 9
    15
      src/pages/OrderInfo/index.jsx

+ 0
- 2
src/pages/MyAddressList/index.jsx Ver arquivo

@@ -114,8 +114,6 @@ export default withLayout((props) => {
114 114
           Taro.navigateBack({
115 115
             delta: 1
116 116
           })
117
-          setInterval()
118
-
119 117
         }, 300)
120 118
       })
121 119
 

+ 9
- 15
src/pages/OrderInfo/index.jsx Ver arquivo

@@ -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