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
wangliang_wd
2024-07-09 15:15:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0fc9643bcb6b5537307bfa7d87efb11b1e989e25
0fc9643b
1 parent
d48cb1c7
feat:优化我的收藏
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card10Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/PeopleShipHomePage.ets
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
View file @
0fc9643
...
...
@@ -104,7 +104,7 @@ export struct CardParser {
pageId: this.pageId,
pageName: this.pageName
})
} else if (contentDTO.appStyle === CompStyle.Card_10) {
} else if (contentDTO.appStyle === CompStyle.Card_10
|| contentDTO.appStyle === CompStyle.Card_09
) {
Card10Component({
compDTO: this.compDTO,
contentDTO,
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card10Component.ets
View file @
0fc9643
import { ContentDTO, slideShows, VideoInfoDTO, CompDTO, InteractDataDTO } from 'wdBean';
import { CommonConstants } from 'wdConstant';
import { CommonConstants
, CompStyle
} from 'wdConstant';
import { ProcessUtils } from 'wdRouter';
import { CardSourceInfo } from '../cardCommon/CardSourceInfo';
import { CardMediaInfo } from '../cardCommon/CardMediaInfo';
...
...
@@ -99,7 +99,7 @@ export struct Card10Component {
.width(CommonConstants.FULL_WIDTH)
.fontSize($r('app.float.font_size_18'))
.fontWeight(FontWeight.Normal)
.maxLines(1)
.maxLines(
this.contentDTO.appStyle === CompStyle.Card_09?2:
1)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.margin({ bottom: 19 })
.onClick((event: ClickEvent) => {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/PeopleShipHomePage.ets
View file @
0fc9643
...
...
@@ -184,6 +184,12 @@ struct PeopleShipHomePage {
Logger.debug('PeopleShipHomePage', '获取页面信息' + `${JSON.stringify(this.detailModel)}`)
this.isLoading = false
} catch (exception) {
this.isLoading = false
this.isHasHomePage = false
}
try {
// 获取关注
// 登录后获取,是否关注
if (HttpUtils.getUserId()) {
...
...
@@ -194,7 +200,6 @@ struct PeopleShipHomePage {
} catch (exception) {
this.isLoading = false
this.isHasHomePage = false
}
}
...
...
Please
register
or
login
to post a comment