Showing
6 changed files
with
6 additions
and
27 deletions
| @@ -50,11 +50,7 @@ export function registerRouter() { | @@ -50,11 +50,7 @@ export function registerRouter() { | ||
| 50 | 50 | ||
| 51 | Action2Page.register("JUMP_DETAIL_PAGE", (action: Action) => { | 51 | Action2Page.register("JUMP_DETAIL_PAGE", (action: Action) => { |
| 52 | if (action.params?.detailPageType == 2 || action.params?.detailPageType == 6) { | 52 | if (action.params?.detailPageType == 2 || action.params?.detailPageType == 6) { |
| 53 | - if (action.params?.liveStyle === 0) { | ||
| 54 | - return WDRouterPage.detailPlayLivePage | ||
| 55 | - } else { | ||
| 56 | - return WDRouterPage.detailPlayVLivePage | ||
| 57 | - } | 53 | + return WDRouterPage.detailPlayLiveCommon |
| 58 | } else if (action.params?.detailPageType == 7 || action.params?.detailPageType == 8) { | 54 | } else if (action.params?.detailPageType == 7 || action.params?.detailPageType == 8) { |
| 59 | return WDRouterPage.detailVideoListPage | 55 | return WDRouterPage.detailVideoListPage |
| 60 | } else if (action.params?.detailPageType == 9) { | 56 | } else if (action.params?.detailPageType == 9) { |
| @@ -54,6 +54,7 @@ export class WDRouterPage { | @@ -54,6 +54,7 @@ export class WDRouterPage { | ||
| 54 | // 直播详情页 | 54 | // 直播详情页 |
| 55 | static detailPlayLivePage = new WDRouterPage("wdDetailPlayLive", "ets/pages/DetailPlayLivePage"); | 55 | static detailPlayLivePage = new WDRouterPage("wdDetailPlayLive", "ets/pages/DetailPlayLivePage"); |
| 56 | static detailPlayVLivePage = new WDRouterPage("wdDetailPlayLive", "ets/pages/DetailPlayVLivePage"); | 56 | static detailPlayVLivePage = new WDRouterPage("wdDetailPlayLive", "ets/pages/DetailPlayVLivePage"); |
| 57 | + static detailPlayLiveCommon = new WDRouterPage("wdDetailPlayLive", "ets/pages/DetailPlayLiveCommon"); | ||
| 57 | // 多图(图集)详情页 | 58 | // 多图(图集)详情页 |
| 58 | static multiPictureDetailPage = new WDRouterPage("phone", "ets/pages/detail/MultiPictureDetailPage"); | 59 | static multiPictureDetailPage = new WDRouterPage("phone", "ets/pages/detail/MultiPictureDetailPage"); |
| 59 | //大图列表页 | 60 | //大图列表页 |
| @@ -4,6 +4,7 @@ import { Logger } from 'wdKit'; | @@ -4,6 +4,7 @@ import { Logger } from 'wdKit'; | ||
| 4 | import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils'; | 4 | import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils'; |
| 5 | import { WDRouterRule } from '../router/WDRouterRule'; | 5 | import { WDRouterRule } from '../router/WDRouterRule'; |
| 6 | import { ContentConstants } from 'wdConstant'; | 6 | import { ContentConstants } from 'wdConstant'; |
| 7 | + | ||
| 7 | // import { LiveModel } from '../viewmodel/LiveModel'; | 8 | // import { LiveModel } from '../viewmodel/LiveModel'; |
| 8 | 9 | ||
| 9 | const TAG = 'ProcessUtils'; | 10 | const TAG = 'ProcessUtils'; |
| @@ -25,7 +26,7 @@ export class ProcessUtils { | @@ -25,7 +26,7 @@ export class ProcessUtils { | ||
| 25 | return; | 26 | return; |
| 26 | } | 27 | } |
| 27 | let type = content.objectType; | 28 | let type = content.objectType; |
| 28 | - console.log(TAG,'objectType',`${JSON.stringify(content)}`); | 29 | + console.log(TAG, 'objectType', `${JSON.stringify(content)}`); |
| 29 | switch (type) { | 30 | switch (type) { |
| 30 | case ContentConstants.TYPE_NONE: | 31 | case ContentConstants.TYPE_NONE: |
| 31 | Logger.debug(TAG, "processPage, do nothing"); | 32 | Logger.debug(TAG, "processPage, do nothing"); |
| @@ -164,15 +165,11 @@ export class ProcessUtils { | @@ -164,15 +165,11 @@ export class ProcessUtils { | ||
| 164 | } | 165 | } |
| 165 | 166 | ||
| 166 | private static async gotoLive(content: ContentDTO) { | 167 | private static async gotoLive(content: ContentDTO) { |
| 167 | - // const liveDetail = await LiveModel.getLiveDetails(content?.objectId || '', content?.relId || '', content?.relType || '') | ||
| 168 | - // const liveStyle = liveDetail[0].liveInfo.liveStyle | ||
| 169 | - // const liveState = liveDetail[0].liveInfo.liveState | ||
| 170 | let taskAction: Action = { | 168 | let taskAction: Action = { |
| 171 | type: 'JUMP_DETAIL_PAGE', | 169 | type: 'JUMP_DETAIL_PAGE', |
| 172 | params: { | 170 | params: { |
| 173 | detailPageType: 2, | 171 | detailPageType: 2, |
| 174 | contentID: content?.objectId, | 172 | contentID: content?.objectId, |
| 175 | - // liveStyle: liveState === 'wait' ? 0 : liveStyle, | ||
| 176 | extra: { | 173 | extra: { |
| 177 | relType: content?.relType, | 174 | relType: content?.relType, |
| 178 | relId: content?.relId, | 175 | relId: content?.relId, |
| @@ -68,20 +68,12 @@ export struct HorizontalStrokeCardThreeTwoRadioForOneComponent { | @@ -68,20 +68,12 @@ export struct HorizontalStrokeCardThreeTwoRadioForOneComponent { | ||
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | async gotoLive(content: ContentDTO) { | 70 | async gotoLive(content: ContentDTO) { |
| 71 | - const liveDetail = await LiveModel.getLiveDetails(content?.objectId || '', content?.relId || '', content?.relType || '') | ||
| 72 | - const liveStyle = liveDetail[0].liveInfo.liveStyle | ||
| 73 | - const liveState = liveDetail[0].liveInfo.liveState | ||
| 74 | - | ||
| 75 | - | ||
| 76 | - console.error('liveDetail===', liveDetail) | ||
| 77 | - | ||
| 78 | 71 | ||
| 79 | let taskAction: Action = { | 72 | let taskAction: Action = { |
| 80 | type: 'JUMP_DETAIL_PAGE', | 73 | type: 'JUMP_DETAIL_PAGE', |
| 81 | params: { | 74 | params: { |
| 82 | detailPageType: 2, | 75 | detailPageType: 2, |
| 83 | contentID: content?.objectId, | 76 | contentID: content?.objectId, |
| 84 | - liveStyle: liveState === 'wait' ? 0 : liveStyle, | ||
| 85 | extra: { | 77 | extra: { |
| 86 | relType: content?.relType, | 78 | relType: content?.relType, |
| 87 | relId: content?.relId, | 79 | relId: content?.relId, |
| @@ -108,20 +108,12 @@ export struct LiveHorizontalReservationComponent { | @@ -108,20 +108,12 @@ export struct LiveHorizontalReservationComponent { | ||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | async gotoLive(content: ContentDTO) { | 110 | async gotoLive(content: ContentDTO) { |
| 111 | - const liveDetail = await LiveModel.getLiveDetails(content?.objectId || '', content?.relId || '', content?.relType || '') | ||
| 112 | - const liveStyle = liveDetail[0].liveInfo.liveStyle | ||
| 113 | - const liveState = liveDetail[0].liveInfo.liveState | ||
| 114 | - | ||
| 115 | - | ||
| 116 | - console.error('liveDetail===', liveDetail) | ||
| 117 | - | ||
| 118 | 111 | ||
| 119 | let taskAction: Action = { | 112 | let taskAction: Action = { |
| 120 | type: 'JUMP_DETAIL_PAGE', | 113 | type: 'JUMP_DETAIL_PAGE', |
| 121 | params: { | 114 | params: { |
| 122 | detailPageType: 2, | 115 | detailPageType: 2, |
| 123 | contentID: content?.objectId, | 116 | contentID: content?.objectId, |
| 124 | - liveStyle: liveState === 'wait' ? 0 : liveStyle, | ||
| 125 | extra: { | 117 | extra: { |
| 126 | relType: content?.relType, | 118 | relType: content?.relType, |
| 127 | relId: content?.relId, | 119 | relId: content?.relId, |
-
Please register or login to post a comment