Commit a36497c4 by zhanghaozhe

微信登录

parent 29753187
import React, { Component } from 'react';
import { withRouter } from "react-router-dom";
import { api, http, getParam, isLogin } from "@/utils";
import { Toast } from "antd-mobile";
class Loading extends Component {
......@@ -13,9 +15,19 @@ class Loading extends Component {
if (code) {
http.get(`${api['base-api']}/m/wx_loginInfo/code/${code}`)
http.get(`${api['home']}/m/wx_loginInfo/code/${code}`)
.then(res => {
console.log(res);
let data = res.data
console.log(res)
if(data.errno == 200){
if(!data.data['is_bind_mobile']){
console.log(data.data.url)
}else {
console.log(this.props.location)
}
}else {
Toast.info(data.msg)
}
})
......
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