Commit 9b5207b6 by zhanghaozhe

微信登录

parent a36497c4
......@@ -15,13 +15,14 @@ class Loading extends Component {
if (code) {
http.get(`${api['home']}/m/wx_loginInfo/code/${code}`)
http.get(`${api['base-api']}/m/wx_loginInfo/code/${code}`)
.then(res => {
let data = res.data
console.log(res)
if(data.errno == 200){
if(!data.data['is_bind_mobile']){
console.log(data.data.url)
if(data.data['is_bind_mobile']){
window.location.assign(data.data.url)
}else {
console.log(this.props.location)
}
......
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