注册流程

This commit is contained in:
limqhz
2022-12-16 17:32:49 +08:00
parent b746aaaa83
commit eb5c301d00
57 changed files with 1839 additions and 20 deletions

View File

@@ -62,7 +62,22 @@ Component({
}
},
checkLogin(){
let userInfo = wx.getStorageSync('userInfo');
let token = wx.getStorageSync('userToken');
console.log('userInfo===' + userInfo);
console.log('token===' + token);
if (userInfo && token){
return true;
}else {
return false;
}
},
onChange(event) {
if (!this.checkLogin()){
wx.redirectTo({url:"/pages/login/index"});
}
this.setIconData(event.detail.value);
},
}