douaojie

fix: 调整字体粗细

1 import { Action, CompDTO, ContentDTO, Params } from 'wdBean'; 1 import { Action, CompDTO, ContentDTO, Params } from 'wdBean';
2 import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'; 2 import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO';
3 import { CommonConstants } from 'wdConstant/Index'; 3 import { CommonConstants } from 'wdConstant/Index';
4 -import { DateTimeUtils } from 'wdKit';  
5 import { WDRouterRule } from 'wdRouter'; 4 import { WDRouterRule } from 'wdRouter';
6 -import { CardMediaInfo } from '../cardCommon/CardMediaInfo'  
7 -import { CardSourceInfo } from '../cardCommon/CardSourceInfo' 5 +import { CardSourceInfo } from '../cardCommon/CardSourceInfo';
8 import { onlyWifiLoadImg } from '../../utils/lazyloadImg'; 6 import { onlyWifiLoadImg } from '../../utils/lazyloadImg';
  7 +import { CardMediaInfo } from '../cardCommon/CardMediaInfo';
9 8
10 const TAG = 'Card17Component'; 9 const TAG = 'Card17Component';
11 10
@@ -23,7 +22,6 @@ export struct Card17Component { @@ -23,7 +22,6 @@ export struct Card17Component {
23 this.loadImg = await onlyWifiLoadImg(); 22 this.loadImg = await onlyWifiLoadImg();
24 } 23 }
25 24
26 -  
27 build() { 25 build() {
28 Column({ space: 8 }) { 26 Column({ space: 8 }) {
29 Text(this.contentDTO.newsTitle) 27 Text(this.contentDTO.newsTitle)
@@ -38,7 +36,8 @@ export struct Card17Component { @@ -38,7 +36,8 @@ export struct Card17Component {
38 // 三个图, 36 // 三个图,
39 GridRow({ gutter: 2 }) { 37 GridRow({ gutter: 2 }) {
40 GridCol({ span: { xs: 8 } }) { 38 GridCol({ span: { xs: 8 } }) {
41 - Image(this.loadImg ? this.contentDTO.fullColumnImgUrls.length > 0 ?this.contentDTO.fullColumnImgUrls[0].url:'' : '') 39 + Image(this.loadImg ?
  40 + this.contentDTO.fullColumnImgUrls.length > 0 ? this.contentDTO.fullColumnImgUrls[0].url : '' : '')
42 .backgroundColor(this.loadImg ? '#f5f5f5' : 0xf5f5f5) 41 .backgroundColor(this.loadImg ? '#f5f5f5' : 0xf5f5f5)
43 .width(CommonConstants.FULL_WIDTH) 42 .width(CommonConstants.FULL_WIDTH)
44 .aspectRatio(16 / 9) 43 .aspectRatio(16 / 9)
@@ -49,7 +48,8 @@ export struct Card17Component { @@ -49,7 +48,8 @@ export struct Card17Component {
49 } 48 }
50 49
51 GridCol({ span: { xs: 4 } }) { 50 GridCol({ span: { xs: 4 } }) {
52 - Image(this.loadImg ? this.contentDTO.fullColumnImgUrls.length > 1? this.contentDTO.fullColumnImgUrls[1].url:'' : '') 51 + Image(this.loadImg ?
  52 + this.contentDTO.fullColumnImgUrls.length > 1 ? this.contentDTO.fullColumnImgUrls[1].url : '' : '')
53 .backgroundColor(this.loadImg ? '#f5f5f5' : 0xf5f5f5) 53 .backgroundColor(this.loadImg ? '#f5f5f5' : 0xf5f5f5)
54 .width(CommonConstants.FULL_WIDTH) 54 .width(CommonConstants.FULL_WIDTH)
55 .aspectRatio(16 / 9) 55 .aspectRatio(16 / 9)
@@ -65,7 +65,8 @@ export struct Card17Component { @@ -65,7 +65,8 @@ export struct Card17Component {
65 } 65 }
66 66
67 GridCol({ span: { xs: 4 } }) { 67 GridCol({ span: { xs: 4 } }) {
68 - Image(this.loadImg ? this.contentDTO.fullColumnImgUrls.length > 2? this.contentDTO.fullColumnImgUrls[2].url:'' : '') 68 + Image(this.loadImg ?
  69 + this.contentDTO.fullColumnImgUrls.length > 2 ? this.contentDTO.fullColumnImgUrls[2].url : '' : '')
69 .backgroundColor(this.loadImg ? '#f5f5f5' : 0xf5f5f5) 70 .backgroundColor(this.loadImg ? '#f5f5f5' : 0xf5f5f5)
70 .width(CommonConstants.FULL_WIDTH) 71 .width(CommonConstants.FULL_WIDTH)
71 .aspectRatio(16 / 9) 72 .aspectRatio(16 / 9)
@@ -94,6 +95,7 @@ export struct Card17Component { @@ -94,6 +95,7 @@ export struct Card17Component {
94 }; 95 };
95 WDRouterRule.jumpWithAction(taskAction) 96 WDRouterRule.jumpWithAction(taskAction)
96 }) 97 })
  98 +
97 // 评论等信息 99 // 评论等信息
98 CardSourceInfo({ contentDTO: this.contentDTO }) 100 CardSourceInfo({ contentDTO: this.contentDTO })
99 } 101 }
@@ -82,7 +82,7 @@ export struct SearchResultComponent { @@ -82,7 +82,7 @@ export struct SearchResultComponent {
82 .margin({ right: '10lpx' }) 82 .margin({ right: '10lpx' })
83 Text("为你推荐") 83 Text("为你推荐")
84 .textAlign(TextAlign.Start) 84 .textAlign(TextAlign.Start)
85 - .fontWeight('600lpx') 85 + .fontWeight(600)
86 .fontSize('33lpx') 86 .fontSize('33lpx')
87 .lineHeight('46lpx') 87 .lineHeight('46lpx')
88 .fontColor($r('app.color.color_222222')) 88 .fontColor($r('app.color.color_222222'))