refactor: 清理废弃业务模块并更新全栈配置
- 移除后端产品、目的地、活动专题等废弃模块的数据库表与业务代码,删除冗余API接口 - 删除小程序端详情页、线路组件等冗余代码,移除搜索工具与测试用例,调整导航逻辑 - 清理管理端废弃的类型定义、编辑器与测试代码 - 更新项目文档,修正模块维护说明与接口文档内容
This commit is contained in:
1 parent
72e6071bb1
commit
548f91c37f
80 files changed
+953
-12702
No files matched your search
@@ -5,7 +5,7 @@ export type HomeExperience = {
|
||||
title: string;
|
||||
englishTitle: string;
|
||||
image: string;
|
||||
searchKeyword: string;
|
||||
demandKeyword: string;
|
||||
};
|
||||
|
||||
export const homeExperienceMocks: HomeExperience[] = [
|
||||
@@ -16,7 +16,7 @@ export const homeExperienceMocks: HomeExperience[] = [
|
||||
title: "悬崖瀑降",
|
||||
englishTitle: "WATERFALL DESCENT",
|
||||
image: "https://genk.mediacdn.vn/139269124445442048/2024/4/27/10-23-sinkhole-1714189653945948438879.jpg",
|
||||
searchKeyword: "悬崖瀑降",
|
||||
demandKeyword: "悬崖瀑降",
|
||||
},
|
||||
{
|
||||
id: "cave-exploration",
|
||||
@@ -25,6 +25,6 @@ export const homeExperienceMocks: HomeExperience[] = [
|
||||
title: "森林&探洞",
|
||||
englishTitle: "CAVE EXPLORATION",
|
||||
image: "https://www.zurnal24.si/media/img/5e/d5/9526a56dba168aa136f3.jpeg",
|
||||
searchKeyword: "地心探险",
|
||||
demandKeyword: "地心探险",
|
||||
},
|
||||
];
|
||||
@@ -4,7 +4,7 @@ export type HomeTeamBuilding = {
|
||||
title: string;
|
||||
description: string;
|
||||
image: string;
|
||||
searchKeyword: string;
|
||||
demandKeyword: string;
|
||||
};
|
||||
|
||||
export const homeTeamBuildingMocks: HomeTeamBuilding[] = [
|
||||
@@ -14,7 +14,7 @@ export const homeTeamBuildingMocks: HomeTeamBuilding[] = [
|
||||
title: "山野挑战,共创极境",
|
||||
description: "洞穴、瀑降与协作,适合 10-30 人。",
|
||||
image: "https://dimg04.c-ctrip.com/images/1mh0412000njfr1ot9453_W_640_10000.jpg?proc=autoorient",
|
||||
searchKeyword: "户外团建",
|
||||
demandKeyword: "户外团建",
|
||||
},
|
||||
{
|
||||
id: "canyon-teamwork",
|
||||
@@ -22,7 +22,7 @@ export const homeTeamBuildingMocks: HomeTeamBuilding[] = [
|
||||
title: "峡谷溯溪,默契同行",
|
||||
description: "溯溪与分组协作,兼顾参与感与安全。",
|
||||
image: "https://dimg04.c-ctrip.com/images/0EQ5712000ca7t504EC0E_W_640_10000.jpg?proc=autoorient",
|
||||
searchKeyword: "峡谷团建",
|
||||
demandKeyword: "峡谷团建",
|
||||
},
|
||||
{
|
||||
id: "village-gathering",
|
||||
@@ -30,6 +30,6 @@ export const homeTeamBuildingMocks: HomeTeamBuilding[] = [
|
||||
title: "苗寨共聚,认识彼此",
|
||||
description: "夜游、长桌宴与文化体验,适合团建收尾。",
|
||||
image: "https://p6.itc.cn/q_70/images03/20200918/df728d2b79d943da869333e2ea2c92c8.jpeg",
|
||||
searchKeyword: "贵州团建",
|
||||
demandKeyword: "贵州团建",
|
||||
},
|
||||
];
|
||||
@@ -2,7 +2,7 @@ export type HomeWildArchive = {
|
||||
id: string;
|
||||
title: string;
|
||||
image: string;
|
||||
searchKeyword: string;
|
||||
demandKeyword: string;
|
||||
};
|
||||
|
||||
export const homeWildArchiveMocks: HomeWildArchive[] = [
|
||||
@@ -10,24 +10,24 @@ export const homeWildArchiveMocks: HomeWildArchive[] = [
|
||||
id: "hundred-meter-descent",
|
||||
title: "百米自降",
|
||||
image: "https://genk.mediacdn.vn/139269124445442048/2024/4/27/10-23-sinkhole-1714189653945948438879.jpg",
|
||||
searchKeyword: "悬崖瀑降",
|
||||
demandKeyword: "悬崖瀑降",
|
||||
},
|
||||
{
|
||||
id: "shilong-cave",
|
||||
title: "石龙洞",
|
||||
image: "https://www.zurnal24.si/media/img/5e/d5/9526a56dba168aa136f3.jpeg",
|
||||
searchKeyword: "地心探险",
|
||||
demandKeyword: "地心探险",
|
||||
},
|
||||
{
|
||||
id: "cliff-current",
|
||||
title: "绝壁迎流",
|
||||
image: "https://q9.itc.cn/q_70/images03/20250810/b62f5afc191a4947a66e6b32721b0235.jpeg",
|
||||
searchKeyword: "峡谷探险",
|
||||
demandKeyword: "峡谷探险",
|
||||
},
|
||||
{
|
||||
id: "canyon-streaming",
|
||||
title: "峡谷溯溪",
|
||||
image: "https://dimg04.c-ctrip.com/images/0EQ5712000ca7t504EC0E_W_640_10000.jpg?proc=autoorient",
|
||||
searchKeyword: "峡谷溯溪",
|
||||
demandKeyword: "峡谷溯溪",
|
||||
},
|
||||
];
|
||||
@@ -23,7 +23,7 @@ import HomeVehicleGrid from "./components/HomeVehicleGrid.vue";
|
||||
import { homeExperienceMocks, type HomeExperience } from "./components/homeExperienceData";
|
||||
import { homeTeamBuildingMocks, type HomeTeamBuilding as HomeTeamBuildingItem } from "./components/homeTeamBuildingData";
|
||||
import { homeWildArchiveMocks, type HomeWildArchive } from "./components/homeWildArchivesData";
|
||||
import { goDemand, goSearch } from "@/lib/navigation";
|
||||
import { goDemand } from "@/lib/navigation";
|
||||
import { appState, loadAppData } from "@/lib/store";
|
||||
|
||||
const vehicleOptions = computed(() => appState.data.vehicleOptions);
|
||||
@@ -33,22 +33,22 @@ onShow(() => {
|
||||
});
|
||||
|
||||
function openHero(title: string) {
|
||||
goSearch(title);
|
||||
goDemand(title);
|
||||
}
|
||||
|
||||
function openExperience(item: HomeExperience) {
|
||||
goSearch(item.searchKeyword);
|
||||
goDemand(item.demandKeyword);
|
||||
}
|
||||
|
||||
function openWildArchive(item: HomeWildArchive) {
|
||||
goSearch(item.searchKeyword);
|
||||
goDemand(item.demandKeyword);
|
||||
}
|
||||
|
||||
function openWildArchives() {
|
||||
goSearch("极境视界");
|
||||
goDemand("极境视界");
|
||||
}
|
||||
|
||||
function openTeamBuilding(item: HomeTeamBuildingItem) {
|
||||
goSearch(item.searchKeyword);
|
||||
goDemand(item.demandKeyword);
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user