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
wangliang_wd
2024-05-08 14:00:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ff373d93829bf919b43344be83390182c24756dc
ff373d93
1 parent
e0aad715
feat:优化引导图
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
26 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/EditUserInfoPage.ets
sight_harmony/features/wdLogin/src/main/ets/pages/guide/GuidePages.ets
sight_harmony/features/wdLogin/src/main/resources/base/media/guide_Static.png
sight_harmony/features/wdLogin/src/main/resources/base/media/guide_button.png
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchInterestsHobbiesPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/EditUserInfoPage.ets
View file @
ff373d9
...
...
@@ -199,7 +199,9 @@ struct EditUserInfoPage {
getAccountOwnerInfo(){
EditInfoViewModel.queryAccountOwnerInfo(1,getContext(this)).then((editModel) => {
this.listData = []
if (editModel.userExtend.headPhotoUrl) {
this.headerImg = editModel.userExtend.headPhotoUrl
}
this.currentUserInfo = editModel as editModel;
this.listData.push(...EditInfoViewModel.getEditListInfo(editModel))
});
...
...
sight_harmony/features/wdLogin/src/main/ets/pages/guide/GuidePages.ets
View file @
ff373d9
...
...
@@ -4,9 +4,11 @@ import { WDRouterPage } from 'wdRouter';
@Entry
@Component
struct GuidePages {
guideImage = [$r('app.media.guide_static1'), $r('app.media.guide_static2'), $r('app.media.guide_static3'), $r('app.media.guide_static4'),$r('app.media.guide_static5')]
guideTitle = [$r('app.media.guide_title1'), $r('app.media.guide_title2'), $r('app.media.guide_title3'), $r('app.media.guide_title4'),$r('app.media.guide_title5')]
guideIndex = [$r('app.media.guide_index1'), $r('app.media.guide_index2'), $r('app.media.guide_index3'),$r('app.media.guide_index4'), $r('app.media.guide_button')]
// guideImage = [$r('app.media.guide_static1'), $r('app.media.guide_static2'), $r('app.media.guide_static3'), $r('app.media.guide_static4'),$r('app.media.guide_static5')]
// guideTitle = [$r('app.media.guide_title1'), $r('app.media.guide_title2'), $r('app.media.guide_title3'), $r('app.media.guide_title4'),$r('app.media.guide_title5')]
// guideIndex = [$r('app.media.guide_index1'), $r('app.media.guide_index2'), $r('app.media.guide_index3'),$r('app.media.guide_index4'), $r('app.media.guide_button')]
guideImage = [$r('app.media.guide_Static')]
guideIndex = [$r('app.media.guide_button')]
build() {
Column() {
...
...
@@ -32,32 +34,34 @@ struct GuidePages {
top: { anchor: "__container__", align: VerticalAlign.Top },
bottom: { anchor: "__container__", align: VerticalAlign.Bottom }
})
.margin({bottom:150})
.width('100%')
.height('
10
0%')
.height('
6
0%')
.id('image')
Image(this.guideTitle[index])
.objectFit(ImageFit.ScaleDown)
.alignRules({
bottom: { anchor: "__container__", align: VerticalAlign.Bottom },
left: { anchor: "__container__", align: HorizontalAlign.Start },
right: { anchor: "__container__", align: HorizontalAlign.End },
})
.margin({ left: 60, bottom: 150, right: 60 })
.alignSelf(ItemAlign.Center)
.id('title')
// Image('')
// .objectFit(imagefit.scaledown)
// .alignRules({
// bottom: { anchor: "__container__", align: VerticalAlign.Bottom },
// left: { anchor: "__container__", align: HorizontalAlign.Start },
// right: { anchor: "__container__", align: HorizontalAlign.End },
// })
// .margin({ left: 60, bottom: 150, right: 60 })
// .alignSelf(ItemAlign.Center)
// .id('title')
Image(this.guideIndex[index])
.objectFit(ImageFit.
ScaleDown
)
.objectFit(ImageFit.
Fill
)
.alignRules({
bottom: { anchor: "__container__", align: VerticalAlign.Bottom },
left: { anchor: "__container__", align: HorizontalAlign.Start },
right: { anchor: "__container__", align: HorizontalAlign.End },
})
.margin({ bottom: 85 })
.height(40)
.margin({ bottom: 85})
.width(191)
.height(44)
.onClick(() => {
if (index ==
4
) {
if (index ==
0
) {
// 跳转到首页
//WDRouterRule.jumpWithReplacePage(WDRouterPage.mainPage)
//跳转到兴趣偏好选择页
...
...
sight_harmony/features/wdLogin/src/main/resources/base/media/guide_Static.png
0 → 100644
View file @
ff373d9
207 KB
sight_harmony/features/wdLogin/src/main/resources/base/media/guide_button.png
View file @
ff373d9
11 KB
|
W:
|
H:
34.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchInterestsHobbiesPage.ets
View file @
ff373d9
...
...
@@ -66,6 +66,15 @@ struct LaunchInterestsHobbiesPage {
.backgroundColor(Color.White)
.borderRadius(5)
Stack(){
Image('')
.width('100%')
.height('100%')
.backgroundColor(Color.Gray)
.opacity(item.choose?0.7:0)
.borderRadius(5)
}
Stack(){
Column({}){
Text(item.name)
.fontSize(18)
...
...
@@ -88,14 +97,6 @@ struct LaunchInterestsHobbiesPage {
}.justifyContent(FlexAlign.Start)
}
Stack(){
Image('')
.width('100%')
.height('100%')
.backgroundColor(Color.White)
.opacity(item.choose?0:0.6)
.borderRadius(5)
}
}
}
.width('192lpx')
...
...
Please
register
or
login
to post a comment