选择医院

This commit is contained in:
XiuYun CHEN
2025-05-21 16:57:48 +08:00
parent 5aa6de62c7
commit 12bd6efea9
7 changed files with 154 additions and 63 deletions
+24 -13
View File
@@ -46,19 +46,23 @@ export struct HdNav {
build() {
Row() {
if (this.showLeftIcon) {
Image(this.leftIcon)
.size({ width: 24, height: 24 })
.margin({left:-5})
.onClick(() => router.back())
.fillColor($r('app.color.black'))
Row()
{
Image(this.leftIcon)
.size({ width: 24, height: 24 })
.onClick(() => router.back())
.fillColor($r('app.color.black'))
}
.size({ width: 50, height: 50 })
} else {
Blank()
.width(24)
.width(50)
}
Row() {
if (this.title) {
Text(this.title)
// .fontWeight(600)
.layoutWeight(1)
.textAlign(TextAlign.Center)
.fontSize(20)
@@ -74,20 +78,27 @@ export struct HdNav {
.layoutWeight(1)
if (this.showRightIcon) {
Image(this.rightIcon)
.size({ width: 24, height: 24 })
.objectFit(ImageFit.Contain)
.bindMenu(this.menuBuilder)
.onClick(()=>this.onRightItemClick())
Row()
{
Image(this.rightIcon)
.size({ width: 24, height: 24 })
.objectFit(ImageFit.Contain)
.bindMenu(this.menuBuilder)
.onClick(()=>this.onRightItemClick())
}
.size({ width: 50, height: 50 })
} else if (this.showRightText) {
Text(this.rightText)
.fontSize(16)
.fontColor(this.textColor)
.onClick(()=>this.onRightItemClick())
.width(50)
.textAlign(TextAlign.Center)
// .margin({right:10})
} else {
Blank()
.width(24)
.width(50)
}
}
.padding({ left: 16, right: 16, top: this.topHeight })
@@ -31,7 +31,7 @@ class PerfactAuth {
await this.getStore().flush()
}
initUser() {
initUser(phone:string) {
const json = this.getStore().getSync(AUTH_STORE_KEY, '{}') as string
AppStorage.setOrCreate(AUTH_STORE_KEY, JSON.parse(json))
}