|
|
@@ -59,7 +59,10 @@ export struct TabSettings {
|
|
|
Row() {
|
|
|
Stack() {
|
|
|
CardContainer({ radius: "50%" }) {
|
|
|
- Stack().width("100%").height("100%").linearGradient({ angle: 135, colors: [['#FFAE00', 0.0], ['#F7C700', 1.0]] })
|
|
|
+ Stack()
|
|
|
+ .width("100%")
|
|
|
+ .height("100%")
|
|
|
+ .linearGradient({ angle: 135, colors: [['#FFAE00', 0.0], ['#F7C700', 1.0]] })
|
|
|
Text("P").fontSize(20).fontWeight(FontWeight.Bold)
|
|
|
Image(this.vm.user.avatar).size({ width: 60, height: 60 })
|
|
|
}
|
|
|
@@ -94,5 +97,8 @@ export struct TabSettings {
|
|
|
.backgroundColor("#FA666C")
|
|
|
.borderRadius(6)
|
|
|
.justifyContent(FlexAlign.Center)
|
|
|
+ .onClick(() => {
|
|
|
+ this.getUIContext().showAlertDialog({ title: "提示", message: "确定要退出登录吗?" })
|
|
|
+ })
|
|
|
}
|
|
|
}
|