陈剑华

fix: 19768 内容找不到了默认缺省页,顶部缺少分割线,左下角缺少返回按钮,见截图

... ... @@ -25,6 +25,7 @@ import { channelSkeleton } from './skeleton/channelSkeleton';
import PageAdModel from '../viewmodel/PageAdvModel';
import { ProcessUtils } from 'wdRouter/Index';
import { GrayManageModel } from '../viewmodel/GrayManageModel';
import router from '@ohos.router';
const TAG: string = 'SpacialTopicPageComponent'
... ... @@ -173,14 +174,39 @@ export struct SpacialTopicPageComponent {
}
if (!this.isNetConnected) {
Column() {
Image($r('app.media.line'))
.width('calc(100% - 36vp)')
.height(7)
.position({
top: 92,
left: 18
})
EmptyComponent({
emptyHeight: 'calc(100% - 55vp)',
emptyType: 1,
emptyButton: true,
retry: () => {
// this.getDetail()
this.reload++
}
}).padding({ bottom: 200 })
}).padding({ bottom: 200, top: 48 })
Image($r("app.media.back_icon"))
.width(24)
.height(24)
.onClick(() => {
router.back();
})
.position({
bottom: 15,
left: 16
})
}
.width('100%')
.height('100%')
.layoutWeight(1)
.backgroundColor(0xffffff)
} else {
if (!this.isPageEnd) {
channelSkeleton().padding({ top: `${this.topSafeHeight}px`, bottom: this.bottomSafeHeight })
... ... @@ -312,7 +338,8 @@ export struct SpacialTopicPageComponent {
// WindowModel.shared.setWindowLayoutFullScreen(true)
}
this.webUrl = this.action?.params?.url || ''
this.isNetConnected = NetworkUtil.isNetConnected()
// this.isNetConnected = NetworkUtil.isNetConnected()
this.isNetConnected = false;
// this.getDetail()
}
... ...