Commit 0e2378c6 by wangshuo

二维码

parent c6bb8f14
......@@ -61,6 +61,15 @@ class _Scholarship extends Component {
}
// 提现按钮 根据是否在微信环境中显示提示
drawCash = () => {
if (is_weixin()) {
this.setState({
drawCashWechat: true
});
} else {
this.setState({
drawCashHtml: true
});
}
const {hasError, data = {}} = this.props.user;
if(hasError) {
Toast.info("请登录提现!", undefined, undefined, false);
......@@ -78,16 +87,6 @@ class _Scholarship extends Component {
codeSrc: res.data.data.qr_image
});
}
if (is_weixin()) {
this.setState({
drawCashWechat: true
});
} else {
this.setState({
drawCashHtml: true
});
}
}else{
Toast.info(res.data.data.msg, 2);
}
......
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