xujing 5 years ago
parent
commit
76f7eedaf9
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      src/onlineSelling/pages/raiseMoney/index.js

+ 8
- 2
src/onlineSelling/pages/raiseMoney/index.js View File

60
       { label: '线上缴费', value: 'onLine' },
60
       { label: '线上缴费', value: 'onLine' },
61
       { label: '线下缴费', value: 'offLine' },
61
       { label: '线下缴费', value: 'offLine' },
62
     ],
62
     ],
63
+    payClick: true,
63
   }
64
   }
64
 
65
 
65
   captchaLock = false
66
   captchaLock = false
597
   }
598
   }
598
 
599
 
599
   makePay = () => {
600
   makePay = () => {
601
+    this.setState({
602
+      payClick: false
603
+    })
600
     const { payType, record = {} } = this.state
604
     const { payType, record = {} } = this.state
601
     if (!payType) {
605
     if (!payType) {
602
       Taro.showToast({
606
       Taro.showToast({
741
         // 缴费
745
         // 缴费
742
         case 3:
746
         case 3:
743
           this.makePay().then(() => {
747
           this.makePay().then(() => {
748
+
744
             this.setState({
749
             this.setState({
750
+              payClick: true,
745
               current: current + 1
751
               current: current + 1
746
             })
752
             })
747
           })
753
           })
765
   }
771
   }
766
 
772
 
767
   renderBottomBtn() {
773
   renderBottomBtn() {
768
-    const { current, protocolCountdown } = this.state
774
+    const { current, protocolCountdown, payClick } = this.state
769
     const { payType } = this.state
775
     const { payType } = this.state
770
     return (
776
     return (
771
       <View className="bottom-btn">
777
       <View className="bottom-btn">
773
         {current != 4 &&
779
         {current != 4 &&
774
           <NextStep
780
           <NextStep
775
             countdown={current == 1 ? protocolCountdown : 0}
781
             countdown={current == 1 ? protocolCountdown : 0}
776
-            onClick={() => this.nextStep(current)}
782
+            onClick={() => payClick ? this.nextStep(current) : ''}
777
             text={current == 3 && payType === 'onLine' ? '现在缴费' : '下一步'}
783
             text={current == 3 && payType === 'onLine' ? '现在缴费' : '下一步'}
778
           />
784
           />
779
         }
785
         }