Commit 1b3c5133 by wangshuo

二维码

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