Commit 9b5207b6 by zhanghaozhe

微信登录

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