wangliang_wd

feat:优化用户名显示问题,滑动tab展示问题

... ... @@ -96,8 +96,8 @@ export struct PeopleShipHomeListComponent {
startMargin: 0,
endMargin: 0
})
.onChange((index: number) => {
this.currentIndex = index
.onAnimationStart((index: number,targetindex:number) => {
this.currentIndex = targetindex
})
}
... ...
... ... @@ -272,9 +272,9 @@ struct MineHomePage {
}
.backgroundColor($r('app.color.white'))
.animationDuration(0)
.onChange((index: number) => {
this.currentIndex = index
trackTabFirstClick(index === 0 ? "评论":"关注")
.onAnimationStart((index: number,targetindex:number) => {
this.currentIndex = targetindex
trackTabFirstClick(targetindex === 0 ? "评论":"关注")
})
.vertical(false)
.barHeight(44)
... ... @@ -412,11 +412,13 @@ struct MineHomePage {
.fontWeight(400)
.fontColor($r('app.color.color_222222'))
.lineHeight(16)
.textOverflow({overflow:TextOverflow.Ellipsis})
.alignRules({
center: { anchor: "__container__", align: VerticalAlign.Center },
left: { anchor: "head_icon", align: HorizontalAlign.End }
left: { anchor: "head_icon", align: HorizontalAlign.End },
right: { anchor: "rightText", align: HorizontalAlign.Start },
})
.margin({ left: 6 })
.margin({ left: 6,right:6 })
Text("编辑资料")
.height(22)
... ...
... ... @@ -221,9 +221,9 @@ struct OtherNormalUserHomePage {
}
.backgroundColor($r('app.color.white'))
.animationDuration(0)
.onChange((index: number) => {
this.currentIndex = index
trackTabFirstClick(index === 0 ? "评论":"关注")
.onAnimationStart((index: number,targetindex:number) => {
this.currentIndex = targetindex
trackTabFirstClick(targetindex === 0 ? "评论":"关注")
})
.vertical(false)
.barHeight('77lpx')
... ... @@ -341,11 +341,13 @@ struct OtherNormalUserHomePage {
.fontWeight('400lpx')
.fontColor($r('app.color.color_222222'))
.lineHeight('42lpx')
.textOverflow({overflow:TextOverflow.Ellipsis})
.alignRules({
center: { anchor: "__container__", align: VerticalAlign.Center },
left: { anchor: "head_icon", align: HorizontalAlign.End }
left: { anchor: "head_icon", align: HorizontalAlign.End },
right: { anchor: "__container__", align: HorizontalAlign.End },
})
.margin({ left: '12lpx' })
.margin({ left: 6,right:6 })
}
.visibility(this.tileOpacity > 0 ? 0 : 1)
.height('84lpx')
... ...