Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
陈剑华
2024-08-27 14:18:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8145876a18d51a74574f147bad6215aff4ba2289
8145876a
1 parent
93175e52
fix: 19768 内容找不到了默认缺省页,顶部缺少分割线,左下角缺少返回按钮,见截图
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/SpacialTopicPageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/SpacialTopicPageComponent.ets
View file @
8145876
...
...
@@ -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()
}
...
...
Please
register
or
login
to post a comment