修改 球局详情,添加 页面不适用组件

This commit is contained in:
张成
2025-12-09 13:59:02 +08:00
parent 760d1bb4fe
commit 8fb2c4eaa7
8 changed files with 233 additions and 31 deletions

View File

@@ -76,6 +76,7 @@ export interface GameData {
max_participants: number;
weather: Weather[];
user_action_status: UserActionStatus;
is_disabled: number;
}
export enum MATCH_STATUS {
@@ -107,6 +108,7 @@ class GameDetailService {
{ id },
{
showLoading: false,
showToast: false,
},
);
}

View File

@@ -159,7 +159,7 @@ class HttpService {
if (statusCode !== HTTP_STATUS.SUCCESS) {
this.handleHttpError(statusCode)
reject(new Error(`HTTP Error: ${statusCode}`))
return
return response.data
}
// 业务状态码检查
@@ -175,7 +175,7 @@ class HttpService {
url: '/login_pages/index/index'
})
reject(new Error('用户不存在'))
return
return response.data
}
@@ -187,13 +187,13 @@ class HttpService {
} else {
reject(response.data)
}
return
return response.data
}
}
resolve(data)
resolve(response.data)
})
}

View File

@@ -397,6 +397,7 @@ export const getUserInfoById = async (id) => {
{ id },
{
showLoading: false,
showToast: false, // 不显示错误弹窗
}
);
return response;