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-13 17:34:23 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
499d8e9d03bb475f2f1490b65c858198c4fc0bac
499d8e9d
1 parent
9143347d
fix: 搜索-0807话题专题,搜索结果中话题专题卡片未展示标签和专题名称
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card5Component.ets
sight_harmony/products/phone/src/main/ets/pages/view/VideoChannelPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
View file @
499d8e9
...
...
@@ -59,6 +59,7 @@ export struct CardParser {
Column() {
// Text('CardParser')
// Text(JSON.stringify(this.contentDTO.appStyle))
// Text(this.contentDTO.newsTitle)
this.contentBuilder(this.contentDTO);
}
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card5Component.ets
View file @
499d8e9
...
...
@@ -28,7 +28,9 @@ export struct Card5Component {
@State textArr: textItem[] = []
async aboutToAppear(): Promise<void> {
console.log('Card2Component', JSON.stringify(this.compDTO),this.contentDTO.titleShow)
// console.log(TAG, JSON.stringify(this.compDTO),this.contentDTO.titleShow)
// console.log(TAG, 'this.contentDTO.title', this.contentDTO.title)
// console.log(TAG, 'this.contentDTO.newsTitle', this.contentDTO.newsTitle)
const curRouter = router.getState().name;
this.clicked = hasClicked(this.contentDTO.objectId, curRouter)
this.loadImg = await onlyWifiLoadImg();
...
...
@@ -68,7 +70,7 @@ export struct Card5Component {
.borderColor($r('app.color.color_0D000000'))
.height(this.loadImg ? '' : 114)
.autoResize(true)
if (this.
titleShowPolicy
== 1) {
if (this.
contentDTO.titleShow
== 1) {
Row()
.borderRadius(
{
...
...
@@ -87,7 +89,7 @@ export struct Card5Component {
})
Row() {
if (this.
titleShowPolicy
== 1 && this.contentDTO.newsTitle) {
if (this.
contentDTO.titleShow
== 1 && this.contentDTO.newsTitle) {
Stack() {
if(this.contentDTO.objectType == '5'){
Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center)
...
...
sight_harmony/products/phone/src/main/ets/pages/view/VideoChannelPage.ets
View file @
499d8e9
...
...
@@ -48,7 +48,7 @@ export struct VideoChannelPage {
async aboutToAppear() {
// 背景图高度
this.backgroundImageH = px2vp(this.topSafeHeight) + 44
console.info(`cj2024 backgroundImageH = ${this.backgroundImageH} this.topSafeHeight = ${this.topSafeHeight}`)
//
console.info(`cj2024 backgroundImageH = ${this.backgroundImageH} this.topSafeHeight = ${this.topSafeHeight}`)
this.setBarBackgroundColor()
}
...
...
@@ -89,7 +89,7 @@ export struct VideoChannelPage {
* @returns
*/
tabSelectedColor(selected: boolean): string {
console.info(`cj2024 selected this.navItem.channelChooseColor=${this.navItem.channelChooseColor} selected = ${selected}`)
//
console.info(`cj2024 selected this.navItem.channelChooseColor=${this.navItem.channelChooseColor} selected = ${selected}`)
if (selected) {
return this.navItem.channelChooseColor ? this.navItem.channelChooseColor : '#222222'
} else {
...
...
Please
register
or
login
to post a comment