fix: 修复裁判端选手列表数据问题

- score-list添加competitionId参数传递
- 项目筛选改为横向滑动布局
- 修复env.config.js生产环境配置

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
DevOps
2025-12-26 15:45:57 +08:00
parent edd64cda47
commit 711779dc57
3 changed files with 5 additions and 18 deletions

View File

@@ -18,7 +18,7 @@ const ENV_CONFIG = {
// API基础路径dataMode为'api'时使用) // API基础路径dataMode为'api'时使用)
// uni.request 不支持 devServer proxy必须用完整地址 // uni.request 不支持 devServer proxy必须用完整地址
apiBaseURL: 'http://142.91.105.230:8123', apiBaseURL: 'https://martial-api.aitisai.com',
// 请求超时时间(毫秒) // 请求超时时间(毫秒)
timeout: 30000, timeout: 30000,
@@ -39,7 +39,7 @@ const ENV_CONFIG = {
// 生产环境配置 // 生产环境配置
production: { production: {
dataMode: 'api', dataMode: 'api',
apiBaseURL: 'https://api.yourdomain.com', apiBaseURL: 'https://martial-api.aitisai.com',
debug: false, debug: false,
timeout: 30000, timeout: 30000,
mockDelay: 0 mockDelay: 0

View File

@@ -315,6 +315,7 @@ export default {
const globalData = app.globalData || {} const globalData = app.globalData || {}
const params = { const params = {
matchCode: globalData.matchCode, matchCode: globalData.matchCode,
competitionId: globalData.matchId,
judgeId: this.judgeId, judgeId: this.judgeId,
venueId: this.venueInfo.id, venueId: this.venueInfo.id,
projectId: this.projectInfo.id, projectId: this.projectInfo.id,

View File

@@ -1,27 +1,17 @@
module.exports = { module.exports = {
// 输出目录
outputDir: 'dist/build/h5', outputDir: 'dist/build/h5',
// 静态资源目录
assetsDir: 'static', assetsDir: 'static',
// 公共路径 - 重要!确保静态资源能正确加载
publicPath: process.env.NODE_ENV === 'production' ? './' : '/', publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
// 生产环境配置
productionSourceMap: false, productionSourceMap: false,
// CSS 提取配置
css: { css: {
extract: true, extract: true,
sourceMap: false sourceMap: false
}, },
// 开发服务器配置
devServer: { devServer: {
port: 8080, port: 8080,
host: '0.0.0.0', host: '0.0.0.0',
open: true, open: false,
disableHostCheck: true,
overlay: { overlay: {
warnings: false, warnings: false,
errors: true errors: true
@@ -37,14 +27,10 @@ module.exports = {
} }
} }
}, },
chainWebpack: config => { chainWebpack: config => {
// 禁用 gzip 大小报告
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
config.performance.hints(false) config.performance.hints(false)
} }
// 确保 CSS 文件正确处理
config.module config.module
.rule('vue') .rule('vue')
.use('vue-loader') .use('vue-loader')