|
@@ -48,10 +48,13 @@
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
checkLogin().then(res => {
|
|
checkLogin().then(res => {
|
|
- console.log(res,'checkLogin')
|
|
|
|
this.hasLogin = res.status == 200
|
|
this.hasLogin = res.status == 200
|
|
if(this.hasLogin){
|
|
if(this.hasLogin){
|
|
this.getUserInfo()
|
|
this.getUserInfo()
|
|
|
|
+ }else{
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:"/pages/login/login"
|
|
|
|
+ })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|