Commit fa5f2b97 authored by XieZhiXiong's avatar XieZhiXiong

fix: 选择除微信外的支付渠道给错误提示

parent 45744d4d
...@@ -253,11 +253,11 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState> ...@@ -253,11 +253,11 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
return; return;
} }
message.destroy(); message.destroy();
this.setState({ visibleRepayment: false });
switch (tradeChannel) { switch (tradeChannel) {
// 微信支付 // 微信支付
case PAY_CHANNEL_WECHAT: { case PAY_CHANNEL_WECHAT: {
this.setState({ visibleRepayment: false });
this.setState({ this.setState({
wxPayPrice: values.repayQuota, wxPayPrice: values.repayQuota,
wxPayUrl: res.data.payQRCode, wxPayUrl: res.data.payQRCode,
...@@ -265,6 +265,10 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState> ...@@ -265,6 +265,10 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
this.payRecordId = `${res.data.recordId}`; this.payRecordId = `${res.data.recordId}`;
this.handleWxPayVisible(true); this.handleWxPayVisible(true);
} }
default: {
message.warning('暂不支持该支付渠道,请先选择其他支付渠道');
}
} }
}).finally(() => { }).finally(() => {
this.setState({ repaymentSubmitLoading: false }); this.setState({ repaymentSubmitLoading: false });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment