王士厅

fix: 沉浸式视频网络差提示toast逻辑优化

@@ -304,10 +304,11 @@ export struct DetailPlayShortVideoPage { @@ -304,10 +304,11 @@ export struct DetailPlayShortVideoPage {
304 } 304 }
305 }) 305 })
306 this.playerViewBuilder() 306 this.playerViewBuilder()
307 -  
308 - PlayerBottomView({  
309 - playerController: this.playerController  
310 - }) 307 + if(this.index === this.currentIndex) {
  308 + PlayerBottomView({
  309 + playerController: this.playerController
  310 + })
  311 + }
311 312
312 PlayerRightView({ 313 PlayerRightView({
313 playerController: this.playerController 314 playerController: this.playerController
@@ -30,13 +30,10 @@ export struct PlayerProgressView { @@ -30,13 +30,10 @@ export struct PlayerProgressView {
30 if (this.onlyWifiLoadVideo) { 30 if (this.onlyWifiLoadVideo) {
31 this.showLoading = true 31 this.showLoading = true
32 } 32 }
33 - // console.log("PlayerProgressView11", this.timer)  
34 - if(this.timer) {  
35 - clearTimeout(this.timer)  
36 - }  
37 this.timer = setTimeout(() => { 33 this.timer = setTimeout(() => {
38 ToastUtils.shortToast('网络出小差了,请检查下网络') 34 ToastUtils.shortToast('网络出小差了,请检查下网络')
39 }, 10000) 35 }, 10000)
  36 + // console.log("PlayerProgressView11", this.timer)
40 } else { 37 } else {
41 // console.log("PlayerProgressView22", this.timer) 38 // console.log("PlayerProgressView22", this.timer)
42 clearTimeout(this.timer) 39 clearTimeout(this.timer)