feat: batch update - gift card breakdown spec, backend APIs, miniprogram pages, ETL finance recharge, docs & migrations

This commit is contained in:
Neo
2026-03-20 01:43:48 +08:00
parent 075caf067f
commit 79f9a0e1da
437 changed files with 118603 additions and 976 deletions

View File

@@ -0,0 +1,30 @@
Component({
properties: {
/** 评分 0-10超出范围自动 clamp */
score: {
type: Number,
value: 0,
},
},
data: {
heartEmoji: '💙',
},
observers: {
score(val: number) {
const s = val < 0 ? 0 : val > 10 ? 10 : val
let emoji: string
if (s > 8.5) {
emoji = '💖' // 粉红色 - 很好
} else if (s >= 6) {
emoji = '🧡' // 橙色 - 良好
} else if (s >= 3.5) {
emoji = '💛' // 黄色 - 一般
} else {
emoji = '💙' // 蓝色 - 待发展
}
this.setData({ heartEmoji: emoji })
},
},
})