修改苹果黑屏问题

This commit is contained in:
张成
2025-11-08 21:44:18 +08:00
parent 40ea0f2eed
commit 2fabb0fa5e
2 changed files with 17 additions and 3 deletions

View File

@@ -75,6 +75,7 @@ export default defineAppConfig({
backgroundTextStyle: "light", backgroundTextStyle: "light",
navigationBarBackgroundColor: "#fff", navigationBarBackgroundColor: "#fff",
navigationBarTextStyle: "black", navigationBarTextStyle: "black",
backgroundColor: "#fff",
}, },
permission: { permission: {
"scope.userLocation": { "scope.userLocation": {

View File

@@ -3,9 +3,22 @@
// src: url('./static/asserts/fonts/PoetsenOne-Regular.ttf') format('truetype'); // src: url('./static/asserts/fonts/PoetsenOne-Regular.ttf') format('truetype');
// } // }
// 小程序页面根元素样式
page {
height: 100%;
min-height: 100vh;
background-color: #fff;
}
#app {
height: 100%;
min-height: 100vh;
width: 100%;
background-color: #fff;
}
@font-face { @font-face {
font-family: "Quicksand"; font-family: "Quicksand";
src: url("https://bimwe.oss-cn-shanghai.aliyuncs.com/front/ball/other/57dc951f-f10e-45b7-9157-0b1e468187fd.ttf") src: url("https://bimwe.oss-cn-shanghai.aliyuncs.com/front/ball/other/57dc951f-f10e-45b7-9157-0b1e468187fd.ttf") format("truetype");
format("truetype");
font-display: swap; font-display: swap;
} }