Showing
8 changed files
with
17 additions
and
20 deletions
| 1 | @CustomDialog | 1 | @CustomDialog |
| 2 | export struct CustomToast { | 2 | export struct CustomToast { |
| 3 | - public static LENGTH_LONG = 5000; | ||
| 4 | - public static LENGTH_SHORT = 3000; | 3 | + public static LENGTH_LONG = 4000; |
| 4 | + public static LENGTH_SHORT = 2000; | ||
| 5 | 5 | ||
| 6 | @State msg: string = "" | 6 | @State msg: string = "" |
| 7 | @State duration: number = CustomToast.LENGTH_SHORT | 7 | @State duration: number = CustomToast.LENGTH_SHORT |
| @@ -29,6 +29,7 @@ export struct CustomToast { | @@ -29,6 +29,7 @@ export struct CustomToast { | ||
| 29 | .fontColor($r('app.color.white')) | 29 | .fontColor($r('app.color.white')) |
| 30 | .fontSize("27lpx") | 30 | .fontSize("27lpx") |
| 31 | .lineHeight("38lpx") | 31 | .lineHeight("38lpx") |
| 32 | + .textAlign(TextAlign.Center) | ||
| 32 | }.borderRadius(`${this.bgBorderRadius}lpx`) | 33 | }.borderRadius(`${this.bgBorderRadius}lpx`) |
| 33 | .constraintSize({maxWidth:"86%"}) | 34 | .constraintSize({maxWidth:"86%"}) |
| 34 | .padding({top:"23lpx",bottom:'23lpx',left:"35lpx",right:"35lpx"}) | 35 | .padding({top:"23lpx",bottom:'23lpx',left:"35lpx",right:"35lpx"}) |
| @@ -270,6 +270,7 @@ export struct MultiPictureDetailPageComponent { | @@ -270,6 +270,7 @@ export struct MultiPictureDetailPageComponent { | ||
| 270 | .indicator(false) | 270 | .indicator(false) |
| 271 | .displayCount(1) | 271 | .displayCount(1) |
| 272 | .loop(false) | 272 | .loop(false) |
| 273 | + .effectMode(EdgeEffect.None) | ||
| 273 | .id('e_swiper_content') | 274 | .id('e_swiper_content') |
| 274 | .alignRules({ | 275 | .alignRules({ |
| 275 | center: { anchor: "__container__", align: VerticalAlign.Center }, | 276 | center: { anchor: "__container__", align: VerticalAlign.Center }, |
| @@ -38,6 +38,8 @@ export struct Card6Component { | @@ -38,6 +38,8 @@ export struct Card6Component { | ||
| 38 | Stack() { | 38 | Stack() { |
| 39 | if (this.contentDTO.newTags) { | 39 | if (this.contentDTO.newTags) { |
| 40 | Notes({ newTags: this.contentDTO.newTags }) | 40 | Notes({ newTags: this.contentDTO.newTags }) |
| 41 | + } else if (this.contentDTO.objectType == '5') { | ||
| 42 | + Notes({ objectType: this.contentDTO.objectType }) | ||
| 41 | } | 43 | } |
| 42 | 44 | ||
| 43 | Text(`${this.contentDTO.newsTitle}`) | 45 | Text(`${this.contentDTO.newsTitle}`) |
| @@ -48,7 +50,8 @@ export struct Card6Component { | @@ -48,7 +50,8 @@ export struct Card6Component { | ||
| 48 | .alignSelf(ItemAlign.Start) | 50 | .alignSelf(ItemAlign.Start) |
| 49 | .textOverflow({ overflow: TextOverflow.Ellipsis })// 超出的部分显示省略号。 | 51 | .textOverflow({ overflow: TextOverflow.Ellipsis })// 超出的部分显示省略号。 |
| 50 | .textIndent(this.contentDTO.newTags?.length < 5 && this.contentDTO.newTags?.length > 2 ? 60 : | 52 | .textIndent(this.contentDTO.newTags?.length < 5 && this.contentDTO.newTags?.length > 2 ? 60 : |
| 51 | - this.contentDTO.newTags?.length != 0 && this.contentDTO.newTags?.length < 3 ? 30 : 0) | 53 | + (this.contentDTO.newTags?.length != 0 && this.contentDTO.newTags?.length) || |
| 54 | + this.contentDTO.objectType == '5' ? 30 : 0) | ||
| 52 | }.alignContent(Alignment.TopStart) | 55 | }.alignContent(Alignment.TopStart) |
| 53 | 56 | ||
| 54 | }.height("80%") | 57 | }.height("80%") |
| @@ -64,7 +67,7 @@ export struct Card6Component { | @@ -64,7 +67,7 @@ export struct Card6Component { | ||
| 64 | 67 | ||
| 65 | Stack() { | 68 | Stack() { |
| 66 | Image(this.loadImg ? this.contentDTO.coverUrl : '') | 69 | Image(this.loadImg ? this.contentDTO.coverUrl : '') |
| 67 | - .backgroundColor( this.loadImg ? $r('app.color.color_B0B0B0') : 0xf5f5f5) | 70 | + .backgroundColor(this.loadImg ? $r('app.color.color_B0B0B0') : 0xf5f5f5) |
| 68 | .borderRadius(5) | 71 | .borderRadius(5) |
| 69 | .aspectRatio(this.contentDTO.appStyle === CompStyle.Card_13 ? 3 / 2 : 3 / 4) | 72 | .aspectRatio(this.contentDTO.appStyle === CompStyle.Card_13 ? 3 / 2 : 3 / 4) |
| 70 | .height(this.contentDTO.appStyle === CompStyle.Card_13 ? 90 : 180) | 73 | .height(this.contentDTO.appStyle === CompStyle.Card_13 ? 90 : 180) |
| @@ -136,13 +136,13 @@ export struct Card9Component { | @@ -136,13 +136,13 @@ export struct Card9Component { | ||
| 136 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 136 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 137 | .alignSelf(ItemAlign.Center) | 137 | .alignSelf(ItemAlign.Center) |
| 138 | .margin({ left: 12 }) | 138 | .margin({ left: 12 }) |
| 139 | - if (item.fullColumnImgUrls[0] && item.fullColumnImgUrls[0].url) { | ||
| 140 | - Image(this.loadImg? item.fullColumnImgUrls[0].url : '') | ||
| 141 | - .backgroundColor(0xf5f5f5) | ||
| 142 | - .width(90) | ||
| 143 | - .height(60) | ||
| 144 | - .borderRadius($r('app.float.image_border_radius')) | ||
| 145 | - } | 139 | + // if (item.fullColumnImgUrls[0] && item.fullColumnImgUrls[0].url) { |
| 140 | + // Image(this.loadImg? item.fullColumnImgUrls[0].url : '') | ||
| 141 | + // .backgroundColor(0xf5f5f5) | ||
| 142 | + // .width(90) | ||
| 143 | + // .height(60) | ||
| 144 | + // .borderRadius($r('app.float.image_border_radius')) | ||
| 145 | + // } | ||
| 146 | } | 146 | } |
| 147 | } | 147 | } |
| 148 | } | 148 | } |
| @@ -37,8 +37,6 @@ struct ForgetPasswordPage { | @@ -37,8 +37,6 @@ struct ForgetPasswordPage { | ||
| 37 | }), | 37 | }), |
| 38 | autoCancel: false, | 38 | autoCancel: false, |
| 39 | alignment: DialogAlignment.Center, | 39 | alignment: DialogAlignment.Center, |
| 40 | - offset: { dx: 0, dy: -20 }, | ||
| 41 | - gridCount: 1, | ||
| 42 | customStyle: true, | 40 | customStyle: true, |
| 43 | maskColor:"#00000000" | 41 | maskColor:"#00000000" |
| 44 | }) | 42 | }) |
| @@ -53,8 +53,6 @@ struct LoginPage { | @@ -53,8 +53,6 @@ struct LoginPage { | ||
| 53 | }), | 53 | }), |
| 54 | autoCancel: false, | 54 | autoCancel: false, |
| 55 | alignment: DialogAlignment.Center, | 55 | alignment: DialogAlignment.Center, |
| 56 | - offset: { dx: 0, dy: -20 }, | ||
| 57 | - gridCount: 1, | ||
| 58 | customStyle: true, | 56 | customStyle: true, |
| 59 | maskColor:"#00000000" | 57 | maskColor:"#00000000" |
| 60 | }) | 58 | }) |
| @@ -24,8 +24,6 @@ struct ModifyPasswordPage { | @@ -24,8 +24,6 @@ struct ModifyPasswordPage { | ||
| 24 | }), | 24 | }), |
| 25 | autoCancel: false, | 25 | autoCancel: false, |
| 26 | alignment: DialogAlignment.Center, | 26 | alignment: DialogAlignment.Center, |
| 27 | - offset: { dx: 0, dy: -20 }, | ||
| 28 | - gridCount: 1, | ||
| 29 | customStyle: true, | 27 | customStyle: true, |
| 30 | maskColor:"#00000000" | 28 | maskColor:"#00000000" |
| 31 | }) | 29 | }) |
| @@ -64,8 +64,6 @@ export struct SettingPasswordLayout { | @@ -64,8 +64,6 @@ export struct SettingPasswordLayout { | ||
| 64 | }), | 64 | }), |
| 65 | autoCancel: false, | 65 | autoCancel: false, |
| 66 | alignment: DialogAlignment.Center, | 66 | alignment: DialogAlignment.Center, |
| 67 | - offset: { dx: 0, dy: -20 }, | ||
| 68 | - gridCount: 1, | ||
| 69 | customStyle: true, | 67 | customStyle: true, |
| 70 | maskColor:"#00000000" | 68 | maskColor:"#00000000" |
| 71 | }) | 69 | }) |
| @@ -327,7 +325,7 @@ export struct SettingPasswordLayout { | @@ -327,7 +325,7 @@ export struct SettingPasswordLayout { | ||
| 327 | return | 325 | return |
| 328 | } | 326 | } |
| 329 | if (this.password01 != this.password02) { | 327 | if (this.password01 != this.password02) { |
| 330 | - this.showToastTip('密码不一致') | 328 | + this.showToastTip('两次输入的密码不一致,请重新输入') |
| 331 | return | 329 | return |
| 332 | } | 330 | } |
| 333 | if(this.pageId == 1){ //设置密码 | 331 | if(this.pageId == 1){ //设置密码 |
-
Please register or login to post a comment