ref |> 修复缺陷 18836 功能缺陷-UI还原问题-4g网络环境,进入预约直播间,无预告时,提示如下“这是一个非wifi环境,请注意浏览消耗”,android 没有弹出此提示
Showing
2 changed files
with
20 additions
and
0 deletions
| @@ -87,9 +87,12 @@ export struct DetailPlayLivePage { | @@ -87,9 +87,12 @@ export struct DetailPlayLivePage { | ||
| 87 | this.getLiveDetails() | 87 | this.getLiveDetails() |
| 88 | this.getLiveRoomData() | 88 | this.getLiveRoomData() |
| 89 | 89 | ||
| 90 | + if (this.liveDetailPageLogic.dealOrShowToast()) { | ||
| 90 | if(!await onlyWifiLoadVideo()){ | 91 | if(!await onlyWifiLoadVideo()){ |
| 91 | this.showToastTip(this.toastText) | 92 | this.showToastTip(this.toastText) |
| 92 | } | 93 | } |
| 94 | + } | ||
| 95 | + | ||
| 93 | this.configChatRoom() | 96 | this.configChatRoom() |
| 94 | } | 97 | } |
| 95 | 98 |
| @@ -92,4 +92,21 @@ export class LiveDetailPageLogic { | @@ -92,4 +92,21 @@ export class LiveDetailPageLogic { | ||
| 92 | } | 92 | } |
| 93 | return '' | 93 | return '' |
| 94 | } | 94 | } |
| 95 | + | ||
| 96 | + dealOrShowToast(): boolean { | ||
| 97 | + if (this.liveState == 'wait') { | ||
| 98 | + if (this.contentDetailData.liveInfo | ||
| 99 | + && this.contentDetailData.liveInfo.previewUrl.length > 0 | ||
| 100 | + && this.contentDetailData.liveInfo.previewType == 1) { ///预告视频 | ||
| 101 | + return true | ||
| 102 | + } | ||
| 103 | + } | ||
| 104 | + if (this.liveState == 'running') { | ||
| 105 | + if (this.contentDetailData.liveInfo.liveWay == 0) { ///直播视频 | ||
| 106 | + return true | ||
| 107 | + } | ||
| 108 | + } | ||
| 109 | + return false | ||
| 110 | + } | ||
| 111 | + | ||
| 95 | } | 112 | } |
-
Please register or login to post a comment