Commit 24c9508f by wangshuo

公众号

parent 143b4e37
......@@ -68,19 +68,26 @@ class _Scholarship extends Component {
}
http.get(`${API['base-api']}/wx/user_temporary_qrcode/${data.uid}`).then(res => {
console.log(res)
if(res.data.errno === 0) {
if (is_weixin()) {
this.setState({
drawCashWechat: true,
codeSrc: res.data.data.qr_image
});
} else {
this.setState({
drawCashHtml: true,
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