diff --git a/src/pages/index/index.ux b/src/pages/index/index.ux index cb1fab5..bed135b 100644 --- a/src/pages/index/index.ux +++ b/src/pages/index/index.ux @@ -12,7 +12,11 @@
- {{bubbleText}} + DeepSeek 余额 + ¥{{bubbleBalance}} + 今日已用 ¥{{bubbleUsage}} + {{peakLabel}} + {{bubbleText}}
@@ -49,6 +53,8 @@ export default { todayCost: '--', bubbleVisible: false, bubbleText: '', + bubbleBalance: '--', + bubbleUsage: '--', tapAnim: false, lines: [ '我算得比你快,但没你可爱。', @@ -90,7 +96,9 @@ export default { // 对话小框:显示一句幽默文案 + 峰谷信息 const idx = Math.floor(Math.random() * this.lines.length) const mode = this.isPeak ? '当前是峰时,钱包瑟瑟发抖' : '当前是谷时,薅羊毛好时机' - this.bubbleText = this.lines[idx] + ' | ' + mode + this.bubbleText = this.lines[idx] + this.bubbleBalance = this.balance + this.bubbleUsage = this.todayCost this.bubbleVisible = !this.bubbleVisible } } @@ -146,9 +154,43 @@ export default { background-color: #ffffff; } -.bubble-text { - color: #0b1220; - font-size: 14px; +.bubble-title { + color: #5b6b8c; + font-size: 13px; text-align: center; } + +.bubble-balance { + color: #1c2c47; + font-size: 26px; + font-weight: bold; + text-align: center; +} + +.bubble-usage { + color: #5b6b8c; + font-size: 12px; + text-align: center; +} + +.bubble-mode { + font-size: 13px; + font-weight: bold; + text-align: center; +} + +.bubble-mode-peak { + color: #ff5b5b; +} + +.bubble-mode-off { + color: #1f9e5a; +} + +.bubble-fun { + color: #1c2c47; + font-size: 12px; + text-align: center; + margin-top: 4px; +}