yuzhilin

fix:17109 UI还原问题--频道切换到版面缺少骨架图

@@ -9,6 +9,7 @@ import { VideoChannelDetail } from 'wdDetailPlayShortVideo/Index'; @@ -9,6 +9,7 @@ import { VideoChannelDetail } from 'wdDetailPlayShortVideo/Index';
9 import { AssignChannelParam } from 'wdRouter/src/main/ets/utils/HomeChannelUtils'; 9 import { AssignChannelParam } from 'wdRouter/src/main/ets/utils/HomeChannelUtils';
10 import { PeopleShipMainComponent } from '../peopleShip/PeopleShipMainComponent'; 10 import { PeopleShipMainComponent } from '../peopleShip/PeopleShipMainComponent';
11 import { WDRouterPage, WDRouterRule } from 'wdRouter' 11 import { WDRouterPage, WDRouterRule } from 'wdRouter'
  12 +import { channelSkeleton } from '../skeleton/channelSkeleton'
12 13
13 14
14 const TAG = 'TopNavigationComponent'; 15 const TAG = 'TopNavigationComponent';
@@ -264,7 +265,9 @@ export struct TopNavigationComponent { @@ -264,7 +265,9 @@ export struct TopNavigationComponent {
264 channelId: navItem.channelId + '', 265 channelId: navItem.channelId + '',
265 autoRefresh: this.autoRefresh2Page 266 autoRefresh: this.autoRefresh2Page
266 }) 267 })
267 - } 268 + }else{
  269 + channelSkeleton()
  270 + }
268 } 271 }
269 .tabBar(this.tabBarBuilder(navItem, index)) 272 .tabBar(this.tabBarBuilder(navItem, index))
270 273
@@ -296,13 +299,13 @@ export struct TopNavigationComponent { @@ -296,13 +299,13 @@ export struct TopNavigationComponent {
296 ProcessUtils.gotoBroadcastPage(this.myChannelList[index].pageId) 299 ProcessUtils.gotoBroadcastPage(this.myChannelList[index].pageId)
297 this.tabTimmer = setTimeout(() => { 300 this.tabTimmer = setTimeout(() => {
298 this.tabsController.changeIndex(this.currentTopNavSelectedIndex) 301 this.tabsController.changeIndex(this.currentTopNavSelectedIndex)
299 - }, 500) 302 + }, 100)
300 } 303 }
301 if (this.isLayout(this._currentNavIndex === 0 ? this.myChannelList[index] : this.topNavList[index])) { 304 if (this.isLayout(this._currentNavIndex === 0 ? this.myChannelList[index] : this.topNavList[index])) {
302 ProcessUtils.gotoENewsPaper() 305 ProcessUtils.gotoENewsPaper()
303 this.tabTimmer = setTimeout(() => { 306 this.tabTimmer = setTimeout(() => {
304 this.tabsController.changeIndex(this.currentTopNavSelectedIndex) 307 this.tabsController.changeIndex(this.currentTopNavSelectedIndex)
305 - }, 500) 308 + }, 100)
306 } 309 }
307 }) 310 })
308 .onAnimationStart((index: number, targetIndex: number, event: TabsAnimationEvent) => { 311 .onAnimationStart((index: number, targetIndex: number, event: TabsAnimationEvent) => {