yuzhilin

fix:缺省图优化

1 -import { Logger, NumberFormatterUtils, DateTimeUtils, EmitterUtils, EmitterEventId, NetworkUtil,  
2 - DisplayUtils } from 'wdKit'; 1 +import {
  2 + Logger,
  3 + NumberFormatterUtils,
  4 + DateTimeUtils,
  5 + EmitterUtils,
  6 + EmitterEventId,
  7 + NetworkUtil,
  8 + DisplayUtils
  9 +} from 'wdKit';
3 import { 10 import {
4 Action, 11 Action,
5 ContentDetailDTO, 12 ContentDetailDTO,
@@ -42,7 +49,7 @@ export struct ImageAndTextPageComponent { @@ -42,7 +49,7 @@ export struct ImageAndTextPageComponent {
42 @State publishCommentModel: publishCommentModel = new publishCommentModel() 49 @State publishCommentModel: publishCommentModel = new publishCommentModel()
43 @State operationButtonList: string[] = ['comment', 'collect', 'share'] 50 @State operationButtonList: string[] = ['comment', 'collect', 'share']
44 @State isNetConnected: boolean = true 51 @State isNetConnected: boolean = true
45 - @State info: Area|null = null 52 + @State info: Area | null = null
46 53
47 build() { 54 build() {
48 Column() { 55 Column() {
@@ -156,7 +163,7 @@ export struct ImageAndTextPageComponent { @@ -156,7 +163,7 @@ export struct ImageAndTextPageComponent {
156 retry: () => { 163 retry: () => {
157 this.getDetail() 164 this.getDetail()
158 } 165 }
159 - }) 166 + }).padding({ bottom: 200 })
160 } else { 167 } else {
161 if (!this.isPageEnd) { 168 if (!this.isPageEnd) {
162 detailedSkeleton() 169 detailedSkeleton()
@@ -317,7 +324,11 @@ export struct ImageAndTextPageComponent { @@ -317,7 +324,11 @@ export struct ImageAndTextPageComponent {
317 // let height = DisplayUtils.getDeviceHeight() / 2 324 // let height = DisplayUtils.getDeviceHeight() / 2
318 let offSetY = this.info?.globalPosition.y as number 325 let offSetY = this.info?.globalPosition.y as number
319 //头部距离48 326 //头部距离48
320 - this.scroller.scrollTo({yOffset:offSetY - 100, xOffset:0, animation:{ duration: 1000, curve: Curve.Ease}}) 327 + this.scroller.scrollTo({
  328 + yOffset: offSetY - 100,
  329 + xOffset: 0,
  330 + animation: { duration: 1000, curve: Curve.Ease }
  331 + })
321 } 332 }
322 } 333 }
323 } 334 }
@@ -231,7 +231,7 @@ export struct EmptyComponent { @@ -231,7 +231,7 @@ export struct EmptyComponent {
231 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoSearchResult) { 231 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoSearchResult) {
232 imageString = $r('app.media.icon_no_result') 232 imageString = $r('app.media.icon_no_result')
233 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoNetwork) { 233 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoNetwork) {
234 - imageString = $r('app.media.icon_no_net') 234 + imageString = $r('app.media.icon_no_net1')
235 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_ContentFailed) { 235 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_ContentFailed) {
236 imageString = $r('app.media.icon_no_content') 236 imageString = $r('app.media.icon_no_content')
237 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoCreation) { 237 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoCreation) {