Commit fa5f2b97 authored by XieZhiXiong's avatar XieZhiXiong

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

parent 45744d4d
......@@ -253,11 +253,11 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
return;
}
message.destroy();
this.setState({ visibleRepayment: false });
switch (tradeChannel) {
// 微信支付
case PAY_CHANNEL_WECHAT: {
this.setState({ visibleRepayment: false });
this.setState({
wxPayPrice: values.repayQuota,
wxPayUrl: res.data.payQRCode,
......@@ -265,6 +265,10 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
this.payRecordId = `${res.data.recordId}`;
this.handleWxPayVisible(true);
}
default: {
message.warning('暂不支持该支付渠道,请先选择其他支付渠道');
}
}
}).finally(() => {
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