Initial commit

Made-with: Cursor
This commit is contained in:
Daniel
2026-02-28 18:39:00 +08:00
commit a94bd44c3a
49 changed files with 917 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
const STATUS_TEXT: Record<string, string> = {
tradable: '可交易',
compressed: '风险压缩',
locked: '锁仓',
};
Component({
properties: {
status: { type: String, value: 'tradable' },
text: { type: String, value: '' },
},
lifetimes: {
attached() {
const s = this.properties.status;
const t = this.properties.text || STATUS_TEXT[s] || s;
this.setData({ text: t });
},
},
});