diff --git a/pages/bill/bill.vue b/pages/bill/bill.vue index fb836bf..62a1ae7 100644 --- a/pages/bill/bill.vue +++ b/pages/bill/bill.vue @@ -46,10 +46,10 @@ - {{ item.title }} + {{ displayTitle(item) }} 已完成 - {{ item.desc }} + {{ displayDesc(item) }} {{ item.type_text }} {{ item.time }} @@ -260,6 +260,21 @@ function formatAmount(value) { return num > 0 ? `+${num}` : String(num) } +function displayTitle(item = {}) { + const text = String(item.title || '').trim().replace(/\s*第\s*1\s*张\s*$/g, '').trim() + return text || item.title || '点数变动' +} + +function displayDesc(item = {}) { + const raw = String(item.desc || '').trim() + const text = raw + .replace(/(?:,|,|、|\s)*(混元生图\s*3\.0|腾讯混元大模型|腾讯混元|混元大模型|混元模型|高精模型|高清模型)\s*/gi, '') + .replace(/(?:,|,|、)\s*(生成模型|模型)\s*[::]?\s*[^,,、]+/g, '') + .replace(/[,,、\s]+$/g, '') + .trim() + return text || raw +} + /** * 充值流水的订单号。 * 后端 point_log.biz_no 在充值时存的就是 point_order.order_no(消费存的是计费流水号,不展示)。