wangyujian_wd

fix:电子报文字版列表,点击跳转详情事件添加

1 -import { NewspaperListBean, NewspaperListItemBean, NewspaperPositionItemBean } from 'wdBean' 1 +import { Action, NewspaperListBean, NewspaperListItemBean, NewspaperPositionItemBean, Params } from 'wdBean'
  2 +import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'
  3 +import { WDRouterRule } from 'wdRouter/Index'
2 import { ENewspaperPageDialog } from '../dialog/ENewspaperPageDialog' 4 import { ENewspaperPageDialog } from '../dialog/ENewspaperPageDialog'
3 5
4 /** 6 /**
@@ -143,6 +145,24 @@ export struct ENewspaperListDialog { @@ -143,6 +145,24 @@ export struct ENewspaperListDialog {
143 } 145 }
144 } 146 }
145 .alignItems(HorizontalAlign.Start) 147 .alignItems(HorizontalAlign.Start)
  148 + .onClick(() => {
  149 + let taskAction: Action = {
  150 + type: 'JUMP_INNER_NEW_PAGE',
  151 + params: {
  152 + contentID: '' + positionItem.newsId,
  153 + pageID: 'IMAGE_TEXT_DETAIL',
  154 + extra: {
  155 + relType: positionItem.relType ?? '',
  156 + relId: '' + positionItem.relId,
  157 + sourcePage: '5'
  158 + } as ExtraDTO
  159 + } as Params,
  160 + };
  161 + WDRouterRule.jumpWithAction(taskAction)
  162 + if (this.listDialogController) {
  163 + this.listDialogController.close()
  164 + }
  165 + })
146 } 166 }
147 167
148 }) 168 })