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

46
src/api/goods.ts Normal file
View File

@@ -0,0 +1,46 @@
import { request } from "../utils/request";
// 获取商品详情
export function goodsDetail(args: any) {
return request({
url: "/hotelBiz/commodity/commodityDetail",
method: "post",
data: args,
});
}
// 订单支付
export function orderPay(args: any) {
return request({
url: "/hotelBiz/trade/order",
method: "post",
data: args,
});
}
// 获取商品日价格及库存
export function commodityDailyPriceList(args: any) {
return request({
url: "/hotelBiz/commodity/commodityDailyPriceList",
method: "post",
data: args,
});
}
// 分页查询商品分类列表
export function commodityTypePageList(args: any) {
return request({
url: "/hotelBiz/commodity/commodityTypePageList",
method: "post",
data: args,
});
}
// 快速预定分页列表
export function quickBookingList(args: any) {
return request({
url: "/hotelBiz/mainScene/quickBookingList",
method: "post",
data: args,
});
}