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-09-27 17:19:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
16ba6e3e37b53a641fb46e97870299ba959df7f2
16ba6e3e
1 parent
90bd6ef8
fix: 19531 【UI走查-卡片】折叠屏展开-人民号单图卡
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/RmhTitle.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/RmhTitle.ets
View file @
16ba6e3
...
...
@@ -129,6 +129,10 @@ export struct RmhTitle {
return !(this.hideTime && this.getDaysBetweenDates(Number(this.publishTime)) > 2)
}
hasRightFollow() {
return this.rmhInfo?.cnIsAttention && this.rmhInfo?.userType != "5"
}
build() {
Flex() {
if (this.rmhInfo.userType != '5') {
...
...
@@ -196,7 +200,7 @@ export struct RmhTitle {
.textAlign(TextAlign.Start)
.height(14)
.lineHeight(14)
.width(
'calc(100% - 65vp)
')
.width(
this.hasRightFollow() ? 'calc(100% - 65vp)' : '100%
')
// .constraintSize({maxWidth:(DisplayUtils.getDeviceWidth() - 32 - 36 - 18 - this.getTextWidth(DateTimeUtils.getCommentTime(Number.parseFloat(this.publishTime))))})
}
...
...
@@ -211,7 +215,7 @@ export struct RmhTitle {
.width('100%')
Blank()
if (this.
rmhInfo?.cnIsAttention && this.rmhInfo?.userType != "5"
) {
if (this.
hasRightFollow()
) {
Column() {
Row(){
if (Number(this.followStatus) === 0) {
...
...
Please
register
or
login
to post a comment