wangliang_wd

feat:优化人民号关注列表缺省图

@@ -288,7 +288,7 @@ struct ChannelSubscriptionLayout { @@ -288,7 +288,7 @@ struct ChannelSubscriptionLayout {
288 }else { 288 }else {
289 Image(item.channelId === this.indexSettingChannelId ? $r('app.media.index_setting_button_active') : 289 Image(item.channelId === this.indexSettingChannelId ? $r('app.media.index_setting_button_active') :
290 $r('app.media.index_setting_button')) 290 $r('app.media.index_setting_button'))
291 - .objectFit(ImageFit.Contain) 291 + .objectFit(ImageFit.Fill)
292 .rotate({ 292 .rotate({
293 angle: index === 1 ? 180 : 0 293 angle: index === 1 ? 180 : 0
294 }) 294 })
@@ -89,29 +89,28 @@ export struct PeopleShipMainComponent { @@ -89,29 +89,28 @@ export struct PeopleShipMainComponent {
89 if (this.viewType == ViewType.LOADING) { 89 if (this.viewType == ViewType.LOADING) {
90 this.LoadingLayout() 90 this.LoadingLayout()
91 } 91 }
92 - // else if (this.viewType == ViewType.ERROR) { 92 + else if (this.viewType == ViewType.ERROR) {
  93 + //缺省页
  94 + EmptyComponent({
  95 + emptyType: this.pageModel.emptyType,
  96 + emptyButton: true,
  97 + retry: () => {
  98 + this.getData()
  99 + }
  100 + })
  101 + .grayscale(this.GrayManage.get().isRmhMourning(`${this.channelId}`) ? 1 : 0)
  102 +
  103 + } else if (this.viewType == ViewType.EMPTY) {
93 // //缺省页 104 // //缺省页
94 - // // EmptyComponent({  
95 - // // emptyType: this.pageModel.emptyType,  
96 - // // emptyButton: true,  
97 - // // retry: () => {  
98 - // // this.getData()  
99 - // // }  
100 - // // })  
101 - // // .grayscale(this.GrayManage.get().isRmhMourning(`${this.channelId}`) ? 1 : 0)  
102 - //  
103 - // } else if (this.viewType == ViewType.EMPTY) {  
104 - // // //缺省页  
105 - // // EmptyComponent({  
106 - // // emptyType: this.pageModel.emptyType,  
107 - // // emptyButton: true,  
108 - // // retry: () => {  
109 - // // this.getData()  
110 - // // }  
111 - // // })  
112 - // // .grayscale(this.GrayManage.get().isRmhMourning(`${this.channelId}`) ? 1 : 0)  
113 - //  
114 - // } 105 + EmptyComponent({
  106 + emptyType: this.pageModel.emptyType,
  107 + emptyButton: true,
  108 + retry: () => {
  109 + this.getData()
  110 + }
  111 + })
  112 + .grayscale(this.GrayManage.get().isRmhMourning(`${this.channelId}`) ? 1 : 0)
  113 + }
115 else { 114 else {
116 if (this.followList.length == 0) { 115 if (this.followList.length == 0) {
117 this.ListLayout() 116 this.ListLayout()