张延森 3 年 前
コミット
6f61812f74
共有1 個のファイルを変更した6 個の追加6 個の削除を含む
  1. 6
    6
      src/pages/PayOrder/index.jsx

+ 6
- 6
src/pages/PayOrder/index.jsx ファイルの表示

@@ -89,10 +89,10 @@ export default withLayout((props) => {
89 89
 
90 90
   const onShowPay = (e) => {
91 91
     if (agreement) {
92
-      if (payInfo) {
93
-        requestPayment(payInfo);
94
-        return;
95
-      }
92
+      // if (payInfo) {
93
+      //   requestPayment(payInfo);
94
+      //   return;
95
+      // }
96 96
 
97 97
       Taro.showLoading({
98 98
         title: '支付中',
@@ -108,7 +108,7 @@ export default withLayout((props) => {
108 108
             };
109 109
           })
110 110
         ).then((res) => {
111
-          setPayInfo(res);
111
+          // setPayInfo(res);
112 112
           requestPayment(res);
113 113
         }).catch(() => {
114 114
           Taro.hideLoading()
@@ -121,7 +121,7 @@ export default withLayout((props) => {
121 121
       }
122 122
       if (orderId) {
123 123
         payOrder(orderId).then((res) => {
124
-          setPayInfo(res);
124
+          // setPayInfo(res);
125 125
           requestPayment(res);
126 126
         }).catch(() => {
127 127
           Taro.hideLoading()