Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-08-20 15:44:10 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0d547accf4e25eea0862db6cc7edf9e69ada4312
0d547acc
1 parent
fefaea9f
fix: 精选评论卡ui修改
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
sight_harmony/commons/wdConstant/src/main/ets/enum/CompStyle.ts
sight_harmony/features/wdComponent/src/main/ets/components/CompParser.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow06.ets
sight_harmony/commons/wdConstant/src/main/ets/enum/CompStyle.ts
View file @
0d547ac
...
...
@@ -38,6 +38,7 @@ export const enum CompStyle {
Zh_Single_Column_09
=
'Zh_Single_Column-09'
,
//12 问政提问卡
Zh_Single_Column_10
=
'Zh_Single_Column-10'
,
//18 服务组合卡
Zh_Single_Column_11
=
'Zh_Single_Column-11'
,
//19 问政组合卡
Zh_Single_Column_12
=
'Zh_Single_Column-12'
,
//
Zh_Grid_Layout_01
=
'Zh_Grid_Layout-01'
,
//4 信息流组合卡
Zh_Grid_Layout_02
=
'Zh_Grid_Layout-02'
,
//7 双列流小视频,一行两图卡 ->标题
Zh_Grid_Layout_03
=
'Zh_Grid_Layout-03'
,
//11 金刚位卡
...
...
sight_harmony/features/wdComponent/src/main/ets/components/CompParser.ets
View file @
0d547ac
...
...
@@ -224,16 +224,14 @@ export struct CompParser {
} else {
Divider().strokeWidth(5).color('#f5f5f5').width('120%').margin({left: -6})
}
} else if (this.compDTO.compStyle === CompStyle.Card_03 || this.compDTO.compStyle === CompStyle.Card_13 || this.compDTO.compStyle === CompStyle.Card_06 ||
this.compDTO.compStyle === CompStyle.Card_04 || this.compDTO.compStyle === CompStyle.Card_02 || this.compDTO.compStyle === CompStyle.Card_17) { // 无图卡 左文右图卡 小视频卡 三图卡 大图卡 图集卡
Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 })
} else if (this.compDTO.compType === 'appStyle' || this.compDTO.compStyle === CompStyle.Zh_Single_Row_01 || this.compDTO.compStyle === CompStyle.Card_Comp_Adv || this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) {
if (
this.nextCompDTO.compStyle === CompStyle.Card_09 ||
this.nextCompDTO?.operDataList?.[0]?.appStyle === CompStyle.Card_10 ||
this.nextCompDTO.compStyle === CompStyle.Zh_Single_Column_09 ||
this.nextCompDTO.compStyle === CompStyle.Zh_Single_Row_04 ||
this.nextCompDTO.compStyle === CompStyle.Zh_Single_Row_06
this.nextCompDTO.compStyle === CompStyle.Zh_Single_Row_06 ||
this.nextCompDTO.compStyle === CompStyle.Zh_Single_Column_12
) {
Divider().strokeWidth(5).color('#f5f5f5').width('120%').margin({left: -6})
} else {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow06.ets
View file @
0d547ac
...
...
@@ -145,7 +145,7 @@ export struct ZhSingleRow06 {
Row() {
Text(DateTimeUtils.getCommentTime(this.compDTO.operDataList[0]?.commentInfo?.publishTime))
.fontSize(1
2
)
.fontSize(1
4
)
.fontColor(0x999999)
Row(){
...
...
@@ -155,7 +155,7 @@ export struct ZhSingleRow06 {
.margin({right: 3})
Text(Number(this.newsStatusOfUser?.likeStatus) == 1 ? '已赞' : '点赞')
.fontSize(1
5
)
.fontSize(1
4
)
.fontColor(0x999999)
}
.onClick(() => {
...
...
Please
register
or
login
to post a comment