feat: 对接了首页的接口

This commit is contained in:
2026-04-28 22:47:10 +08:00
parent c35a97d6da
commit 3b0fb23a5c
5 changed files with 104 additions and 21 deletions

View File

@@ -1,5 +1,20 @@
import request from "../base/request";
/// 首页tab场景数据
function homeTabsData(args) {
return request.post("/hotelBiz/mainScene/queryTagListWithCache", args);
}
/// 首页tab场景下内容数据
function homeTabContentData(args) {
return request.post("/hotelBiz/mainScene/queryContentListWithCache", args);
}
/// 快速问题列表
function homeQuickQuestionData(args) {
return request.post("/hotelBiz/mainScene/queryQuickQuestionListWithCache", args);
}
/// 主页数据
function mainPageData(args) {
return request.post("/hotelBiz/mainScene/mainPageData", args);
@@ -16,4 +31,11 @@ function discoveryCradComponent() {
return request.get("/hotelBiz/mainScene/discoveryComponent", {});
}
export { mainPageData, quickBookingComponent, discoveryCradComponent };
export {
homeTabsData,
homeTabContentData,
homeQuickQuestionData,
mainPageData,
quickBookingComponent,
discoveryCradComponent
};

View File

@@ -7,7 +7,7 @@ import { getServiceUrl } from "../api/GetServiceUrlApi";
const versionValue = "1.1.1";
/// 是否是测试版本, 测试版本为true 发布版本为false
const developVersion = false;
const developVersion = true;
// 获取服务地址
const getEvnUrl = async () => {