Commit Graph

31 Commits

Author SHA1 Message Date
f861f82675 feat: Update refresh logic and footer text for real-time data synchronization
- Changed footer text in multiple components to indicate that data refresh occurs automatically when scrolling to the bottom.
- Removed the 30-second refresh timer and implemented a cooldown mechanism to refresh data only after scrolling ends, enhancing performance and user experience.
- Updated the scrolling logic to trigger data refresh upon reaching the end of the scrollable area in both Ladder and Ranking boards.
2026-02-10 10:37:36 +08:00
3923217e0e feat: Implement date formatting across controllers for improved readability
- Added a new utility function `formatDateTime` to standardize date formatting across various controllers.
- Updated multiple controllers (admin, article, ladder, match, points, store, user) to utilize the new formatting function for timestamps, enhancing the clarity of date and time displays in API responses.
- Ensured consistent date representation in user and match details, improving overall user experience.
2026-02-10 10:25:19 +08:00
b2ed278505 feat(match): Add match time formatting for improved display
- Introduced a new function to format match timestamps, enhancing the readability of match creation times.
- Updated the match controller to utilize the formatted time in the match details response, replacing the raw timestamp with a user-friendly string representation.
2026-02-10 10:21:17 +08:00
4719e931b0 feat(match): Enhance challenge score confirmation and match detail refresh logic
- Implemented logic to notify users when challenge scores are confirmed, prompting a refresh of match details.
- Updated the match controller to use sendToUser for sending challenge response notifications, improving notification handling.
- Added checks to ensure match details are only refreshed for the relevant match, enhancing data accuracy and user experience.
2026-02-10 01:34:09 +08:00
e871eed0e8 refactor: Improve data validation and avatar normalization
- Simplified data validation logic in the index.js file to handle cases where data is missing or incomplete.
- Updated the index.wxml file to provide a clearer message when no ranking data is available.
- Added a new method to normalize avatar URLs in the helper.js file, ensuring that default avatars are handled correctly across user and match controllers.
- Refactored user and match controllers to utilize the new avatar normalization method, enhancing consistency in avatar display.
2026-02-10 01:27:52 +08:00
21c5bb9b57 feat(user): Add logic to conditionally display "Add as Ladder User" button
- Implemented a check to hide the "Add as Ladder User" button for users already designated as ladder users in any store.
- Enhanced the user retrieval process to include a flag indicating whether a user is a ladder user, optimizing front-end rendering and reducing unnecessary actions.
2026-02-09 19:13:01 +08:00
edd977d5d2 refactor: Simplify match detail refresh logic and improve error handling
- Replaced setTimeout with direct await calls to loadMatchDetail after successful API responses, ensuring immediate data refresh.
- Enhanced error handling by displaying specific backend error messages in toast notifications for better user feedback.
2026-02-09 17:23:06 +08:00
7a98070af6 fix(config): Update development environment URLs for API and WebSocket
- Changed the API base URL and WebSocket URL in config.js to point to the production server instead of localhost for the development environment.
- Ensured that the configuration reflects the correct endpoints for improved connectivity during development.
2026-02-08 08:44:22 +08:00
a87b9758a3 fix(config): Correct environment determination logic and enable URL check
- Updated the environment determination logic in config.js to accurately return "development" or "production" based on the current environment.
- Enabled URL check in project.private.config.json to enhance security and validation of URLs.
2026-02-08 08:37:11 +08:00
1a530ebf02 feat: Implement default store retrieval for new users and enhance login flow
- Added a new method to fetch the default store for users without a login, allowing them to browse store rankings.
- Updated the wxLogin function to streamline the login process for users with existing phone numbers, enabling direct token retrieval.
- Refactored various page components to utilize the new getDefaultStore method for better user experience when accessing store information.
- Enhanced error handling and data synchronization for user and store information across multiple pages.
2026-02-07 14:04:31 +08:00
459fa02eb9 feat: Add navigation feature to store in order page
- Implemented a new button to navigate to the store location from the order details.
- Added functionality to open the store's location in the map application or copy the address if location data is unavailable.
- Updated UI to include the navigation button conditionally based on store information availability.
- Enhanced styling for the navigation button to improve user experience.
2026-02-07 12:06:05 +08:00
98f9e64d91 refactor: Enhance store and user management features
- Updated user information retrieval to support store-specific points and ladder user data.
- Refactored store initialization logic to prioritize last selected store.
- Improved API endpoints for fetching matches and user data, ensuring compatibility with store context.
- Adjusted UI components to display store-related information consistently across various pages.
- Enhanced error handling and data fetching logic for better user experience.
2026-02-07 11:09:37 +08:00
a684b617f2 fix: Update import statements and metadata for Element Plus components
- Adjusted import paths in various Element Plus component CSS files to ensure correct chunk loading.
- Updated metadata for dependencies in _metadata.json to reflect new file hashes and improve performance.
- Modified the order of results in the ladder admin controller to sort by ID instead of power score.
2026-02-07 02:28:23 +08:00
19784bddb9 feat: Update .gitignore and enhance user management features
- Added new entries to .gitignore to exclude Vite cache, environment variable templates, and sensitive files.
- Modified user management routes to allow access for both super admins and store staff, enabling store staff to add users for their respective stores.
- Refactored dashboard navigation to include a function for routing with store context.
- Enhanced user form to display current store information for non-super admin users.
2026-02-07 02:19:04 +08:00
8f9eb38666 fix(dependencies): Remove peer flags from package-lock.json and update Vite dependencies
- Removed unnecessary "peer" flags from various dependencies in package-lock.json to streamline package management.
- Updated Vite dependencies and their corresponding metadata for improved performance and compatibility.
- Adjusted import paths in CSS files to reflect the correct directory structure.
- Deleted unused CSS files related to the "col" component to clean up the project.
2026-02-07 02:05:34 +08:00
d07ebb735a fix(env): Update API URL and enhance HTML structure
- Change VITE_API_URL in .env from localhost:3000 to localhost:3001 for backend access.
- Update index.html to replace favicon with logo.png and ensure proper HTML structure.
- Add new dependencies for WangEditor in package.json and package-lock.json to support rich text editing features.
2026-02-06 19:04:16 +08:00
2ee017bccf feat(branding): Update logo and favicon assets across all platforms
- Replace favicon.svg in admin panel with new brand logo design
- Add logo.png and logo.svg files to dedicated logo directory
- Update miniprogram with new logo assets (logo.png and logo.svg)
- Add README-UPLOAD.md documentation for miniprogram upload functionality
- Update miniprogram app.js and config.js for logo integration
- Update miniprogram user page (pages/user/index.js) to use new branding
- Update server upload route to handle new logo assets
- Add test-upload.js for upload functionality testing
- Update server .env configuration for asset handling
- Standardize brand visual identity across admin, miniprogram, and server platforms
2026-02-03 17:26:02 +08:00
02937ca33c feat(天梯): 新增选手定位功能并调整挑战赛权重
- 在小程序天梯排名页添加“定位我”按钮,点击可滚动到当前用户所在位置
- 新增获取用户排名接口 `/ladder/my-rank` 用于定位计算
- 调整挑战赛权重从 1.5 降至 1.0,与日常畅打保持一致
- 新增数据库脚本 `setChallengeMatchWeightTo1.js` 用于更新历史数据
- 在管理员界面创建天梯用户时,根据所选等级自动填充默认战力值
- 修复管理员更新比赛时挑战赛权重强制设置为 1.0 的问题
- 新增天梯汇总大屏页面及相关路由
- 添加大屏比赛列表接口 `/match/display-list` 用于展示进行中和近期比赛
- 优化用户详情页的胜负场和胜率显示逻辑
- 修复小程序用户注册时的性别选择逻辑
2026-02-02 03:22:36 +08:00
d3f0515155 fix(config): 修正环境判断逻辑和项目名称
将项目名称从 "yingsa" 更新为 "miniprogram"。同时修正环境判断逻辑,将原本仅判断 "release" 环境改为判断非 "develop" 环境即为生产环境,使环境判定更准确。
2026-02-01 15:37:47 +08:00
de1de1e52f feat: 新增裁判功能和批量生成账号,优化比赛流程
- 添加裁判修改比分和开始淘汰赛接口
- 实现批量生成天梯用户账号功能,支持自动合并微信登录
- 优化排位赛比分提交和确认流程
- 更新项目配置和依赖文件路径
2026-02-01 13:40:20 +08:00
75760d25fd feat: 添加选手详情与比赛记录接口以支持小程序端
- 新增 `/api/ladder/player` 接口,兼容小程序端选手详情查询
- 新增 `/api/match/history` 接口,用于获取选手比赛记录
- 选手详情接口增加 `loseCount` 字段,完善比赛数据统计
- 比赛记录接口提供分页查询,包含对手信息与比赛结果详情
2026-01-30 02:47:41 +08:00
74ed19eee1 feat: 新增选手资料页面并优化界面设计
- 新增选手资料页面,支持查看选手信息及比赛记录
- 添加多个SVG图标替换原有emoji,提升视觉一致性
- 扩展CSS变量系统,增加信息、成功、警告、危险等状态颜色
- 优化多个页面的样式,统一使用CSS变量和现代设计语言
- 修复可选链操作符兼容性问题,改用传统条件判断
- 改进数据加载逻辑,使用Object.assign替代展开运算符
- 调整开发环境配置,使用本地服务器地址
2026-01-30 02:24:03 +08:00
e0713c3fd8 feat: 实现天梯排行数字大屏页面并统一品牌名称为英飒俱乐部
- 新增无需登录的数字大屏页面,包含蓝色和橙色主题
- 在管理后台仪表盘添加大屏入口快速按钮
- 扩展天梯排名接口,支持大屏显示模式(绕过最低参赛场次限制)
- 统一将项目品牌名称从“影杀/羽动俱乐部”更新为“英飒俱乐部”
- 更新相关配置文件、文档和界面中的品牌名称
- 添加公开数据接口用于获取门店列表和天梯排名
2026-01-30 00:59:26 +08:00
90505cba5f Enhance avatar URL handling by adding normalization logic to ensure consistent URL formats across user and admin profiles. Update environment template with detailed comments on BASE_URL and FORCE_HTTPS settings. Improve upload route to utilize normalized avatar URLs. 2026-01-26 05:29:00 +08:00
15413c85cc Refactor user search functionality in admin routes, enhance match challenge logic to prevent overlapping challenges, and update user-related data handling in the miniprogram. Improve UI consistency across various pages with design updates and optimize image upload responses to include full URLs. 2026-01-26 05:12:26 +08:00
a3b4bd7cb0 Improve error handling in user login process and optimize QR code generation logic 2026-01-25 23:14:41 +08:00
7ec68e3f7a Refactor and enhance miniprogram UI with new designs, improve match and points functionality, and update server routes for QR code generation 2026-01-23 01:38:42 +08:00
379ecb029a Update appid in project config and disable URL check in private config 2026-01-22 23:09:14 +08:00
824334907d Update dependencies, enhance match view with QR code functionality, and improve user login process 2026-01-20 09:23:30 +08:00
68eb2b6d93 Update file with new features and improvements 2026-01-20 08:56:25 +08:00
ecd0e748c8 first 2026-01-20 08:50:50 +08:00