liyubing

feat:换肤

1)底部导航栏颜色修改
@@ -45,6 +45,8 @@ export struct TopNavigationComponentNew { @@ -45,6 +45,8 @@ export struct TopNavigationComponentNew {
45 // 顶导数据 45 // 顶导数据
46 @State @Watch('onTopNavigationDataUpdated') topNavList: TopNavDTO[] = [] 46 @State @Watch('onTopNavigationDataUpdated') topNavList: TopNavDTO[] = []
47 47
  48 + @Consume barBackgroundColor: Color
  49 + @Consume isImmersive: boolean
48 // 50 //
49 @State indexSettingChannelId: number = AppStorage.get<number>('indexSettingChannelId') || 2002 51 @State indexSettingChannelId: number = AppStorage.get<number>('indexSettingChannelId') || 2002
50 //本地缓存频道id列表 52 //本地缓存频道id列表
@@ -469,9 +471,6 @@ export struct TopNavigationComponentNew { @@ -469,9 +471,6 @@ export struct TopNavigationComponentNew {
469 return item?.channelType === 3 471 return item?.channelType === 3
470 } 472 }
471 473
472 - @Consume barBackgroundColor: Color  
473 - @Consume isImmersive: boolean  
474 -  
475 async aboutToAppear() { 474 async aboutToAppear() {
476 475
477 if (CompUtils.isNews(this.navItem)) { 476 if (CompUtils.isNews(this.navItem)) {
@@ -499,10 +498,12 @@ export struct TopNavigationComponentNew { @@ -499,10 +498,12 @@ export struct TopNavigationComponentNew {
499 */ 498 */
500 setBarBackgroundColor() { 499 setBarBackgroundColor() {
501 500
502 - Logger.debug('setBarBackgroundColor','setBarBackgroundColor '+this.navItem.name+' '+this._currentNavIndex +' '+this.bottomNavIndex)  
503 501
504 if(this._currentNavIndex == this.bottomNavIndex){ 502 if(this._currentNavIndex == this.bottomNavIndex){
505 this.changeTopStatusBarColor(this.navItem.statusBarColor) 503 this.changeTopStatusBarColor(this.navItem.statusBarColor)
  504 +
  505 + this.isImmersive = false
  506 + this.barBackgroundColor = Color.White
506 } 507 }
507 508
508 } 509 }