style(ui): 统一页首/字号/圆角档位并收口状态色令牌

- 页首:itemorder / guide / contact / attendants 删除与导航栏重复的大标题,统一为「短横 + 一句导语」
- 字号:页面主标题 44、区块标题 34、卡内标题 32;卡片圆角 28;容器内距 32(DESIGN.md 新增 §九)
- 状态色:utils/order.js 只产出语气档,两页胶囊改 .chip-tone-* 读 --status-* 令牌,删除内联 style 与 JS 色值
- 下单:字段标签去浅橙药丸改裸字,医院选择组件同步;搜索/手填输入框去掉旧绿底
- 文案:清除英文大写小标、粘字箭头与中点串,统一细竖线/留白分隔
- 修复:预约记录空值整行剔除、陪诊师卡片与重试态补按下反馈、三处无限动画补减动效回退
- aichat:消息时间改为距上条满 5 分钟才显示
This commit is contained in:
lik
2026-11-13 17:10:55 +08:00
parent 79464ce12a
commit 17a64f10bc
38 changed files with 472 additions and 277 deletions
+13 -11
View File
@@ -1,11 +1,13 @@
// 订单与支付状态的唯一前端映射,列表和详情只按展示需要读取不同扩展字段。
// 颜色不在这里:每个状态只给一个语气档(tone),色值由 app.wxss 的 --status-* 令牌
// 与 .chip-tone-* 类承担(DESIGN.md §三),改色只改 CSS。
const STATUS_MAP = {
pending: { text: '待确认', color: '#0F766E', bg: '#ECF7F4', border: '#C7E5DF', desc: '订单已提交,等待陪诊师确认' },
confirmed: { text: '已确认', color: '#0F766E', bg: '#ECF7F4', border: '#C7E5DF', desc: '订单已确认,陪诊师将准时为您服务' },
cancel_requested: { text: '待取消', color: '#B8520A', bg: '#FFF4E8', border: '#FFE0C2', desc: '取消申请已提交,等待陪诊师确认' },
in_progress: { text: '进行中', color: '#B8520A', bg: '#FFF4E8', border: '#FFE0C2', desc: '陪诊服务正在进行中' },
completed: { text: '已完成', color: '#1F7A4D', bg: '#EAF6EE', border: '#CDE9D7', desc: '陪诊服务已完成,感谢您的使用' },
cancelled: { text: '已取消', color: '#B4231A', bg: '#FCF0EE', border: '#F2D6D1', desc: '该订单已取消' }
pending: { text: '待确认', tone: 'wait', desc: '订单已提交,等待陪诊师确认' },
confirmed: { text: '已确认', tone: 'wait', desc: '订单已确认,陪诊师将准时为您服务' },
cancel_requested: { text: '待取消', tone: 'doing', desc: '取消申请已提交,等待陪诊师确认' },
in_progress: { text: '进行中', tone: 'doing', desc: '陪诊服务正在进行中' },
completed: { text: '已完成', tone: 'done', desc: '陪诊服务已完成,感谢您的使用' },
cancelled: { text: '已取消', tone: 'cancel', desc: '该订单已取消' }
}
// 取消与 status 解耦:展示层优先按 cancelStatus 映射为「待取消/已取消」,
@@ -19,11 +21,11 @@ function resolveOrderStatus(item) {
const PAYMENT_STATUS_MAP = {
// 未支付的展示文案由页面按 payChannel / 支付窗口派生,这里不再固定「联系客服」
unpaid: { text: '未支付', color: '#B8520A', bg: '#FFF4E8', border: '#FFE0C2' },
partial: { text: '部分支付', color: '#B8520A', bg: '#FFF4E8', border: '#FFE0C2', hint: '请联系客服补齐剩余费用' },
paid: { text: '已支付', color: '#1F7A4D', bg: '#EAF6EE', border: '#CDE9D7' },
refunding: { text: '退款中', color: '#B8520A', bg: '#FFF4E8', border: '#FFE0C2', hint: '退款处理中,如需了解进度请联系客服' },
refunded: { text: '已退款', color: '#6F655C', bg: 'transparent', border: '#E5DACC' }
unpaid: { text: '未支付', tone: 'doing' },
partial: { text: '部分支付', tone: 'doing', hint: '请联系客服补齐剩余费用' },
paid: { text: '已支付', tone: 'done' },
refunding: { text: '退款中', tone: 'doing', hint: '退款处理中,如需了解进度请联系客服' },
refunded: { text: '已退款', tone: 'neutral' }
}
module.exports = {