Merge branch 'fix-109' of https://git.nianxx.cn/zoujing/YGChatCS
This commit is contained in:
@@ -69,7 +69,7 @@ import TopNavBar from "@/components/TopNavBar/index.vue";
|
||||
import Calender from "@/components/Calender/index.vue";
|
||||
import Tabs from "./components/Tabs/index.vue";
|
||||
import Card from "./components/Card/index.vue";
|
||||
import { quickBookingComponent } from "@/request/api/MainPageDataApi";
|
||||
import { quickBookingList } from "@/request/api/GoodsApi";
|
||||
import { DateUtils } from "@/utils";
|
||||
|
||||
const calendarVisible = ref(false);
|
||||
@@ -85,7 +85,11 @@ const currentType = ref("0"); // 当前选中类型
|
||||
|
||||
const queryList = async (pageNum = 1, pageSize = 10) => {
|
||||
try {
|
||||
const res = await quickBookingComponent(DateUtils.formatDate());
|
||||
const res = await quickBookingList({
|
||||
commodityTypeCode: currentType.value,
|
||||
size: pageSize,
|
||||
current: pageNum,
|
||||
});
|
||||
console.log("API响应:", res.data.commodityGroupDTOList);
|
||||
|
||||
if (res && res.data && res.data.commodityGroupDTOList) {
|
||||
|
||||
@@ -14,4 +14,9 @@ const commodityDailyPriceList = (args) => {
|
||||
return request.post("/hotelBiz/commodity/commodityDailyPriceList", args);
|
||||
};
|
||||
|
||||
export { goodsDetail, commodityDailyPriceList, orderPay };
|
||||
// 快速预定分页列表
|
||||
const quickBookingList = (args) => {
|
||||
return request.post("/hotelBiz/mainScene/quickBookingList", args);
|
||||
};
|
||||
|
||||
export { goodsDetail, commodityDailyPriceList, orderPay, quickBookingList };
|
||||
|
||||
Reference in New Issue
Block a user