diff --git a/docker-compose.yml b/docker-compose.yml index 671b463..c2a482b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ services: build: context: . dockerfile: Dockerfile - image: tradus-web:1.3.42 + image: tradus-web:1.3.43 container_name: tradus-web ports: - '6000:80' diff --git a/src/App.vue b/src/App.vue index e1597c0..080d2a9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,9 +33,8 @@ const fetchUserInfo = async () => { } const data = await response.json() - userStore.$patch((state) => { - state.userInfo = data - }) + // 使用 updateUserInfo 方法确保正确更新用户信息和本地存储 + userStore.updateUserInfo(data) } catch (error) { console.error('获取用户数据失败:', error) // 处理在http工具中已经实现,这里不需要重复处理 @@ -595,6 +594,10 @@ onUnmounted(() => { {{ userInfo?.mail || '未设置邮箱' }} +
+ 💰 + {{ userInfo?.points || 0 }} 积分 +
{ {{ userInfo?.mail || '未设置邮箱' }} +
+ 💰 + {{ userInfo?.points || 0 }} 积分 +
{

{{ userInfo?.mail || '未设置邮箱' }}

+
+ 💰 + 积分余额:{{ userInfo?.points || 0 }} +
diff --git a/src/views/ChatAgentView.vue b/src/views/ChatAgentView.vue index 57a62c7..dcd7f97 100644 --- a/src/views/ChatAgentView.vue +++ b/src/views/ChatAgentView.vue @@ -667,6 +667,16 @@ const stopStreaming = async () => {

AI交易智能体

为您提供市场分析、交易建议和投资策略

+ + +
+
💰
+
+ 积分消耗提示:每次分析消耗 + 20 积分 +
+
+

快速点击分析:

@@ -1138,10 +1148,46 @@ const stopStreaming = async () => { .welcome-content p { color: var(--color-text-secondary); - margin-bottom: 2rem; + margin-bottom: 1.5rem; line-height: 1.6; } +/* 移动端积分提示样式 */ +.points-notice { + display: flex; + align-items: center; + gap: 0.75rem; + padding: 1rem 1.25rem; + background-color: rgba(255, 193, 7, 0.1); + border: 1px solid rgba(255, 193, 7, 0.3); + border-radius: 12px; + margin-bottom: 2rem; + max-width: 100%; + box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1); +} + +.points-notice-icon { + font-size: 1.5rem; + flex-shrink: 0; +} + +.points-notice-text { + font-size: 0.9rem; + color: var(--color-text-primary); + line-height: 1.4; +} + +.points-notice-text strong { + font-weight: 600; + color: var(--color-text-primary); +} + +.points-amount { + color: #f59e0b; + font-weight: 600; + font-size: 1em; +} + .example-questions { display: flex; flex-direction: column; @@ -1577,6 +1623,23 @@ const stopStreaming = async () => { font-size: 0.9rem; } + /* 移动端积分提示样式 */ + .points-notice { + padding: 0.75rem 1rem; + margin-bottom: 1.5rem; + gap: 0.5rem; + margin-left: 0.5rem; + margin-right: 0.5rem; + } + + .points-notice-icon { + font-size: 1.25rem; + } + + .points-notice-text { + font-size: 0.85rem; + } + .example-questions { gap: 1rem; } @@ -1749,6 +1812,23 @@ const stopStreaming = async () => { line-height: 1.5; } + /* 小屏幕积分提示样式 */ + .points-notice { + padding: 0.6rem 0.75rem; + margin-bottom: 1.25rem; + gap: 0.4rem; + margin-left: 0; + margin-right: 0; + } + + .points-notice-icon { + font-size: 1.1rem; + } + + .points-notice-text { + font-size: 0.8rem; + } + .example-questions { gap: 0.75rem; }