douaojie

fix: 骨架屏

@@ -26,7 +26,12 @@ export struct newsSkeleton { @@ -26,7 +26,12 @@ export struct newsSkeleton {
26 } 26 }
27 .border({ width: 1 }) 27 .border({ width: 1 })
28 .borderColor('#FFF5F5F5') 28 .borderColor('#FFF5F5F5')
29 - .padding({ right: 2, left: 2, top: 0, bottom: 2 }) 29 + .padding({
  30 + right: 2,
  31 + left: 2,
  32 + top: 0,
  33 + bottom: 2
  34 + })
30 .justifyContent(FlexAlign.SpaceEvenly) 35 .justifyContent(FlexAlign.SpaceEvenly)
31 .alignItems(HorizontalAlign.Start) 36 .alignItems(HorizontalAlign.Start)
32 } 37 }
@@ -77,12 +82,21 @@ export struct newsSkeleton { @@ -77,12 +82,21 @@ export struct newsSkeleton {
77 textArea('95%', 100) 82 textArea('95%', 100)
78 } 83 }
79 }.width('45%') 84 }.width('45%')
80 - }.justifyContent(FlexAlign.SpaceBetween) 85 + }
  86 + .justifyContent(FlexAlign.SpaceBetween)
  87 + .backgroundColor(Color.White)
  88 + .padding({
  89 + top: 5,
  90 + bottom: 5,
  91 + right: 5,
  92 + left: 5
  93 + })
81 } 94 }
82 .width('100%') 95 .width('100%')
83 96
84 } 97 }
85 .height('100%') 98 .height('100%')
  99 +
86 } 100 }
87 } 101 }
88 102
@@ -207,7 +207,7 @@ export struct EmptyComponent { @@ -207,7 +207,7 @@ export struct EmptyComponent {
207 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVisitAccount) { 207 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVisitAccount) {
208 contentString = '该号主暂时无法访问' // 前方拥堵,请耐心等待 208 contentString = '该号主暂时无法访问' // 前方拥堵,请耐心等待
209 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVideo) { 209 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVideo) {
210 - contentString = '获取内容失败请重试' // 前方拥堵,请耐心等待 210 + contentString = '获取内容失败请重试' // 前方拥堵,请耐心等待
211 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent1) { 211 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent1) {
212 contentString = '暂无内容' 212 contentString = '暂无内容'
213 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow) { 213 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow) {
@@ -222,11 +222,13 @@ export struct EmptyComponent { @@ -222,11 +222,13 @@ export struct EmptyComponent {
222 buildNoDataTipImage(): Resource | string { 222 buildNoDataTipImage(): Resource | string {
223 Logger.info(TAG, "buildNoDataTip"); 223 Logger.info(TAG, "buildNoDataTip");
224 let imageString: Resource | string = $r('app.media.icon_no_content') 224 let imageString: Resource | string = $r('app.media.icon_no_content')
225 - if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoCollection || this.emptyType === WDViewDefaultType.WDViewDefaultType_NoHistory) { 225 + if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoCollection ||
  226 + this.emptyType === WDViewDefaultType.WDViewDefaultType_NoHistory) {
226 imageString = $r('app.media.icon_no_collection') 227 imageString = $r('app.media.icon_no_collection')
227 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoMessage) { 228 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoMessage) {
228 imageString = $r('app.media.icon_no_message') 229 imageString = $r('app.media.icon_no_message')
229 - } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoComment || this.emptyType === WDViewDefaultType.WDViewDefaultType_NoComment1) { 230 + } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoComment ||
  231 + this.emptyType === WDViewDefaultType.WDViewDefaultType_NoComment1) {
230 imageString = $r('app.media.icon_no_comment') 232 imageString = $r('app.media.icon_no_comment')
231 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoSearchResult) { 233 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoSearchResult) {
232 imageString = $r('app.media.icon_no_result') 234 imageString = $r('app.media.icon_no_result')
@@ -244,7 +246,8 @@ export struct EmptyComponent { @@ -244,7 +246,8 @@ export struct EmptyComponent {
244 imageString = $r('app.media.icon_no_master1') 246 imageString = $r('app.media.icon_no_master1')
245 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVideo) { 247 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVideo) {
246 imageString = $r('app.media.icon_no_content') 248 imageString = $r('app.media.icon_no_content')
247 - } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent1 || this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow) { 249 + } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent1 ||
  250 + this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow) {
248 imageString = $r('app.media.icon_no_appointmentMade1') 251 imageString = $r('app.media.icon_no_appointmentMade1')
249 } 252 }
250 return imageString 253 return imageString