feat(排行榜): 添加排行榜卡片组件并更新主题颜色
- 新增 RankingCard 组件用于展示活动步数排行榜 - 将主题蓝色从 #4A90E2 更新为 #54ABAE - 替换 Dashboard 页面的排行榜视图为新的 RankingCard 组件
Showing
5 changed files
with
9 additions
and
14 deletions
| ... | @@ -28,6 +28,7 @@ declare module 'vue' { | ... | @@ -28,6 +28,7 @@ declare module 'vue' { |
| 28 | PointsCollector: typeof import('./src/components/PointsCollector.vue')['default'] | 28 | PointsCollector: typeof import('./src/components/PointsCollector.vue')['default'] |
| 29 | PosterBuilder: typeof import('./src/components/PosterBuilder/index.vue')['default'] | 29 | PosterBuilder: typeof import('./src/components/PosterBuilder/index.vue')['default'] |
| 30 | PrimaryButton: typeof import('./src/components/PrimaryButton.vue')['default'] | 30 | PrimaryButton: typeof import('./src/components/PrimaryButton.vue')['default'] |
| 31 | + RankingCard: typeof import('./src/components/RankingCard.vue')['default'] | ||
| 31 | RouterLink: typeof import('vue-router')['RouterLink'] | 32 | RouterLink: typeof import('vue-router')['RouterLink'] |
| 32 | RouterView: typeof import('vue-router')['RouterView'] | 33 | RouterView: typeof import('vue-router')['RouterView'] |
| 33 | ShareButton: typeof import('./src/components/ShareButton/index.vue')['default'] | 34 | ShareButton: typeof import('./src/components/ShareButton/index.vue')['default'] | ... | ... |
| ... | @@ -3,13 +3,13 @@ | ... | @@ -3,13 +3,13 @@ |
| 3 | @tailwind utilities; | 3 | @tailwind utilities; |
| 4 | 4 | ||
| 5 | .bg-blue-500 { | 5 | .bg-blue-500 { |
| 6 | - background-color: #4A90E2 !important; | 6 | + background-color: #54ABAE !important; |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | .text-blue-500 { | 9 | .text-blue-500 { |
| 10 | - color: #4A90E2 !important; | 10 | + color: #54ABAE !important; |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | .border-blue-500 { | 13 | .border-blue-500 { |
| 14 | - border-color: #4A90E2 !important; | 14 | + border-color: #54ABAE !important; |
| 15 | } | 15 | } | ... | ... |
src/components/RankingCard.vue
0 → 100644
This diff is collapsed. Click to expand it.
| ... | @@ -132,15 +132,8 @@ | ... | @@ -132,15 +132,8 @@ |
| 132 | </template> | 132 | </template> |
| 133 | </WeRunAuth> | 133 | </WeRunAuth> |
| 134 | 134 | ||
| 135 | - <!-- 活动排行榜 --> | 135 | + <!-- 排行榜卡片 --> |
| 136 | - <view class="px-5 mb-4 mt-4"> | 136 | + <RankingCard :onViewMore="openFamilyRank" /> |
| 137 | - <view @tap="openFamilyRank" class="w-full bg-blue-500 text-white py-3 rounded-lg flex flex-col items-center justify-center"> | ||
| 138 | - <view class="flex items-center justify-center"> | ||
| 139 | - <Category size="16" class="mr-2" /> | ||
| 140 | - 昨日活动步数排行榜 | ||
| 141 | - </view> | ||
| 142 | - </view> | ||
| 143 | - </view> | ||
| 144 | 137 | ||
| 145 | <!-- Family album --> | 138 | <!-- Family album --> |
| 146 | <view class="p-5 mt-4 mb-6 bg-white rounded-xl shadow-md mx-4"> | 139 | <view class="p-5 mt-4 mb-6 bg-white rounded-xl shadow-md mx-4"> |
| ... | @@ -232,6 +225,7 @@ import BottomNav from '../../components/BottomNav.vue'; | ... | @@ -232,6 +225,7 @@ import BottomNav from '../../components/BottomNav.vue'; |
| 232 | import TotalPointsDisplay from '@/components/TotalPointsDisplay.vue'; | 225 | import TotalPointsDisplay from '@/components/TotalPointsDisplay.vue'; |
| 233 | import PointsCollector from '@/components/PointsCollector.vue' | 226 | import PointsCollector from '@/components/PointsCollector.vue' |
| 234 | import WeRunAuth from '@/components/WeRunAuth.vue' | 227 | import WeRunAuth from '@/components/WeRunAuth.vue' |
| 228 | +import RankingCard from '@/components/RankingCard.vue' | ||
| 235 | import { useMediaPreview } from '@/composables/useMediaPreview'; | 229 | import { useMediaPreview } from '@/composables/useMediaPreview'; |
| 236 | // 默认家庭封面图 | 230 | // 默认家庭封面图 |
| 237 | const defaultFamilyCover = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png'; | 231 | const defaultFamilyCover = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png'; | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-09-08 14:00:36 | 4 | + * @LastEditTime: 2025-09-09 10:52:43 |
| 5 | * @FilePath: /lls_program/src/utils/config.js | 5 | * @FilePath: /lls_program/src/utils/config.js |
| 6 | * @Description: 环境配置文件 - 根据小程序运行环境自动切换API地址 | 6 | * @Description: 环境配置文件 - 根据小程序运行环境自动切换API地址 |
| 7 | */ | 7 | */ |
| ... | @@ -46,7 +46,7 @@ export const DEFAULT_COVER_IMG = 'https://images.unsplash.com/photo-1558981806-e | ... | @@ -46,7 +46,7 @@ export const DEFAULT_COVER_IMG = 'https://images.unsplash.com/photo-1558981806-e |
| 46 | // 主题颜色配置 | 46 | // 主题颜色配置 |
| 47 | export const THEME_COLORS = { | 47 | export const THEME_COLORS = { |
| 48 | // 主题蓝色 - 可统一调整 | 48 | // 主题蓝色 - 可统一调整 |
| 49 | - PRIMARY: '#4A90E2', | 49 | + PRIMARY: '#54ABAE', |
| 50 | // 其他颜色可以在这里添加 | 50 | // 其他颜色可以在这里添加 |
| 51 | SECONDARY: '#6B7280', | 51 | SECONDARY: '#6B7280', |
| 52 | SUCCESS: '#10B981', | 52 | SUCCESS: '#10B981', | ... | ... |
-
Please register or login to post a comment