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
wangliang_wd
2024-11-06 10:22:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d62597dcbaf11f7358cdfe5624010c6b7521d757
d62597dc
1 parent
302f15f2
feat:优化横屏直播,直播状态切换提示
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
3 deletions
sight_harmony/commons/wdRouter/src/main/ets/router/WDRouterRule.ets
sight_harmony/features/wdComponent/Index.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayLivePage.ets
sight_harmony/commons/wdRouter/src/main/ets/router/WDRouterRule.ets
View file @
d62597d
...
...
@@ -38,6 +38,16 @@ export class WDRouterRule {
}
}
static jumpWithReplaceAction(action?: Action) {
if (!action || !action.type) {
ToastUtils.showToast("跳转参数异常", 1000);
return
}
let page = Action2Page.get(action);
WDRouterRule.jumpWithReplacePage(page, action)
}
static jumpWithReplacePage(page?: WDRouterPage, params?: object) {
if (page) {
let action = RouterJumpInterceptor.getInterceptorAction(page)
...
...
sight_harmony/features/wdComponent/Index.ets
View file @
d62597d
...
...
@@ -113,4 +113,5 @@ export { VoiceInputView } from './src/main/ets/components/comment/view/VoiceInpu
export { ComponentModule } from './src/main/ets/ComponentModule'
export { MyCustomDialog } from './src/main/ets/components/reusable/MyCustomDialog'
// export {voicese}
\ No newline at end of file
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayLivePage.ets
View file @
d62597d
import { ContentDetailDTO, LiveRoomDataBean, LiveRoomItemBean } from 'wdBean/Index';
import {
Action,
ContentDetailDTO, LiveRoomDataBean, LiveRoomItemBean } from 'wdBean/Index';
import { LiveViewModel } from '../viewModel/LiveViewModel';
import { TabComponent } from '../widgets/details/TabComponent';
import { TopPlayComponent } from '../widgets/details/video/TopPlayComponet';
...
...
@@ -7,13 +7,14 @@ import mediaquery from '@ohos.mediaquery';
import { CustomToast, EmitterEventId, EmitterUtils, Logger, WindowModel } from 'wdKit/Index';
import { display, router, window } from '@kit.ArkUI';
import { WDAliPlayerController } from 'wdPlayer/Index';
import { LiveOperRowListView } from 'wdComponent';
import { LiveOperRowListView
,MyCustomDialog
} from 'wdComponent';
import { publishCommentModel } from 'wdComponent/src/main/ets/components/comment/model/PublishCommentModel';
import { TrackConstants, TrackingContent, TrackParamConvert } from 'wdTracking/Index';
import { onlyWifiLoadVideo } from 'wdComponent/src/main/ets/utils/lazyloadImg';
import { LiveDetailChatRoomController } from '../im/LiveDetailChatRoomController';
import { LiveMessageOptType, LiveMessageRoomType } from 'wdBean/src/main/ets/bean/live/LiveRoomBean';
import { LiveDetailPageLogic } from '../viewModel/LiveDetailPageLogic';
import { ProcessUtils, WDRouterRule } from 'wdRouter';
let TAG: string = 'DetailPlayLivePage';
...
...
@@ -54,6 +55,20 @@ export struct DetailPlayLivePage {
@State isPORTRAIT: boolean = true
@State half_SCREEN: boolean = true
dialogController: CustomDialogController = new CustomDialogController({
builder: MyCustomDialog({
confirm: () => {
WDRouterRule.jumpWithReplaceAction(router.getParams() as Action)
},
title:'该直播已开始!请前往围观吧',
tipShow: false,
rightText: '去看直播' ,
}),
autoCancel: true,
alignment: DialogAlignment.Center,
customStyle: true,
})
async aboutToAppear(): Promise<void> {
Logger.info(TAG, `wyj-aboutToAppear`)
...
...
@@ -120,8 +135,11 @@ export struct DetailPlayLivePage {
const banComment = liveRoomItemBean.data == "1"
this.banComment = banComment
} break
case LiveMessageOptType.ZH_START_LIVE:{
this.dialogController.open()
// this.lastLiveControl = liveRoomItemBean
} break
case LiveMessageOptType.ZH_STOP_LIVE:
case LiveMessageOptType.ZH_START_LIVE:
case LiveMessageOptType.ZH_CHANGE_PAD: { // 直播垫片控制
this.lastLiveControl = liveRoomItemBean
} break
...
...
Please
register
or
login
to post a comment