张延森 3 years ago
parent
commit
6f61812f74
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      src/pages/PayOrder/index.jsx

+ 6
- 6
src/pages/PayOrder/index.jsx View File

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