feat: 优化处理了滚动条的问题

This commit is contained in:
2025-08-13 19:29:11 +08:00
parent 6e365fd187
commit ef8d388837
8 changed files with 587 additions and 586 deletions

47
App.vue
View File

@@ -5,32 +5,32 @@ import { goLogin } from "@/hooks/useGoLogin";
import { goHome } from "@/hooks/useGoHome";
onLaunch(async () => {
console.log("App Launch");
console.log("App Launch");
const token = uni.getStorageSync("token");
const token = uni.getStorageSync("token");
// 检测是否绑定手机号和token
if (!token) {
goLogin();
// 检测是否绑定手机号和token
if (!token) {
goLogin();
return;
}
if (token) {
const res = await checkPhone();
if (res.data) {
goHome();
return;
}
if (token) {
const res = await checkPhone();
if (res.data) {
goHome();
}
}
}
});
onShow(() => {
console.log("App Show");
console.log("App Show");
});
onHide(() => {
console.log("App Hide");
console.log("App Hide");
});
</script>
@@ -41,13 +41,18 @@ onHide(() => {
page,
body,
#app {
font-family: PingFang SC, PingFang SC;
background-color: #e9f3f7;
height: 100vh;
width: 100vw;
font-family: PingFang SC, PingFang SC;
background-color: #e9f3f7;
height: 100vh;
width: 100vw;
}
/*每个页面公共css */
::-webkit-scrollbar {
display: none;
}
.mb12 {
margin-bottom: 12px;
margin-bottom: 12px;
}
</style>