Showing
3 changed files
with
15 additions
and
12 deletions
| @@ -245,15 +245,17 @@ export struct ImageAndTextPageComponent { | @@ -245,15 +245,17 @@ export struct ImageAndTextPageComponent { | ||
| 245 | .justifyContent(FlexAlign.SpaceBetween) | 245 | .justifyContent(FlexAlign.SpaceBetween) |
| 246 | .alignItems(VerticalAlign.Bottom) | 246 | .alignItems(VerticalAlign.Bottom) |
| 247 | 247 | ||
| 248 | - Row() { | ||
| 249 | - Image($r('app.media.ic_news_detail_division')) | ||
| 250 | - .width('100%') | ||
| 251 | - .height(6) | ||
| 252 | - .margin({ top: 10 }) | ||
| 253 | - .objectFit(ImageFit.Fill) | ||
| 254 | - } | ||
| 255 | - .padding({ left: 15, right: 15 }) | ||
| 256 | - .backgroundColor(Color.White) | 248 | + if (this.isNetConnected && !this.detailContentEmpty) { |
| 249 | + Row() { | ||
| 250 | + Image($r('app.media.ic_news_detail_division')) | ||
| 251 | + .width('100%') | ||
| 252 | + .height(6) | ||
| 253 | + .margin({ top: 10 }) | ||
| 254 | + .objectFit(ImageFit.Fill) | ||
| 255 | + } | ||
| 256 | + .padding({ left: 15, right: 15 }) | ||
| 257 | + .backgroundColor(Color.White) | ||
| 258 | + } | ||
| 257 | }.backgroundColor(Color.White) | 259 | }.backgroundColor(Color.White) |
| 258 | } | 260 | } |
| 259 | .margin({top: `${this.topSafeHeight}px`, bottom: `${this.bottomSafeHeight}px`}) | 261 | .margin({top: `${this.topSafeHeight}px`, bottom: `${this.bottomSafeHeight}px`}) |
| @@ -251,11 +251,12 @@ export struct EmptyComponent { | @@ -251,11 +251,12 @@ export struct EmptyComponent { | ||
| 251 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVideo) { | 251 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVideo) { |
| 252 | imageString = $r('app.media.icon_no_content') | 252 | imageString = $r('app.media.icon_no_content') |
| 253 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent1 || | 253 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent1 || |
| 254 | - this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow || | ||
| 255 | - this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent2) { | 254 | + this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow) { |
| 256 | imageString = $r('app.media.icon_no_appointmentMade1') | 255 | imageString = $r('app.media.icon_no_appointmentMade1') |
| 257 | }else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoUserHomepage){ | 256 | }else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoUserHomepage){ |
| 258 | imageString = $r('app.media.icon_no_master1') | 257 | imageString = $r('app.media.icon_no_master1') |
| 258 | + }else if(this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent2){ | ||
| 259 | + imageString = $r('app.media.icon_no_content1') | ||
| 259 | } | 260 | } |
| 260 | return imageString | 261 | return imageString |
| 261 | } | 262 | } |
| 1 | import { LiveRoomItemBean } from 'wdBean/Index' | 1 | import { LiveRoomItemBean } from 'wdBean/Index' |
| 2 | import { LiveMessageRole } from 'wdBean/src/main/ets/bean/live/LiveRoomBean' | 2 | import { LiveMessageRole } from 'wdBean/src/main/ets/bean/live/LiveRoomBean' |
| 3 | -import { LengthMetrics } from '@kit.ArkUI' | 3 | +// import { LengthMetrics } from '@kit.ArkUI' |
| 4 | 4 | ||
| 5 | @Component | 5 | @Component |
| 6 | export struct ChatItemComponent { | 6 | export struct ChatItemComponent { |
-
Please register or login to post a comment