feat: initial project setup with core infrastructure and api clients

- Add environment configs for dev/staging/prod environments
- Implement centralized axios request utility with standardized error handling
- Add shared TypeScript types for API responses and requests
- Create comprehensive API client modules for all core endpoints
- Configure vue router with all application page routes
- Add icon fonts, static assets, and loading animations
- Set up project documentation and collaboration guidelines
- Remove deprecated uni-app bridge component files
This commit is contained in:
duanshuwen
2026-05-26 21:42:36 +08:00
parent ad93ca5e8e
commit 548df7020c
30 changed files with 1213 additions and 560 deletions

55
src/api/login.ts Normal file
View File

@@ -0,0 +1,55 @@
import { request } from "../utils/request";
// 获取oauth token
export function oauthToken(args: any) {
return request({
url: "/auth/oauth2/token",
method: "post",
data: args,
});
}
// 绑定用户手机号
export function bindUserPhone(args: any) {
return request({
url: "/hotelBiz/user/bindUserPhone",
method: "post",
data: args,
});
}
// 检测用户是否绑定手机号
export function checkUserPhone(args: any) {
return request({
url: "/hotelBiz/user/checkUserHasBindPhone",
method: "get",
params: args,
});
}
// 获取登录用户手机号
export function getLoginUserPhone(args: any) {
return request({
url: "/hotelBiz/user/getLoginUserPhone",
method: "get",
params: args,
});
}
// 获取服务协议
export function getServiceAgreement(args: any) {
return request({
url: "/hotelBiz/mainScene/serviceAgreement",
method: "get",
params: args,
});
}
// 获取隐私协议
export function getPrivacyAgreement(args: any) {
return request({
url: "/hotelBiz/mainScene/privacyPolicy",
method: "get",
params: args,
});
}