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-10-12 17:37:58 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
f18c031dcaffe95abe087f61a411c79cf75ddc17
f18c031d
2 parents
311dbfea
86ff57aa
Merge branch 'main' of
http://192.168.1.42/developOne/harmonyPool
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card19Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card19Component.ets
View file @
f18c031
...
...
@@ -34,7 +34,7 @@ export struct Card19Component {
}
titleInit() {
const titleInitRes:titleInitRes = SearchShowRed.titleInit(this.contentDTO.title);
const titleInitRes:titleInitRes = SearchShowRed.titleInit(this.contentDTO.title
|| this.contentDTO.newsTitle
);
this.titleMarked = titleInitRes.titleMarked;
this.textArr = titleInitRes.textArr;
}
...
...
@@ -52,8 +52,9 @@ export struct Card19Component {
pageName: this.pageName,
isPeopleShipHome:this.isPeopleShipHome, loadImg: this.loadImg
}
) // 标题
if (this.contentDTO.newsTitle) {
)
// 标题
if (this.contentDTO.title || this.contentDTO.newsTitle ) {
Text() {
if (this.titleMarked) {
ForEach(this.textArr, (textItem: textItem) => {
...
...
@@ -292,9 +293,7 @@ struct createImg {
.backgroundColor(0xf5f5f5)
// .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305)
.width('100%')
.constraintSize({
maxHeight: this.onePicW > this.onePicH ? 198 : 305
})
.aspectRatio(this.onePicW / this.onePicH < 1.5 ? 343 / 198 : 343 / 305)
.autoResize(true)
.borderRadius(this.caclImageRadius(index))
.borderStyle(BorderStyle.Solid)
...
...
Please
register
or
login
to post a comment