wangliang_wd

Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main

* 'main' of http://192.168.1.42/developOne/harmonyPool:
  fix |>修复视频tabbar中视频在右没有声音的问题
@@ -44,6 +44,7 @@ export struct VideoChannelDetail { @@ -44,6 +44,7 @@ export struct VideoChannelDetail {
44 // private recommend?: string = '' // 0.非推荐,1.推荐; 44 // private recommend?: string = '' // 0.非推荐,1.推荐;
45 @Link @Watch('navIndexChange') bottomNavIndex: number 45 @Link @Watch('navIndexChange') bottomNavIndex: number
46 @Link @Watch('navIndexChange') topNavIndex: number 46 @Link @Watch('navIndexChange') topNavIndex: number
  47 + @State navVideoIndex: number = 0
47 @Prop @Watch('autoRefreshChange') autoRefresh: number = 0 48 @Prop @Watch('autoRefreshChange') autoRefresh: number = 0
48 @Consume barBackgroundColor: Color 49 @Consume barBackgroundColor: Color
49 private swiperController: SwiperController = new SwiperController() 50 private swiperController: SwiperController = new SwiperController()
@@ -80,7 +81,7 @@ export struct VideoChannelDetail { @@ -80,7 +81,7 @@ export struct VideoChannelDetail {
80 @State endIndex: number = 0 81 @State endIndex: number = 0
81 @Link isRefreshList: boolean 82 @Link isRefreshList: boolean
82 autoRefreshChange() { 83 autoRefreshChange() {
83 - if (this.topNavIndex === 0 && !this.isRequesting) { 84 + if (this.topNavIndex === this.navVideoIndex && !this.isRequesting) {
84 this.data = [] 85 this.data = []
85 this.interactDataList = [] 86 this.interactDataList = []
86 this.totalCount = 0 87 this.totalCount = 0
@@ -92,7 +93,7 @@ export struct VideoChannelDetail { @@ -92,7 +93,7 @@ export struct VideoChannelDetail {
92 93
93 pageShowChange() { 94 pageShowChange() {
94 95
95 - if (this.bottomNavIndex === 2 && this.topNavIndex === 0) { 96 + if (this.bottomNavIndex === 2 && this.topNavIndex === this.navVideoIndex) {
96 this.barBackgroundColor = Color.Black 97 this.barBackgroundColor = Color.Black
97 this.switchVideoStatus = true 98 this.switchVideoStatus = true
98 this.openFullScreen() 99 this.openFullScreen()
@@ -119,7 +120,7 @@ export struct VideoChannelDetail { @@ -119,7 +120,7 @@ export struct VideoChannelDetail {
119 */ 120 */
120 navIndexChange() { 121 navIndexChange() {
121 // console.log('navIndexChange', this.bottomNavIndex, this.topNavIndex) 122 // console.log('navIndexChange', this.bottomNavIndex, this.topNavIndex)
122 - if (this.bottomNavIndex === 2 && this.topNavIndex === 0) { 123 + if (this.bottomNavIndex === 2 && this.topNavIndex === this.navVideoIndex) {
123 // this.barBackgroundColor = Color.Black 124 // this.barBackgroundColor = Color.Black
124 this.switchVideoStatus = true 125 this.switchVideoStatus = true
125 this.openFullScreen() 126 this.openFullScreen()
@@ -326,6 +326,7 @@ export struct VideoChannelPage { @@ -326,6 +326,7 @@ export struct VideoChannelPage {
326 VideoChannelDetail({ 326 VideoChannelDetail({
327 bottomNavIndex: $_currentNavIndex, 327 bottomNavIndex: $_currentNavIndex,
328 topNavIndex: $currentTopNavSelectedIndex, 328 topNavIndex: $currentTopNavSelectedIndex,
  329 + navVideoIndex:index,
329 groupId: this.groupId + '', 330 groupId: this.groupId + '',
330 pageId: item.pageId + '', 331 pageId: item.pageId + '',
331 pageName: item.name + '', 332 pageName: item.name + '',