wangliang_wd

Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main

* 'main' of http://192.168.1.42/developOne/harmonyPool:
  fix: 19525 【UI走查-卡片】折叠屏展开-单图卡
  去除title中的所有换行符
  去除title中的换行符,第四行适配使得箭头在第四行
  ref |> 修复直播详情大家聊角色标签UI走查问题
  17700 【UI】【UAT】【缺省图】视频稿件进入详情后,没有获取到播放数据时,没有展示缺省图
  20217 号主-猛犸新闻,动态tab页,单图动态稿件,图片未展示。
@@ -191,7 +191,7 @@ struct createImg { @@ -191,7 +191,7 @@ struct createImg {
191 }) { 191 }) {
192 ForEach(this.fullColumnImgUrls, (item: FullColumnImgUrlDTO, index: number) => { 192 ForEach(this.fullColumnImgUrls, (item: FullColumnImgUrlDTO, index: number) => {
193 if (this.fullColumnImgUrls.length === 1) { 193 if (this.fullColumnImgUrls.length === 1) {
194 - if (this.getPicType(item.weight, item.height) !== 3) { 194 + if (this.getPicType(item.weight, item.height) < 3) {
195 GridCol({ 195 GridCol({
196 span: this.getPicType(item.weight, item.height) === 1 ? 12 : 8 196 span: this.getPicType(item.weight, item.height) === 1 ? 12 : 8
197 }){ 197 }){
@@ -115,7 +115,7 @@ export struct Card6Component { @@ -115,7 +115,7 @@ export struct Card6Component {
115 .height(this.contentDTO.appStyle === CompStyle.Card_13 ? '' : 156) 115 .height(this.contentDTO.appStyle === CompStyle.Card_13 ? '' : 156)
116 .constraintSize({minHeight: 78}) 116 .constraintSize({minHeight: 78})
117 .justifyContent(FlexAlign.SpaceBetween) 117 .justifyContent(FlexAlign.SpaceBetween)
118 - .width('64%') 118 + .width('calc(100% - 117vp - 12vp)')
119 119
120 120
121 Stack({alignContent: Alignment.BottomEnd}) { 121 Stack({alignContent: Alignment.BottomEnd}) {
1 import { CommonConstants } from 'wdConstant'; 1 import { CommonConstants } from 'wdConstant';
2 import { Logger } from 'wdKit'; 2 import { Logger } from 'wdKit';
  3 +import { router } from '@kit.ArkUI';
3 4
4 const TAG = 'EmptyComponent'; 5 const TAG = 'EmptyComponent';
5 6
@@ -108,7 +109,19 @@ export struct EmptyComponent { @@ -108,7 +109,19 @@ export struct EmptyComponent {
108 } 109 }
109 110
110 build() { 111 build() {
111 - this.noProgrammeData(); 112 + Stack({alignContent:Alignment.Bottom}) {
  113 + this.noProgrammeData();
  114 + Image($r("app.media.icon_arrow_left_white"))
  115 + .width(24)
  116 + .height(24)
  117 + .onClick(() => {
  118 + router.back();
  119 + })
  120 + .position({
  121 + bottom: 15,
  122 + left: 16
  123 + })
  124 + }
112 } 125 }
113 126
114 /** 127 /**
@@ -4,6 +4,7 @@ import { Logger, StringUtils } from 'wdKit/Index' @@ -4,6 +4,7 @@ import { Logger, StringUtils } from 'wdKit/Index'
4 import { WDRouterRule } from 'wdRouter' 4 import { WDRouterRule } from 'wdRouter'
5 import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO' 5 import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'
6 import { LiveMessageOptType, LiveMessageRole } from 'wdBean/src/main/ets/bean/live/LiveRoomBean' 6 import { LiveMessageOptType, LiveMessageRole } from 'wdBean/src/main/ets/bean/live/LiveRoomBean'
  7 +import { LengthMetrics, LengthUnit } from '@kit.ArkUI'
7 8
8 const TAG = "TabChatItemComponent" 9 const TAG = "TabChatItemComponent"
9 10
@@ -68,14 +69,20 @@ export struct TabChatItemComponent { @@ -68,14 +69,20 @@ export struct TabChatItemComponent {
68 Span(' 主持人 ') 69 Span(' 主持人 ')
69 .fontSize(11) 70 .fontSize(11)
70 .lineHeight(20) 71 .lineHeight(20)
71 - .textBackgroundStyle({ color: "#70FFC63F", radius: 2 }) 72 + .textBackgroundStyle({ color: "#F1EFEB"})
  73 + .baselineOffset(new LengthMetrics(5,LengthUnit.PX))
  74 + .fontColor('#968562')
  75 + .borderRadius(2)
72 Span(' ') 76 Span(' ')
73 } 77 }
74 if (this.item.role == LiveMessageRole.guest) { 78 if (this.item.role == LiveMessageRole.guest) {
75 Span(' 嘉宾 ') 79 Span(' 嘉宾 ')
76 .fontSize(11) 80 .fontSize(11)
77 .lineHeight(20) 81 .lineHeight(20)
78 - .textBackgroundStyle({ color: "#70FFC63F", radius: 2 }) 82 + .textBackgroundStyle({ color: "#F1EFEB"})
  83 + .baselineOffset(new LengthMetrics(5,LengthUnit.PX))
  84 + .fontColor('#968562')
  85 + .borderRadius(2)
79 Span(' ') 86 Span(' ')
80 } 87 }
81 Span("回复了 ").fontColor('#222222') 88 Span("回复了 ").fontColor('#222222')
@@ -71,7 +71,7 @@ export struct PlayerTitleView { @@ -71,7 +71,7 @@ export struct PlayerTitleView {
71 * @returns {string} clipStr 截断后的文本 '啊啊' 71 * @returns {string} clipStr 截断后的文本 '啊啊'
72 */ 72 */
73 clipText(str: string, fontSize: number, maxLines: number, textWidth: number): string { 73 clipText(str: string, fontSize: number, maxLines: number, textWidth: number): string {
74 - let strArr: string[] = str.split("") 74 + let strArr: string[] = str.replace(/\n/g, '').split("")
75 let truncateContent: string = '啊啊啊啊啊啊' // ...比正常文字宽度更小,这里使用啊啊啊(任意三个文字)代替计算 75 let truncateContent: string = '啊啊啊啊啊啊' // ...比正常文字宽度更小,这里使用啊啊啊(任意三个文字)代替计算
76 let measureTruncateWidth: number = measure.measureText({ 76 let measureTruncateWidth: number = measure.measureText({
77 textContent: truncateContent, 77 textContent: truncateContent,
@@ -219,7 +219,7 @@ export struct PlayerTitleView { @@ -219,7 +219,7 @@ export struct PlayerTitleView {
219 // } else { 219 // } else {
220 if (this.summary && this.titleLines < 4) { 220 if (this.summary && this.titleLines < 4) {
221 Text() { 221 Text() {
222 - Span(this.clipText(this.summary, 14, this.summaryLines, this.windowWidth - 150 - vp2px(50))) 222 + Span(this.clipText(this.summary, 14, this.summaryLines, this.windowWidth - 160 - vp2px(50)))
223 .fontSize(14) 223 .fontSize(14)
224 .fontColor(Color.White) 224 .fontColor(Color.White)
225 .lineHeight(21) 225 .lineHeight(21)