chore: 前端其余页面和资源文件
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
export default {
|
||||
onShow() {
|
||||
// 强制使用浅色主题
|
||||
this.theme = this.$store.state.lightTheme
|
||||
|
||||
// 设置tabBar样式为浅色主题
|
||||
if (typeof uni.setTabBarStyle === 'function') {
|
||||
uni.setTabBarStyle({
|
||||
selectedColor: this.theme.selectedColor,
|
||||
backgroundColor: this.theme.backgroundColor,
|
||||
borderStyle: this.theme.borderStyle
|
||||
})
|
||||
}
|
||||
|
||||
// 设置状态栏样式
|
||||
// #ifdef APP-PLUS
|
||||
if (typeof plus !== 'undefined' && typeof plus.navigator === 'object') {
|
||||
plus.navigator.setStatusBarStyle('dark')
|
||||
}
|
||||
// #endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user