修改了页面样式。

This commit is contained in:
lik
2026-11-03 16:15:41 +08:00
parent f78025e935
commit 82ed5c31a7
30 changed files with 3791 additions and 2989 deletions
+25
View File
@@ -247,6 +247,31 @@ Page({
}
},
// 回首页:首页是 tabBar 页,必须走 switchTab,navigateTo 跳不过去。
// switchTab 不保证被 enableAlertBeforeUnload 拦截,未保存时先自行确认再放行,
// 并主动关掉返回询问,避免同一次离开弹两遍。
onGoHome() {
const goHome = () => {
if (this.unsavedGuardActive) setUnsavedGuard(false)
wx.switchTab({ url: '/pages/home/index' })
}
if (!this.unsavedGuardActive) {
goHome()
return
}
wx.showModal({
title: '放弃未保存的修改?',
content: '返回首页后,当前填写的就诊人信息不会保存。',
confirmText: '返回首页',
cancelText: '继续编辑',
success: (res) => {
if (res.confirm) goHome()
}
})
},
// 转发卡片统一落到首页,避免好友打开需要登录的空表单。
onShareAppMessage() {
return {