feat 背景色配置
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
29
src/App.vue
29
src/App.vue
@@ -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>
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ import { mockData } from '@/mock/index'
|
|||||||
|
|
||||||
definePage({
|
definePage({
|
||||||
layout: false,
|
layout: false,
|
||||||
|
style: {
|
||||||
|
navigationBarTitleText: '首页',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const dialog = useDialog()
|
const dialog = useDialog()
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user