feat 背景色配置

This commit is contained in:
Ironsp
2026-08-31 11:35:55 +08:00
parent fa6c04463f
commit 61ad1f8a3c
5 changed files with 24 additions and 22 deletions

View File

@@ -13,10 +13,10 @@ export default defineUniPages({
backgroundColorBottom: '@bgColorBottom', backgroundColorBottom: '@bgColorBottom',
backgroundColorTop: '@bgColorTop', backgroundColorTop: '@bgColorTop',
backgroundTextStyle: '@bgTxtStyle', backgroundTextStyle: '@bgTxtStyle',
navigationBarBackgroundColor: '#000000', navigationBarBackgroundColor: '#ffffff',
navigationBarTextStyle: '@navTxtStyle', navigationBarTextStyle: 'black',
navigationBarTitleText: 'Vitesse-Uni', navigationBarTitleText: 'Road-Roller',
navigationStyle: 'custom', // navigationStyle: 'custom',
}, },
tabBar: { tabBar: {
backgroundColor: '@tabBgColor', backgroundColor: '@tabBgColor',

View File

@@ -3,11 +3,13 @@ onLaunch(() => {})
</script> </script>
<style> <style>
/* #ifdef H5 */ /* 全局页面背景色 */
uni-tabbar { page,
--uni-tabbar-height: 50px; uni-page-body {
background-color: #EAEFF9 !important;
} }
/* #ifdef H5 || APP-PLUS */
uni-tabbar .uni-tabbar__icon { uni-tabbar .uni-tabbar__icon {
height: 24px !important; height: 24px !important;
width: 24px !important; width: 24px !important;
@@ -24,6 +26,12 @@ uni-tabbar .uni-tabbar__label {
} }
/* #endif */ /* #endif */
/* #ifdef H5 */
uni-tabbar {
--uni-tabbar-height: 50px;
}
/* #endif */
/* #ifdef APP-PLUS */ /* #ifdef APP-PLUS */
uni-tabbar { uni-tabbar {
height: 50px !important; height: 50px !important;
@@ -32,20 +40,5 @@ uni-tabbar {
uni-tabbar .uni-tabbar__content { uni-tabbar .uni-tabbar__content {
height: 50px !important; height: 50px !important;
} }
uni-tabbar .uni-tabbar__icon {
height: 24px !important;
width: 24px !important;
}
uni-tabbar .uni-tabbar__icon img {
height: 24px !important;
width: 24px !important;
}
uni-tabbar .uni-tabbar__label {
font-size: 10px !important;
margin-top: 2px !important;
}
/* #endif */ /* #endif */
</style> </style>

View File

@@ -5,6 +5,9 @@ import { mockData } from '@/mock/index'
definePage({ definePage({
layout: false, layout: false,
style: {
navigationBarTitleText: '首页',
},
}) })
const dialog = useDialog() const dialog = useDialog()

View File

@@ -1,6 +1,9 @@
<script lang="ts" setup> <script lang="ts" setup>
definePage({ definePage({
layout: false, layout: false,
style: {
navigationBarTitleText: '报告',
},
}) })
// const { value: name } = useQuery('name') // const { value: name } = useQuery('name')

View File

@@ -1,6 +1,9 @@
<script lang="ts" setup> <script lang="ts" setup>
definePage({ definePage({
layout: false, layout: false,
style: {
navigationBarTitleText: '工作',
},
}) })
// const { value: name } = useQuery('name') // const { value: name } = useQuery('name')