吃个甘蔗嚼一年 3 years ago
parent
commit
b5a57ef59e
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

19
   const { router, person } = props;
19
   const { router, person } = props;
20
   const { packageId, orderId } = props.router.params;
20
   const { packageId, orderId } = props.router.params;
21
 
21
 
22
-  const [payInfo,setPayInfo] = useState()
22
+  const [payInfo, setPayInfo] = useState()
23
 
23
 
24
   const [showDialog, setShowDialog] = useState(false);
24
   const [showDialog, setShowDialog] = useState(false);
25
   // 是否已阅读协议
25
   // 是否已阅读协议
68
     setBuyNumber(values - 0);
68
     setBuyNumber(values - 0);
69
   };
69
   };
70
 
70
 
71
-  const requestPayment = (params) =>{
72
-    console.log(params,'requestPayment')
71
+  const requestPayment = (params) => {
72
+    console.log(params, 'requestPayment')
73
     Taro.requestPayment({
73
     Taro.requestPayment({
74
       ...params,
74
       ...params,
75
       package: params.packageValue,
75
       package: params.packageValue,
95
 
95
 
96
   const onShowPay = (e) => {
96
   const onShowPay = (e) => {
97
     if (agreement) {
97
     if (agreement) {
98
-      if(payInfo){
98
+      if (payInfo) {
99
         requestPayment(payInfo)
99
         requestPayment(payInfo)
100
         return
100
         return
101
       }
101
       }
219
                   </view>
219
                   </view>
220
                   <text className="title-money">
220
                   <text className="title-money">
221
                     ¥{(item.actualPrice || item.unitPrice || 0) / 100}元
221
                     ¥{(item.actualPrice || item.unitPrice || 0) / 100}元
222
-                    <text className="title-money-2">
222
+                    <text className="title-money-2"></text>
223
                       门市价{(item.standardPrice || 0) / 100}元
223
                       门市价{(item.standardPrice || 0) / 100}元
224
                     </text>
224
                     </text>
225
                   </text>
225
                   </text>
286
           </Button>
286
           </Button>
287
         </view>
287
         </view>
288
       </view>
288
       </view>
289
-    </view>
289
+    </view >
290
   );
290
   );
291
 });
291
 });