Files
nianxx-h5/src/api/goods.ts
duanshuwen 548df7020c 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
2026-05-26 21:42:36 +08:00

47 lines
968 B
TypeScript

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,
});
}