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-06-21 10:21:34 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
30d98f151b37e3439bbab429949389f27293434a
30d98f15
2 parents
59ac0665
2c619617
Merge remote-tracking branch 'origin/main'
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
13 deletions
sight_harmony/features/wdLogin/src/main/ets/pages/login/OneKeyLoginPage.ets
sight_harmony/products/phone/src/main/ets/pages/view/MultiPictureDetailPageComponent.ets
sight_harmony/features/wdLogin/src/main/ets/pages/login/OneKeyLoginPage.ets
View file @
30d98f1
...
...
@@ -112,14 +112,12 @@ struct OneKeyLoginPage {
this.loginButton()
Button("账号密码登录")
.type(ButtonType.Normal)
.align(Alignment.Center)
.foregroundColor("#666666")
.backgroundColor(Color.White)
Text("账号密码登录")
.fontColor("#666666")
.height(26)
.width(100)
.margin({top: 20})
.onClick((
event
) => {
.onClick(() => {
router.replaceUrl({url: WDRouterPage.loginPage.url()})
})
}
...
...
sight_harmony/products/phone/src/main/ets/pages/view/MultiPictureDetailPageComponent.ets
View file @
30d98f1
...
...
@@ -36,6 +36,7 @@ export struct MultiPictureDetailPageComponent {
private contentId: string = ''
private relType: string = ''
private displayTool = display.getDefaultDisplaySync()
@State nShowDownloadTitleHeight: number = 0
@State titleHeight: number = 0
@State index: number = 0
@State currentIndex: number = 0
...
...
@@ -50,6 +51,7 @@ export struct MultiPictureDetailPageComponent {
@State swiperIndex: number = 0;
@Provide followStatus: string | undefined = undefined // 关注状态
@Provide showCommentList: boolean = false
private subScroller: Scroller = new Scroller()
private scroller: Scroller = new Scroller()
@State netStatus: number | undefined = undefined // 存储网络状态用来展示缺省图
@State isOffLine: boolean = false // 存储视频下线状态用来展示缺省图
...
...
@@ -63,6 +65,7 @@ export struct MultiPictureDetailPageComponent {
followUserId: string = ''
followUserName: string = ''
@State isEnableSwipe: boolean = true;
@State isScrollerTop: boolean = false;
//watch监听页码回调
onCurrentPageNumUpdated(): void {
...
...
@@ -74,7 +77,8 @@ export struct MultiPictureDetailPageComponent {
async aboutToAppear() {
//获取宽高尺寸
this.titleHeight = this.displayTool.width * 178 / 375
this.titleHeight = this.displayTool.width * 227 / 375
this.nShowDownloadTitleHeight = this.displayTool.width * 311 / 375
//注册字体
// font.registerFont({
// familyName: 'BebasNeueBold',
...
...
@@ -353,9 +357,7 @@ export struct MultiPictureDetailPageComponent {
@Builder
NShowDownload() {
Column() {
Row() {
Scroll(this.scroller) {
Row() {
Flex({
direction: FlexDirection.Column,
justifyContent: FlexAlign.Start
...
...
@@ -381,6 +383,8 @@ export struct MultiPictureDetailPageComponent {
right: 4
})
}
List() {
ListItem(){
if (this.contentDetailData.newsTitle) {
Text(`${this.contentDetailData.newsTitle}`)
.fontColor(Color.White)
...
...
@@ -396,6 +400,8 @@ export struct MultiPictureDetailPageComponent {
})
.width('92%')
}
}
ListItem(){
if (this.contentDetailData.photoList?.[this.swiperIndex].picDesc) {
Text(`${this.contentDetailData.photoList?.[this.swiperIndex].picDesc}`)
.fontColor(Color.White)
...
...
@@ -415,15 +421,30 @@ export struct MultiPictureDetailPageComponent {
}
}
}
.nestedScroll(
{
scrollForward: NestedScrollMode.PARENT_FIRST,
scrollBackward: NestedScrollMode.SELF_FIRST
}
)
.constraintSize (
{
maxHeight: px2vp(this.titleHeight)
}
)
}
.width('100%')
}
.scrollable(ScrollDirection.Vertical)
.scrollBarWidth(0)
.constraintSize({
maxHeight: px2vp(this.titleHeight)
})
.align(Alignment.Bottom)
.constraintSize (
{
maxHeight: px2vp(this.nShowDownloadTitleHeight)
}
)
// .initialOffset({
// yOffset: px2vp(this.titleHeight)/2
// })
OperRowListView({
contentDetailData: this.contentDetailData,
...
...
Please
register
or
login
to post a comment