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