修正预约登录弹窗确认文案超长导致点击无反应
This commit is contained in:
@@ -129,10 +129,16 @@ Page({
|
|||||||
wx.showModal({
|
wx.showModal({
|
||||||
title: '登录后预约',
|
title: '登录后预约',
|
||||||
content: '登录成功后将返回当前服务并继续预约',
|
content: '登录成功后将返回当前服务并继续预约',
|
||||||
confirmText: '登录并继续',
|
// showModal 的按钮文案上限 4 个字:写「登录并继续」会让弹窗直接 fail,
|
||||||
|
// 用户看到的就是「点了预约没反应」,所以这里必须压在 4 字内
|
||||||
|
confirmText: '去登录',
|
||||||
confirmColor: '#B8520A',
|
confirmColor: '#B8520A',
|
||||||
success: resolve,
|
success: resolve,
|
||||||
fail: () => resolve({ confirm: false })
|
fail: (err) => {
|
||||||
|
// 弹窗本身失败也不能静默:按「未确认」处理,避免整条链路无声中断
|
||||||
|
console.log('登录提示弹窗失败', err)
|
||||||
|
resolve({ confirm: false })
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
if (!modal.confirm) return null
|
if (!modal.confirm) return null
|
||||||
|
|||||||
Reference in New Issue
Block a user