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
chenjun3_wd
2024-04-22 16:32:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1e3c22e7226302dd3f6370eed32ec12390c33725
1e3c22e7
1 parent
a3b68aca
直播列表item跳图文详情页,其他bug修复
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/ReserveMorePage.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalCardComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalReservationComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/ReserveMorePage.ets
View file @
1e3c22e
...
...
@@ -86,9 +86,8 @@ struct ReserveMorePage {
// .title('直播列表')
Column() {
Column() {
this.TabbarNormal()
Column() {
this.ListLayout()
}
.padding({
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalCardComponent.ets
View file @
1e3c22e
...
...
@@ -6,6 +6,8 @@ import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'
import { CardMediaInfo } from '../cardCommon/CardMediaInfo'
import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'
import { LiveModel } from '../../viewmodel/LiveModel'
import { ContentConstants } from '../../constants/ContentConstants'
import { ProcessUtils } from '../../utils/ProcessUtils'
@Component
export struct LiveHorizontalCardComponent {
...
...
@@ -25,7 +27,7 @@ export struct LiveHorizontalCardComponent {
.fontWeight(600)
}
if (this.compDTO.
operDataList.length > 2
) {
if (this.compDTO.
dataSourceType === 'LIVE_HORIZONTAL_CARD' || this.compDTO.dataSourceType === 'LIVE_MONTHLY_RANKING'
) {
Row() {
Text("更多")
.fontSize($r("app.float.font_size_14"))
...
...
@@ -118,13 +120,14 @@ export struct LiveHorizontalCardComponent {
async gotoLive(content: ContentDTO) {
const liveDetail = await LiveModel.getLiveDetails(content?.objectId || '', content?.relId || '', content?.relType || '')
if (content && content.objectType) {
if (content.objectType === ContentConstants.TYPE_LIVE) {
if (liveDetail && liveDetail[0] && liveDetail[0].liveInfo) {
const liveStyle = liveDetail[0].liveInfo.liveStyle
const liveState = liveDetail[0].liveInfo.liveState
console.error('liveDetail===', liveDetail)
let taskAction: Action = {
type: 'JUMP_DETAIL_PAGE',
params: {
...
...
@@ -140,4 +143,11 @@ export struct LiveHorizontalCardComponent {
WDRouterRule.jumpWithAction(taskAction)
// Logger.debug(TAG, `gotoLive, ${content.objectId}`);
}
} else if (content.objectType === ContentConstants.TYPE_TELETEXT) {
ProcessUtils.processPage(content)
}
}
}
}
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalReservationComponent.ets
View file @
1e3c22e
...
...
@@ -26,7 +26,7 @@ export struct LiveHorizontalReservationComponent {
.fontWeight(600)
}
if (this.compDTO.
operDataList.length > 2
) {
if (this.compDTO.
dataSourceType === 'LIVE_RESERVATION'
) {
Row() {
Text("更多")
.fontSize($r("app.float.font_size_14"))
...
...
Please
register
or
login
to post a comment