Showing
1 changed file
with
11 additions
and
3 deletions
| @@ -141,9 +141,9 @@ export struct TopPlayComponent { | @@ -141,9 +141,9 @@ export struct TopPlayComponent { | ||
| 141 | this.isHideLoading = false | 141 | this.isHideLoading = false |
| 142 | } else { | 142 | } else { |
| 143 | this.isWait = this.contentDetailData?.liveInfo?.liveState == 'wait' | 143 | this.isWait = this.contentDetailData?.liveInfo?.liveState == 'wait' |
| 144 | - if (this.isWait) { | ||
| 145 | - this.isHideLoading = true | ||
| 146 | - } | 144 | + // if (this.isWait) { |
| 145 | + // this.isHideLoading = true | ||
| 146 | + // } | ||
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | this.isEnd = this.contentDetailData?.liveInfo?.liveState === 'end' && | 149 | this.isEnd = this.contentDetailData?.liveInfo?.liveState === 'end' && |
| @@ -269,6 +269,14 @@ export struct TopPlayComponent { | @@ -269,6 +269,14 @@ export struct TopPlayComponent { | ||
| 269 | Visibility.None)// .contrast(this.isEnd ? 0.4 : 1) | 269 | Visibility.None)// .contrast(this.isEnd ? 0.4 : 1) |
| 270 | .blur(this.isEnd ? 20 : 0) | 270 | .blur(this.isEnd ? 20 : 0) |
| 271 | .width('100%') | 271 | .width('100%') |
| 272 | + .onComplete(event=>{ | ||
| 273 | + if (event?.loadingStatus == 1) { | ||
| 274 | + this.isHideLoading = true | ||
| 275 | + } | ||
| 276 | + }) | ||
| 277 | + .onError(()=>{ | ||
| 278 | + this.isHideLoading = true | ||
| 279 | + }) | ||
| 272 | 280 | ||
| 273 | 281 | ||
| 274 | if (this.liveDetailPageLogic.showPad) { | 282 | if (this.liveDetailPageLogic.showPad) { |
-
Please register or login to post a comment