吃个甘蔗嚼一年 преди 3 години
родител
ревизия
b5a57ef59e
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 6
    6
      src/pages/PayOrder/index.jsx

+ 6
- 6
src/pages/PayOrder/index.jsx Целия файл

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