diff --git a/pages/escort/itemdetail.js b/pages/escort/itemdetail.js index a38fea0..3a26a54 100644 --- a/pages/escort/itemdetail.js +++ b/pages/escort/itemdetail.js @@ -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