wangliang_wd

feat:优化我的收藏

... ... @@ -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,
... ...
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) => {
... ...
... ... @@ -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
}
}
... ...