diff --git a/src/app.config.ts b/src/app.config.ts index 5e46beb..2202e1b 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -75,6 +75,7 @@ export default defineAppConfig({ backgroundTextStyle: "light", navigationBarBackgroundColor: "#fff", navigationBarTextStyle: "black", + backgroundColor: "#fff", }, permission: { "scope.userLocation": { diff --git a/src/app.scss b/src/app.scss index 775f9bc..70127c8 100644 --- a/src/app.scss +++ b/src/app.scss @@ -3,9 +3,22 @@ // 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-family: "Quicksand"; - src: url("https://bimwe.oss-cn-shanghai.aliyuncs.com/front/ball/other/57dc951f-f10e-45b7-9157-0b1e468187fd.ttf") - format("truetype"); + src: url("https://bimwe.oss-cn-shanghai.aliyuncs.com/front/ball/other/57dc951f-f10e-45b7-9157-0b1e468187fd.ttf") format("truetype"); font-display: swap; -} +} \ No newline at end of file