Fix:5873 【商城小程序】开屏广告持续时间改成5秒

This commit is contained in:
linxi
2026-08-25 12:20:08 +08:00
parent d5d85d2cd2
commit 59dec5c11c
+8 -15
View File
@@ -52,18 +52,15 @@ export default {
}, 5000) }, 5000)
return; return;
} }
// 未登录:静默处理登录,5秒后跳转业务页面
cookie.get("spread"); cookie.get("spread");
// this.toLaunch(); if (this.$deviceType != "app") {
if (this.$deviceType == "app") { //检查授权信息
// this.toLaunch(); this.checkUserInfo();
this.$yrouter.switchTab({
path: "/pages/home/index"
});
return;
} }
setTimeout(() => {
//检查授权信息 this.toLaunch();
this.checkUserInfo(); }, 5000);
}, },
methods: { methods: {
...mapActions(["changeAuthorization", "setUserInfo"]), ...mapActions(["changeAuthorization", "setUserInfo"]),
@@ -89,11 +86,7 @@ export default {
} }
} }
login(loginInfo).finally(() => { login(loginInfo);
this.$yrouter.switchTab({
path: "/pages/home/index"
});
});
} }