Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wuyanan
2024-09-26 16:53:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e3772478ec82605aa97911f492c2135ac33698ed
e3772478
1 parent
0766fc07
ref |> 修复缺陷 18836 功能缺陷-UI还原问题-4g网络环境,进入预约直播间,无预告时,提示如下“这是一个非wifi环境,请注意浏览消耗”,android 没有弹出此提示
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayLivePage.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/viewModel/LiveDetailPageLogic.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayLivePage.ets
View file @
e377247
...
...
@@ -87,9 +87,12 @@ export struct DetailPlayLivePage {
this.getLiveDetails()
this.getLiveRoomData()
if (this.liveDetailPageLogic.dealOrShowToast()) {
if(!await onlyWifiLoadVideo()){
this.showToastTip(this.toastText)
}
}
this.configChatRoom()
}
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/viewModel/LiveDetailPageLogic.ets
View file @
e377247
...
...
@@ -92,4 +92,21 @@ export class LiveDetailPageLogic {
}
return ''
}
dealOrShowToast(): boolean {
if (this.liveState == 'wait') {
if (this.contentDetailData.liveInfo
&& this.contentDetailData.liveInfo.previewUrl.length > 0
&& this.contentDetailData.liveInfo.previewType == 1) { ///预告视频
return true
}
}
if (this.liveState == 'running') {
if (this.contentDetailData.liveInfo.liveWay == 0) { ///直播视频
return true
}
}
return false
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment