Showing
5 changed files
with
34 additions
and
27 deletions
| @@ -199,7 +199,9 @@ struct EditUserInfoPage { | @@ -199,7 +199,9 @@ struct EditUserInfoPage { | ||
| 199 | getAccountOwnerInfo(){ | 199 | getAccountOwnerInfo(){ |
| 200 | EditInfoViewModel.queryAccountOwnerInfo(1,getContext(this)).then((editModel) => { | 200 | EditInfoViewModel.queryAccountOwnerInfo(1,getContext(this)).then((editModel) => { |
| 201 | this.listData = [] | 201 | this.listData = [] |
| 202 | - this.headerImg = editModel.userExtend.headPhotoUrl | 202 | + if (editModel.userExtend.headPhotoUrl) { |
| 203 | + this.headerImg = editModel.userExtend.headPhotoUrl | ||
| 204 | + } | ||
| 203 | this.currentUserInfo = editModel as editModel; | 205 | this.currentUserInfo = editModel as editModel; |
| 204 | this.listData.push(...EditInfoViewModel.getEditListInfo(editModel)) | 206 | this.listData.push(...EditInfoViewModel.getEditListInfo(editModel)) |
| 205 | }); | 207 | }); |
| @@ -4,9 +4,11 @@ import { WDRouterPage } from 'wdRouter'; | @@ -4,9 +4,11 @@ import { WDRouterPage } from 'wdRouter'; | ||
| 4 | @Entry | 4 | @Entry |
| 5 | @Component | 5 | @Component |
| 6 | struct GuidePages { | 6 | struct GuidePages { |
| 7 | - 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')] | ||
| 8 | - 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')] | ||
| 9 | - 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')] | 7 | + // 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')] |
| 8 | + // 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')] | ||
| 9 | + // 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')] | ||
| 10 | + guideImage = [$r('app.media.guide_Static')] | ||
| 11 | + guideIndex = [$r('app.media.guide_button')] | ||
| 10 | 12 | ||
| 11 | build() { | 13 | build() { |
| 12 | Column() { | 14 | Column() { |
| @@ -32,32 +34,34 @@ struct GuidePages { | @@ -32,32 +34,34 @@ struct GuidePages { | ||
| 32 | top: { anchor: "__container__", align: VerticalAlign.Top }, | 34 | top: { anchor: "__container__", align: VerticalAlign.Top }, |
| 33 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom } | 35 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom } |
| 34 | }) | 36 | }) |
| 37 | + .margin({bottom:150}) | ||
| 35 | .width('100%') | 38 | .width('100%') |
| 36 | - .height('100%') | 39 | + .height('60%') |
| 37 | .id('image') | 40 | .id('image') |
| 38 | - Image(this.guideTitle[index]) | ||
| 39 | - .objectFit(ImageFit.ScaleDown) | ||
| 40 | - .alignRules({ | ||
| 41 | - bottom: { anchor: "__container__", align: VerticalAlign.Bottom }, | ||
| 42 | - left: { anchor: "__container__", align: HorizontalAlign.Start }, | ||
| 43 | - right: { anchor: "__container__", align: HorizontalAlign.End }, | ||
| 44 | - }) | ||
| 45 | - .margin({ left: 60, bottom: 150, right: 60 }) | ||
| 46 | - .alignSelf(ItemAlign.Center) | ||
| 47 | - .id('title') | 41 | + // Image('') |
| 42 | + // .objectFit(imagefit.scaledown) | ||
| 43 | + // .alignRules({ | ||
| 44 | + // bottom: { anchor: "__container__", align: VerticalAlign.Bottom }, | ||
| 45 | + // left: { anchor: "__container__", align: HorizontalAlign.Start }, | ||
| 46 | + // right: { anchor: "__container__", align: HorizontalAlign.End }, | ||
| 47 | + // }) | ||
| 48 | + // .margin({ left: 60, bottom: 150, right: 60 }) | ||
| 49 | + // .alignSelf(ItemAlign.Center) | ||
| 50 | + // .id('title') | ||
| 48 | 51 | ||
| 49 | Image(this.guideIndex[index]) | 52 | Image(this.guideIndex[index]) |
| 50 | - .objectFit(ImageFit.ScaleDown) | 53 | + .objectFit(ImageFit.Fill) |
| 51 | .alignRules({ | 54 | .alignRules({ |
| 52 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom }, | 55 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom }, |
| 53 | left: { anchor: "__container__", align: HorizontalAlign.Start }, | 56 | left: { anchor: "__container__", align: HorizontalAlign.Start }, |
| 54 | right: { anchor: "__container__", align: HorizontalAlign.End }, | 57 | right: { anchor: "__container__", align: HorizontalAlign.End }, |
| 55 | 58 | ||
| 56 | }) | 59 | }) |
| 57 | - .margin({ bottom: 85 }) | ||
| 58 | - .height(40) | 60 | + .margin({ bottom: 85}) |
| 61 | + .width(191) | ||
| 62 | + .height(44) | ||
| 59 | .onClick(() => { | 63 | .onClick(() => { |
| 60 | - if (index == 4) { | 64 | + if (index == 0) { |
| 61 | // 跳转到首页 | 65 | // 跳转到首页 |
| 62 | //WDRouterRule.jumpWithReplacePage(WDRouterPage.mainPage) | 66 | //WDRouterRule.jumpWithReplacePage(WDRouterPage.mainPage) |
| 63 | //跳转到兴趣偏好选择页 | 67 | //跳转到兴趣偏好选择页 |
| @@ -66,6 +66,15 @@ struct LaunchInterestsHobbiesPage { | @@ -66,6 +66,15 @@ struct LaunchInterestsHobbiesPage { | ||
| 66 | .backgroundColor(Color.White) | 66 | .backgroundColor(Color.White) |
| 67 | .borderRadius(5) | 67 | .borderRadius(5) |
| 68 | Stack(){ | 68 | Stack(){ |
| 69 | + Image('') | ||
| 70 | + .width('100%') | ||
| 71 | + .height('100%') | ||
| 72 | + .backgroundColor(Color.Gray) | ||
| 73 | + .opacity(item.choose?0.7:0) | ||
| 74 | + .borderRadius(5) | ||
| 75 | + } | ||
| 76 | + | ||
| 77 | + Stack(){ | ||
| 69 | Column({}){ | 78 | Column({}){ |
| 70 | Text(item.name) | 79 | Text(item.name) |
| 71 | .fontSize(18) | 80 | .fontSize(18) |
| @@ -88,14 +97,6 @@ struct LaunchInterestsHobbiesPage { | @@ -88,14 +97,6 @@ struct LaunchInterestsHobbiesPage { | ||
| 88 | }.justifyContent(FlexAlign.Start) | 97 | }.justifyContent(FlexAlign.Start) |
| 89 | } | 98 | } |
| 90 | 99 | ||
| 91 | - Stack(){ | ||
| 92 | - Image('') | ||
| 93 | - .width('100%') | ||
| 94 | - .height('100%') | ||
| 95 | - .backgroundColor(Color.White) | ||
| 96 | - .opacity(item.choose?0:0.6) | ||
| 97 | - .borderRadius(5) | ||
| 98 | - } | ||
| 99 | } | 100 | } |
| 100 | } | 101 | } |
| 101 | .width('192lpx') | 102 | .width('192lpx') |
-
Please register or login to post a comment