yuzhilin

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

... ... @@ -9,6 +9,7 @@ import { VideoChannelDetail } from 'wdDetailPlayShortVideo/Index';
import { AssignChannelParam } from 'wdRouter/src/main/ets/utils/HomeChannelUtils';
import { PeopleShipMainComponent } from '../peopleShip/PeopleShipMainComponent';
import { WDRouterPage, WDRouterRule } from 'wdRouter'
import { channelSkeleton } from '../skeleton/channelSkeleton'
const TAG = 'TopNavigationComponent';
... ... @@ -264,6 +265,8 @@ export struct TopNavigationComponent {
channelId: navItem.channelId + '',
autoRefresh: this.autoRefresh2Page
})
}else{
channelSkeleton()
}
}
.tabBar(this.tabBarBuilder(navItem, index))
... ... @@ -296,13 +299,13 @@ export struct TopNavigationComponent {
ProcessUtils.gotoBroadcastPage(this.myChannelList[index].pageId)
this.tabTimmer = setTimeout(() => {
this.tabsController.changeIndex(this.currentTopNavSelectedIndex)
}, 500)
}, 100)
}
if (this.isLayout(this._currentNavIndex === 0 ? this.myChannelList[index] : this.topNavList[index])) {
ProcessUtils.gotoENewsPaper()
this.tabTimmer = setTimeout(() => {
this.tabsController.changeIndex(this.currentTopNavSelectedIndex)
}, 500)
}, 100)
}
})
.onAnimationStart((index: number, targetIndex: number, event: TabsAnimationEvent) => {
... ...