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-05-16 16:34:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f8f0d15ef69a38e1a33efcdce8b68a75d68d7e8b
f8f0d15e
1 parent
e7f5cc28
fix: 17540 功能缺陷-页面加载-信息流图片加载,手机打开仅wifi加载图片控制,人民号推荐账号图标显示了
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 @
f8f0d15
...
...
@@ -13,11 +13,13 @@ import { WDRouterPage, WDRouterRule } from 'wdRouter/Index';
import router from '@ohos.router'
import { postBatchAttentionStatusParams } from 'wdBean/Index';
import { MultiPictureDetailViewModel } from '../../viewmodel/MultiPictureDetailViewModel'
import { onlyWifiLoadImg } from '../../utils/lazyloadImg';
@Component
export struct RmhTitle {
@Prop rmhInfo: RmhInfoDTO
@Prop publishTime: string | undefined
@State loadImg: boolean = false;
/**
* 是否需要隐藏发布时间超过2天的时间展示,默认不隐藏
*/
...
...
@@ -76,13 +78,15 @@ export struct RmhTitle {
}
}
a
boutToAppear(): void
{
a
sync aboutToAppear(): Promise<void>
{
this.getBatchAttentionStatus()
let page = router.getState();
if (page.path.includes('/page/PeopleShipHomePage') || page.path.includes('/pages/MainPage')) {
this.hideTime = true;
}
this.loadImg = await onlyWifiLoadImg();
}
getDaysBetweenDates(date: number) {
...
...
@@ -96,7 +100,7 @@ export struct RmhTitle {
build() {
Flex() {
Stack() {
Image(this.
rmhInfo?.rmhHeadUrl
)
Image(this.
loadImg ? this.rmhInfo?.rmhHeadUrl : $r('app.media.comment_rmh_tag')
)
.width(36)
.height(36).borderRadius(50)
Image(this.rmhInfo?.authIcon)
...
...
Please
register
or
login
to post a comment