yangchenggong1_wd

fix:bug[17755] 消息中的预约消息无法跳转到对应的直播详情页

... ... @@ -7,6 +7,8 @@ import { CustomTitleUI } from '../../../reusable/CustomTitleUI';
import { ListHasNoMoreDataUI } from '../../../reusable/ListHasNoMoreDataUI';
import { EmptyComponent } from '../../../view/EmptyComponent';
import { SubscribeListChildComponent } from './SubscribeListChildComponent';
import { Action } from 'wdBean/Index';
import { WDRouterPage, WDRouterRule } from 'wdRouter/Index';
const TAG = "SubscribeMessageComponent"
... ... @@ -71,6 +73,19 @@ export struct SubscribeMessageComponent{
ListItem() {
SubscribeListChildComponent({ item: item })
}.width('100%')
.onClick(()=>{
let action = {
type:item.contentType,
params:{
extra:{
relId:item.relId,
relType:item.relType
},
contentID:item.contentId
}
} as Action
WDRouterRule.jumpWithPage(WDRouterPage.detailPlayLiveCommon, action)
})
})
//没有更多数据 显示提示
if (!this.hasMore) {
... ... @@ -97,7 +112,11 @@ export struct SubscribeMessageComponent{
let remark = JSON.parse(value.remark) as Remark
this.data.push(new SubscribeMessageModel(dealTime,value.message,remark.coverImageUrl,value.title,dealTime2,value.contentId))
let bean = new SubscribeMessageModel(dealTime,value.message,remark.coverImageUrl,value.title,dealTime2,value.contentId)
bean.relId = remark.relationId
bean.relType = remark.relationType
bean.contentType = value.contentType
this.data.push(bean)
})
this.data.notifyDataReload()
this.count = this.data.totalCount()
... ...
... ... @@ -90,6 +90,9 @@ export class SubscribeMessageModel{
desc:string = ""
time:string = ""
contentId:string = ""
contentType:string = ""
relId :string = ""
relType:string = ""
constructor(dealTime: string, title: string, imgUrl: string, desc: string , time: string, contentId: string) {
this.dealTime = dealTime
... ...