wangliang_wd

feat:优化人民号缺省图展示

... ... @@ -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) {
... ...
... ... @@ -5,7 +5,7 @@ export struct PeopleShipHomePageAttestationComponent {
build() {
Row() {
Text(this.name)
.lineHeight('18vp')
.lineHeight('15vp')
.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('18vp')
.lineHeight('15vp')
.fontSize($r('app.float.vp_12'))
.layoutWeight(1)
.fontColor($r('app.color.color_222222'))
... ...