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-08-23 17:21:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9df33f4b436a3363cafd2463dd3e4c75efeda62b
9df33f4b
1 parent
babd1ac5
feat:优化电子报展示,优化个人主页人民号滑动
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/ENewspaperPageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/ENewspaperPageComponent.ets
View file @
9df33f4
...
...
@@ -146,6 +146,7 @@ export struct ENewspaperPageComponent {
let ratio = this.ratio == '100%' ? 1 : 0.5
this.picWidth = this.picWidth * ratio
this.picHeight = (this.picWidth * 506)/355
// 默认日期
const date = new Date()
const month = date.getMonth() + 1
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomFollowComponent.ets
View file @
9df33f4
import { LazyDataSource, SPHelper, UserDataLocal } from 'wdKit';
import {
DisplayUtils,
LazyDataSource, SPHelper, UserDataLocal } from 'wdKit';
import { WDRouterPage, WDRouterRule } from 'wdRouter';
import MinePageDatasModel from '../../../model/MinePageDatasModel';
import { FollowListDetailItem } from '../../../viewmodel/FollowListDetailItem';
...
...
@@ -23,6 +23,8 @@ export struct HomePageBottomFollowComponent {
@State count: number = 0;
preferences: dataPreferences.Preferences | null = null;
@State isGetRequest: boolean = false
@State bottomCompH:number = 200
observer = (key: string) => {
if (key == UserDataLocal.USER_FOLLOW_OPERATION) {
let value = SPHelper.default.getSync(UserDataLocal.USER_FOLLOW_OPERATION, "") as string
...
...
@@ -174,7 +176,8 @@ export struct HomePageBottomFollowComponent {
//没有更多数据 显示提示
if (!this.hasMore) {
ListItem() {
ListHasNoMoreDataUI()
///ToDo 数据过少时,达不到滑动条件 后续优化
ListHasNoMoreDataUI().height(this.bottomCompH > 150?this.bottomCompH:150)
}
}
}
...
...
@@ -230,6 +233,8 @@ export struct HomePageBottomFollowComponent {
this.hasMore = false
}
}
this.bottomCompH = DisplayUtils.getDeviceHeight() - this.data_follow.totalCount()*100
console.log(TAG, `${this.bottomCompH}`);
this.isLoading = false
this.isGetRequest = true
}).catch((err: Error) => {
...
...
Please
register
or
login
to post a comment