feat(活动排行榜): 添加家庭活动排行榜页面及导航入口
- 创建活动排行榜页面,包含黄埔榜和上海榜两个榜单 - 实现排行榜前三名特殊展示样式和其他排名列表 - 在Dashboard页面添加排行榜入口按钮 - 更新app.config.js添加新页面路由
Showing
5 changed files
with
26 additions
and
1 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2025-06-28 10:33:00 | 2 | * @Date: 2025-06-28 10:33:00 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-08-29 15:56:45 | 4 | + * @LastEditTime: 2025-09-01 13:08:15 |
| 5 | * @FilePath: /lls_program/src/app.config.js | 5 | * @FilePath: /lls_program/src/app.config.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -32,6 +32,7 @@ export default { | ... | @@ -32,6 +32,7 @@ export default { |
| 32 | 'pages/ActivitiesCover/index', | 32 | 'pages/ActivitiesCover/index', |
| 33 | 'pages/PointsList/index', | 33 | 'pages/PointsList/index', |
| 34 | 'pages/UploadMedia/index', | 34 | 'pages/UploadMedia/index', |
| 35 | + 'pages/FamilyRank/index', | ||
| 35 | ], | 36 | ], |
| 36 | window: { | 37 | window: { |
| 37 | backgroundTextStyle: 'light', | 38 | backgroundTextStyle: 'light', | ... | ... |
| ... | @@ -79,6 +79,15 @@ | ... | @@ -79,6 +79,15 @@ |
| 79 | </template> | 79 | </template> |
| 80 | </WeRunAuth> | 80 | </WeRunAuth> |
| 81 | 81 | ||
| 82 | + <!-- 活动排行榜 --> | ||
| 83 | + <view class="px-5 mb-4 mt-4"> | ||
| 84 | + <view @tap="openFamilyRank" class="w-full bg-blue-500 text-white py-3 rounded-lg flex flex-col items-center justify-center"> | ||
| 85 | + <view class="flex items-center justify-center"> | ||
| 86 | + 活动排行榜 | ||
| 87 | + </view> | ||
| 88 | + </view> | ||
| 89 | + </view> | ||
| 90 | + | ||
| 82 | <!-- Family album --> | 91 | <!-- Family album --> |
| 83 | <view class="p-5 mt-4 mb-6 bg-white rounded-xl shadow-md mx-4"> | 92 | <view class="p-5 mt-4 mb-6 bg-white rounded-xl shadow-md mx-4"> |
| 84 | <view class="flex justify-between items-center mb-2"> | 93 | <view class="flex justify-between items-center mb-2"> |
| ... | @@ -307,6 +316,13 @@ const openCamera = () => { | ... | @@ -307,6 +316,13 @@ const openCamera = () => { |
| 307 | Taro.navigateTo({ url: '/pages/UploadMedia/index' }); | 316 | Taro.navigateTo({ url: '/pages/UploadMedia/index' }); |
| 308 | } | 317 | } |
| 309 | 318 | ||
| 319 | +/** | ||
| 320 | + * 打开活动排行榜 | ||
| 321 | + */ | ||
| 322 | +const openFamilyRank = () => { | ||
| 323 | + Taro.navigateTo({ url: '/pages/FamilyRank/index' }); | ||
| 324 | +} | ||
| 325 | + | ||
| 310 | const initPageData = async () => { | 326 | const initPageData = async () => { |
| 311 | // 获取用户信息 | 327 | // 获取用户信息 |
| 312 | familyName.value = '张爷爷的家庭' | 328 | familyName.value = '张爷爷的家庭' | ... | ... |
src/pages/FamilyRank/index.config.js
0 → 100755
src/pages/FamilyRank/index.less
0 → 100644
src/pages/FamilyRank/index.vue
0 → 100644
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment