feat: 首页按后台配置展示订单提醒,挂号详情支持自行改期
首页金刚区和订单提醒样式走配置下发,消息页改为四入口宫格;挂号详情可改期并展示轨迹,取消态展示与支付取值统一按 xk-api 的 code/result。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -112,8 +112,9 @@ export default {
|
||||
method: 'post',
|
||||
data: { register_id: registerId },
|
||||
})
|
||||
if (res.data && (res.data.errcode == 0 || res.data.errcode === '0')) {
|
||||
const data = res.data.data || {}
|
||||
// registePay 为 xk-api:按 code/result/message 取值
|
||||
if (res.data && (res.data.code == 0 || res.data.code === '0')) {
|
||||
const data = res.data.result || {}
|
||||
if (data.is_paid == 1 || data.is_pay == 1) {
|
||||
uni.showToast({ title: '认领成功', icon: 'success' })
|
||||
return
|
||||
@@ -134,7 +135,7 @@ export default {
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: (res.data && (res.data.message || res.data.msg)) || '获取支付参数失败',
|
||||
title: (res.data && res.data.message) || '获取支付参数失败',
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user