feat: 未登录状态调整

This commit is contained in:
duanshuwen
2025-09-13 16:09:37 +08:00
parent c03a4200be
commit 11141ae436
8 changed files with 103 additions and 48 deletions

View File

@@ -5,6 +5,10 @@ export const goLogin = () => uni.reLaunch({ url: "/pages/login/index" });
// 登录逻辑
export const onLogin = (e) => {
const token = uni.getStorageSync("token");
if (token) return;
const { code } = e.detail;
console.info("onLogin code: ", code);
@@ -18,6 +22,9 @@ export const onLogin = (e) => {
// 绑定手机号
bindPhone(params);
// 通知刷新
uni.$emit("TOKEN_CHANGE");
});
};