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
liyubing
2024-06-20 14:15:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d7aac26eae861511a36a3e716f81f16e5c2eb117
d7aac26e
1 parent
2eceb5f8
feat:1)内链 页面,添加距顶部距底部间距
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
sight_harmony/features/wdBean/src/main/ets/bean/content/ContentDTO.ets
sight_harmony/products/phone/src/main/ets/pages/web/DefaultWebPage.ets
sight_harmony/features/wdBean/src/main/ets/bean/content/ContentDTO.ets
View file @
d7aac26
...
...
@@ -104,7 +104,7 @@ export class ContentDTO implements BaseDTO {
//底部导航栏 id(用于频道跳转)
bottomNavId: string = '';
// 链接类型: 0:无链接;1:内链(文章);2:外链
openType: string = '';
openType: string = '
1
';
extra: string = ''
sameContentList:ContentDTO[] = []
sameContentListJson:string = ""
...
...
sight_harmony/products/phone/src/main/ets/pages/web/DefaultWebPage.ets
View file @
d7aac26
...
...
@@ -9,6 +9,8 @@ const TAG = 'DefaultWebPage'
@Entry
@Component
struct DefaultWebPage {
@State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') as number;
@State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
webviewControl: BridgeWebViewControl = new BridgeWebViewControl()
scroller: Scroller = new Scroller();
action: Action = {} as Action
...
...
@@ -24,24 +26,28 @@ struct DefaultWebPage {
isPageEnd: $isPageEnd
})
}.layoutWeight(1)
.expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP])
.expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP])
Row() {
Button({
type: ButtonType.Normal
}) {
Button({
type: ButtonType.Normal
}) {
Image($r("app.media.back_icon_black"))
.width(20).height(25)
}.height(44).width(44)
.backgroundColor(Color.White)
.onClick(() => {
router.back()
})
.onClick(() => {
router.back()
})
Blank()
}.width("100%").height(44)
.alignItems(VerticalAlign.Center)
.expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.BOTTOM])
}
.width(CommonConstants.FULL_WIDTH)
.height(CommonConstants.FULL_HEIGHT)
.height(CommonConstants.FULL_HEIGHT).padding({
top: px2vp(this.topSafeHeight),
bottom: px2vp(this.bottomSafeHeight)
})
}
aboutToAppear() {
...
...
Please
register
or
login
to post a comment