uni 登录部件差不多了

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2025-06-09 01:07:34 +08:00
parent e39b73bff4
commit 56d2e09290
9 changed files with 160 additions and 49 deletions
@@ -159,7 +159,23 @@
methods:{
switchTheme(theme){
myfunc.setTheme(theme,true);
}
},
logout(){
myfunc.dele("user_info")
myfunc.dele("cookie")
},
updata_user_info_to_heard(){
//h5先判断有没有cookie
var cookie=myfunc.load_json("cookie")
if (cookie){
//判断cookie有没有过期
}else{
this.logout()
}
},
},
mounted() {
this.updata_user_info_to_heard()
}
}
</script>