feat: chat integration, tenant admin spec, backend chat service, miniprogram updates, DEMO moved to tmp, XCX-TEST removed, migrations & docs

This commit is contained in:
Neo
2026-03-20 09:02:10 +08:00
parent 3d2e5f8165
commit beb88d5bea
388 changed files with 6436 additions and 25458 deletions

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

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 })
},
},
})

View File

@@ -0,0 +1 @@
<text class="heart-icon">{{heartEmoji}}</text>

View File

@@ -0,0 +1,6 @@
.heart-icon {
font-size: 22rpx;
line-height: 1;
position: relative;
top: -4rpx;
}