From 8989c7aa5db77c2ebcd0960e43ad8c12ba8319d7 Mon Sep 17 00:00:00 2001 From: lik Date: Sat, 24 Oct 2026 21:15:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=A2=84=E7=BA=A6=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=BC=B9=E7=AA=97=E7=A1=AE=E8=AE=A4=E6=96=87=E6=A1=88?= =?UTF-8?q?=E8=B6=85=E9=95=BF=E5=AF=BC=E8=87=B4=E7=82=B9=E5=87=BB=E6=97=A0?= =?UTF-8?q?=E5=8F=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/escort/itemdetail.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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