Showing
1 changed file
with
29 additions
and
2 deletions
| @@ -25,6 +25,7 @@ import { channelSkeleton } from './skeleton/channelSkeleton'; | @@ -25,6 +25,7 @@ import { channelSkeleton } from './skeleton/channelSkeleton'; | ||
| 25 | import PageAdModel from '../viewmodel/PageAdvModel'; | 25 | import PageAdModel from '../viewmodel/PageAdvModel'; |
| 26 | import { ProcessUtils } from 'wdRouter/Index'; | 26 | import { ProcessUtils } from 'wdRouter/Index'; |
| 27 | import { GrayManageModel } from '../viewmodel/GrayManageModel'; | 27 | import { GrayManageModel } from '../viewmodel/GrayManageModel'; |
| 28 | +import router from '@ohos.router'; | ||
| 28 | 29 | ||
| 29 | const TAG: string = 'SpacialTopicPageComponent' | 30 | const TAG: string = 'SpacialTopicPageComponent' |
| 30 | 31 | ||
| @@ -173,14 +174,39 @@ export struct SpacialTopicPageComponent { | @@ -173,14 +174,39 @@ export struct SpacialTopicPageComponent { | ||
| 173 | } | 174 | } |
| 174 | 175 | ||
| 175 | if (!this.isNetConnected) { | 176 | if (!this.isNetConnected) { |
| 177 | + Column() { | ||
| 178 | + Image($r('app.media.line')) | ||
| 179 | + .width('calc(100% - 36vp)') | ||
| 180 | + .height(7) | ||
| 181 | + .position({ | ||
| 182 | + top: 92, | ||
| 183 | + left: 18 | ||
| 184 | + }) | ||
| 176 | EmptyComponent({ | 185 | EmptyComponent({ |
| 186 | + emptyHeight: 'calc(100% - 55vp)', | ||
| 177 | emptyType: 1, | 187 | emptyType: 1, |
| 178 | emptyButton: true, | 188 | emptyButton: true, |
| 179 | retry: () => { | 189 | retry: () => { |
| 180 | // this.getDetail() | 190 | // this.getDetail() |
| 181 | this.reload++ | 191 | this.reload++ |
| 182 | } | 192 | } |
| 183 | - }).padding({ bottom: 200 }) | 193 | + }).padding({ bottom: 200, top: 48 }) |
| 194 | + | ||
| 195 | + Image($r("app.media.back_icon")) | ||
| 196 | + .width(24) | ||
| 197 | + .height(24) | ||
| 198 | + .onClick(() => { | ||
| 199 | + router.back(); | ||
| 200 | + }) | ||
| 201 | + .position({ | ||
| 202 | + bottom: 15, | ||
| 203 | + left: 16 | ||
| 204 | + }) | ||
| 205 | + } | ||
| 206 | + .width('100%') | ||
| 207 | + .height('100%') | ||
| 208 | + .layoutWeight(1) | ||
| 209 | + .backgroundColor(0xffffff) | ||
| 184 | } else { | 210 | } else { |
| 185 | if (!this.isPageEnd) { | 211 | if (!this.isPageEnd) { |
| 186 | channelSkeleton().padding({ top: `${this.topSafeHeight}px`, bottom: this.bottomSafeHeight }) | 212 | channelSkeleton().padding({ top: `${this.topSafeHeight}px`, bottom: this.bottomSafeHeight }) |
| @@ -312,7 +338,8 @@ export struct SpacialTopicPageComponent { | @@ -312,7 +338,8 @@ export struct SpacialTopicPageComponent { | ||
| 312 | // WindowModel.shared.setWindowLayoutFullScreen(true) | 338 | // WindowModel.shared.setWindowLayoutFullScreen(true) |
| 313 | } | 339 | } |
| 314 | this.webUrl = this.action?.params?.url || '' | 340 | this.webUrl = this.action?.params?.url || '' |
| 315 | - this.isNetConnected = NetworkUtil.isNetConnected() | 341 | + // this.isNetConnected = NetworkUtil.isNetConnected() |
| 342 | + this.isNetConnected = false; | ||
| 316 | // this.getDetail() | 343 | // this.getDetail() |
| 317 | } | 344 | } |
| 318 | 345 |
-
Please register or login to post a comment