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-09-11 10:18:08 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d418f81eff3f4057cae00f3ac9ae6c4986b1063a
d418f81e
1 parent
c306cf78
feat:优化人民号缺省图展示
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomeArticleListComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomePageAttestationComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomeArticleListComponent.ets
View file @
d418f81
...
...
@@ -23,6 +23,7 @@ import { ErrorComponent } from '../view/ErrorComponent'
import { CustomPullToRefresh } from '../reusable/CustomPullToRefresh'
import { PeopleShipNoMoreData } from '../reusable/PeopleShipNoMoreData'
import LoadMoreLayout from '../page/LoadMoreLayout'
import { EmptyComponent, WDViewDefaultType } from '../view/EmptyComponent'
const TAG = 'PeopleShipHomeArticleListComponent';
...
...
@@ -49,7 +50,12 @@ export struct PeopleShipHomeArticleListComponent {
this.LoadingLayout()
} else if (this.viewType == 2) {
ErrorComponent()
} else {
}else if(this.viewType == 4){
Column(){
EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_NoCreation}).height('40%')
}.width('100%')
.height('100%')
} else {
CustomPullToRefresh({
alldata:this.arr,
scroller:this.scroller,
...
...
@@ -182,6 +188,11 @@ export struct PeopleShipHomeArticleListComponent {
}
this.isLoading = false
this.queryArticleContentInteractCount(listData)
///展示缺省图
if (listData.totalCount === 0) {
this.viewType = 4
}
Logger.debug(TAG, '展示的总数'+`${this.arr.length}`)
}catch (exception) {
if (resolve) {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomePageAttestationComponent.ets
View file @
d418f81
...
...
@@ -5,7 +5,7 @@ export struct PeopleShipHomePageAttestationComponent {
build() {
Row() {
Text(this.name)
.lineHeight('1
8
vp')
.lineHeight('1
5
vp')
.fontColor($r('app.color.color_ED2800'))
.fontSize($r('app.float.vp_11'))
.backgroundColor($r('app.color.color_1AED2800'))
...
...
@@ -23,7 +23,7 @@ export struct PeopleShipHomePageAttestationComponent {
})
Text(this.content)
.lineHeight('1
8
vp')
.lineHeight('1
5
vp')
.fontSize($r('app.float.vp_12'))
.layoutWeight(1)
.fontColor($r('app.color.color_222222'))
...
...
Please
register
or
login
to post a comment