Showing
3 changed files
with
16 additions
and
12 deletions
| @@ -96,8 +96,8 @@ export struct PeopleShipHomeListComponent { | @@ -96,8 +96,8 @@ export struct PeopleShipHomeListComponent { | ||
| 96 | startMargin: 0, | 96 | startMargin: 0, |
| 97 | endMargin: 0 | 97 | endMargin: 0 |
| 98 | }) | 98 | }) |
| 99 | - .onChange((index: number) => { | ||
| 100 | - this.currentIndex = index | 99 | + .onAnimationStart((index: number,targetindex:number) => { |
| 100 | + this.currentIndex = targetindex | ||
| 101 | }) | 101 | }) |
| 102 | 102 | ||
| 103 | } | 103 | } |
| @@ -272,9 +272,9 @@ struct MineHomePage { | @@ -272,9 +272,9 @@ struct MineHomePage { | ||
| 272 | } | 272 | } |
| 273 | .backgroundColor($r('app.color.white')) | 273 | .backgroundColor($r('app.color.white')) |
| 274 | .animationDuration(0) | 274 | .animationDuration(0) |
| 275 | - .onChange((index: number) => { | ||
| 276 | - this.currentIndex = index | ||
| 277 | - trackTabFirstClick(index === 0 ? "评论":"关注") | 275 | + .onAnimationStart((index: number,targetindex:number) => { |
| 276 | + this.currentIndex = targetindex | ||
| 277 | + trackTabFirstClick(targetindex === 0 ? "评论":"关注") | ||
| 278 | }) | 278 | }) |
| 279 | .vertical(false) | 279 | .vertical(false) |
| 280 | .barHeight(44) | 280 | .barHeight(44) |
| @@ -412,11 +412,13 @@ struct MineHomePage { | @@ -412,11 +412,13 @@ struct MineHomePage { | ||
| 412 | .fontWeight(400) | 412 | .fontWeight(400) |
| 413 | .fontColor($r('app.color.color_222222')) | 413 | .fontColor($r('app.color.color_222222')) |
| 414 | .lineHeight(16) | 414 | .lineHeight(16) |
| 415 | + .textOverflow({overflow:TextOverflow.Ellipsis}) | ||
| 415 | .alignRules({ | 416 | .alignRules({ |
| 416 | center: { anchor: "__container__", align: VerticalAlign.Center }, | 417 | center: { anchor: "__container__", align: VerticalAlign.Center }, |
| 417 | - left: { anchor: "head_icon", align: HorizontalAlign.End } | 418 | + left: { anchor: "head_icon", align: HorizontalAlign.End }, |
| 419 | + right: { anchor: "rightText", align: HorizontalAlign.Start }, | ||
| 418 | }) | 420 | }) |
| 419 | - .margin({ left: 6 }) | 421 | + .margin({ left: 6,right:6 }) |
| 420 | 422 | ||
| 421 | Text("编辑资料") | 423 | Text("编辑资料") |
| 422 | .height(22) | 424 | .height(22) |
| @@ -221,9 +221,9 @@ struct OtherNormalUserHomePage { | @@ -221,9 +221,9 @@ struct OtherNormalUserHomePage { | ||
| 221 | } | 221 | } |
| 222 | .backgroundColor($r('app.color.white')) | 222 | .backgroundColor($r('app.color.white')) |
| 223 | .animationDuration(0) | 223 | .animationDuration(0) |
| 224 | - .onChange((index: number) => { | ||
| 225 | - this.currentIndex = index | ||
| 226 | - trackTabFirstClick(index === 0 ? "评论":"关注") | 224 | + .onAnimationStart((index: number,targetindex:number) => { |
| 225 | + this.currentIndex = targetindex | ||
| 226 | + trackTabFirstClick(targetindex === 0 ? "评论":"关注") | ||
| 227 | }) | 227 | }) |
| 228 | .vertical(false) | 228 | .vertical(false) |
| 229 | .barHeight('77lpx') | 229 | .barHeight('77lpx') |
| @@ -341,11 +341,13 @@ struct OtherNormalUserHomePage { | @@ -341,11 +341,13 @@ struct OtherNormalUserHomePage { | ||
| 341 | .fontWeight('400lpx') | 341 | .fontWeight('400lpx') |
| 342 | .fontColor($r('app.color.color_222222')) | 342 | .fontColor($r('app.color.color_222222')) |
| 343 | .lineHeight('42lpx') | 343 | .lineHeight('42lpx') |
| 344 | + .textOverflow({overflow:TextOverflow.Ellipsis}) | ||
| 344 | .alignRules({ | 345 | .alignRules({ |
| 345 | center: { anchor: "__container__", align: VerticalAlign.Center }, | 346 | center: { anchor: "__container__", align: VerticalAlign.Center }, |
| 346 | - left: { anchor: "head_icon", align: HorizontalAlign.End } | 347 | + left: { anchor: "head_icon", align: HorizontalAlign.End }, |
| 348 | + right: { anchor: "__container__", align: HorizontalAlign.End }, | ||
| 347 | }) | 349 | }) |
| 348 | - .margin({ left: '12lpx' }) | 350 | + .margin({ left: 6,right:6 }) |
| 349 | } | 351 | } |
| 350 | .visibility(this.tileOpacity > 0 ? 0 : 1) | 352 | .visibility(this.tileOpacity > 0 ? 0 : 1) |
| 351 | .height('84lpx') | 353 | .height('84lpx') |
-
Please register or login to post a comment