|
@@ -92,6 +92,13 @@ export struct Mine {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ private toSettingPage(){
|
|
|
|
|
+ if (this.userInfo.checkLogin()) {
|
|
|
|
|
+ yTRouter.router2SettingPage()
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ yTRouter.router2LoginPage()
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
private linearInfo: LinearGradientOptions = {
|
|
private linearInfo: LinearGradientOptions = {
|
|
|
colors: [ ['#B9FD2A', 0.01], ['#F5FD6D', 1] ],
|
|
colors: [ ['#B9FD2A', 0.01], ['#F5FD6D', 1] ],
|
|
@@ -125,11 +132,7 @@ export struct Mine {
|
|
|
.borderRadius(40)
|
|
.borderRadius(40)
|
|
|
.position({ y: -40 })
|
|
.position({ y: -40 })
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
- if (this.userInfo.checkLogin()) {
|
|
|
|
|
- yTRouter.router2SettingPage()
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- yTRouter.router2LoginPage()
|
|
|
|
|
|
|
+ this.toSettingPage()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
// 编辑按钮
|
|
// 编辑按钮
|
|
@@ -141,18 +144,14 @@ export struct Mine {
|
|
|
.fontColor(Color.Black)
|
|
.fontColor(Color.Black)
|
|
|
.linearGradient(this.linearInfo)
|
|
.linearGradient(this.linearInfo)
|
|
|
.padding({ left: 14, top: 5, right: 14, bottom: 5 })
|
|
.padding({ left: 14, top: 5, right: 14, bottom: 5 })
|
|
|
- .onClick(() => {
|
|
|
|
|
- if (this.userInfo.checkLogin()) {
|
|
|
|
|
- yTRouter.router2SettingPage()
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- yTRouter.router2LoginPage()
|
|
|
|
|
- })
|
|
|
|
|
}
|
|
}
|
|
|
.width("100%")
|
|
.width("100%")
|
|
|
.alignItems(VerticalAlign.Center)
|
|
.alignItems(VerticalAlign.Center)
|
|
|
.justifyContent(FlexAlign.End)
|
|
.justifyContent(FlexAlign.End)
|
|
|
.padding({top: 32})
|
|
.padding({top: 32})
|
|
|
|
|
+ .onClick(() => {
|
|
|
|
|
+ this.toSettingPage()
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
// 昵称 + 编辑按钮
|
|
// 昵称 + 编辑按钮
|
|
|
Row(){
|
|
Row(){
|
|
@@ -160,6 +159,9 @@ export struct Mine {
|
|
|
'未登录')
|
|
'未登录')
|
|
|
.fontSize(18)
|
|
.fontSize(18)
|
|
|
.fontColor('Color.Black')
|
|
.fontColor('Color.Black')
|
|
|
|
|
+ .onClick(() => {
|
|
|
|
|
+ this.toSettingPage()
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
.width("100%")
|
|
.width("100%")
|
|
|
.alignItems(VerticalAlign.Center)
|
|
.alignItems(VerticalAlign.Center)
|