Showing
2 changed files
with
7 additions
and
10 deletions
| @@ -4,7 +4,7 @@ import { ProcessUtils } from 'wdRouter'; | @@ -4,7 +4,7 @@ import { ProcessUtils } from 'wdRouter'; | ||
| 4 | import { CardSourceInfo } from '../cardCommon/CardSourceInfo' | 4 | import { CardSourceInfo } from '../cardCommon/CardSourceInfo' |
| 5 | import { CardMediaInfo } from '../cardCommon/CardMediaInfo' | 5 | import { CardMediaInfo } from '../cardCommon/CardMediaInfo' |
| 6 | import { onlyWifiLoadImg } from '../../utils/lazyloadImg'; | 6 | import { onlyWifiLoadImg } from '../../utils/lazyloadImg'; |
| 7 | -import { Notes } from './notes'; | 7 | + |
| 8 | const TAG: string = 'Card4Component'; | 8 | const TAG: string = 'Card4Component'; |
| 9 | 9 | ||
| 10 | /** | 10 | /** |
| @@ -43,12 +43,12 @@ export struct Card4Component { | @@ -43,12 +43,12 @@ export struct Card4Component { | ||
| 43 | Column() { | 43 | Column() { |
| 44 | //body | 44 | //body |
| 45 | Column() { | 45 | Column() { |
| 46 | - if (this.contentDTO.newTags) { | 46 | + //新闻标题 |
| 47 | + if (this.contentDTO.newTags) { | ||
| 47 | Notes({ newTags: this.contentDTO.newTags }) | 48 | Notes({ newTags: this.contentDTO.newTags }) |
| 48 | - } else if (this.contentDTO.objectType == '5') { | 49 | + } else if (this.contentDTO.objectType == '5') { |
| 49 | Notes({ objectType: this.contentDTO.objectType }) | 50 | Notes({ objectType: this.contentDTO.objectType }) |
| 50 | - } | ||
| 51 | - //新闻标题 | 51 | + } |
| 52 | Text() { | 52 | Text() { |
| 53 | if (this.titleMarked) { | 53 | if (this.titleMarked) { |
| 54 | Span(this.str01) | 54 | Span(this.str01) |
| @@ -63,6 +63,8 @@ export struct Card4Component { | @@ -63,6 +63,8 @@ export struct Card4Component { | ||
| 63 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) | 63 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) |
| 64 | .maxLines(3) | 64 | .maxLines(3) |
| 65 | .textOverflow({ overflow: TextOverflow.Ellipsis }) // 超出的部分显示省略号。 | 65 | .textOverflow({ overflow: TextOverflow.Ellipsis }) // 超出的部分显示省略号。 |
| 66 | + | ||
| 67 | + | ||
| 66 | //三图 | 68 | //三图 |
| 67 | Stack(){ | 69 | Stack(){ |
| 68 | Row() { | 70 | Row() { |
| @@ -101,10 +103,6 @@ export struct Card4Component { | @@ -101,10 +103,6 @@ export struct Card4Component { | ||
| 101 | this.clicked = true; | 103 | this.clicked = true; |
| 102 | ProcessUtils.processPage(this.contentDTO) | 104 | ProcessUtils.processPage(this.contentDTO) |
| 103 | }) | 105 | }) |
| 104 | - .textIndent(this.contentDTO.newTags?.length < 5 && this.contentDTO.newTags?.length > 2 ? 58 : | ||
| 105 | - (this.contentDTO.newTags?.length != 0 && this.contentDTO.newTags?.length) || | ||
| 106 | - this.contentDTO.objectType == '5' ? 30 : 0) | ||
| 107 | - }.alignContent(Alignment.TopStart) | ||
| 108 | //bottom 评论等信息 | 106 | //bottom 评论等信息 |
| 109 | CardSourceInfo({ compDTO: this.compDTO, contentDTO: this.contentDTO }) | 107 | CardSourceInfo({ compDTO: this.compDTO, contentDTO: this.contentDTO }) |
| 110 | } | 108 | } |
| @@ -38,7 +38,6 @@ export struct DetailVideoListPage { | @@ -38,7 +38,6 @@ export struct DetailVideoListPage { | ||
| 38 | let netStatus = NetworkUtil.isNetConnected() | 38 | let netStatus = NetworkUtil.isNetConnected() |
| 39 | if (netStatus) { | 39 | if (netStatus) { |
| 40 | this.openFullScreen() | 40 | this.openFullScreen() |
| 41 | - | ||
| 42 | const action: Action = router.getParams() as Action | 41 | const action: Action = router.getParams() as Action |
| 43 | if (action) { | 42 | if (action) { |
| 44 | this.contentId = action.params?.contentID || '' | 43 | this.contentId = action.params?.contentID || '' |
-
Please register or login to post a comment