修正预约登录弹窗确认文案超长导致点击无反应

This commit is contained in:
lik
2026-10-24 21:15:09 +08:00
committed by trae-solo-agent
parent 177c1159a9
commit 8989c7aa5d
+8 -2
View File
@@ -129,10 +129,16 @@ Page({
wx.showModal({
title: '登录后预约',
content: '登录成功后将返回当前服务并继续预约',
confirmText: '登录并继续',
// showModal 的按钮文案上限 4 个字:写「登录并继续」会让弹窗直接 fail,
// 用户看到的就是「点了预约没反应」,所以这里必须压在 4 字内
confirmText: '去登录',
confirmColor: '#B8520A',
success: resolve,
fail: () => resolve({ confirm: false })
fail: (err) => {
// 弹窗本身失败也不能静默:按「未确认」处理,避免整条链路无声中断
console.log('登录提示弹窗失败', err)
resolve({ confirm: false })
}
})
})
if (!modal.confirm) return null