Commit 6249c3ca by wangshuo

二维码

parent 1b3c5133
...@@ -79,12 +79,10 @@ class _Scholarship extends Component { ...@@ -79,12 +79,10 @@ class _Scholarship extends Component {
http.get(`${API['base-api']}/wx/user_temporary_qrcode/${data.uid}`).then(res => { http.get(`${API['base-api']}/wx/user_temporary_qrcode/${data.uid}`).then(res => {
if(res.data.errno === 0) { if(res.data.errno === 0) {
if (is_weixin()) { if (is_weixin()) {
alert("1" + res.data.data.qr_image);
this.setState({ this.setState({
codeSrc: res.data.data.qr_image codeSrc: res.data.data.qr_image
}); });
} else { } else {
alert("2" + res.data.data.qr_image);
this.setState({ this.setState({
codeSrc: res.data.data.qr_image codeSrc: res.data.data.qr_image
}); });
......
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