refactor: 清理废弃业务模块并更新全栈配置

- 移除后端产品、目的地、活动专题等废弃模块的数据库表与业务代码,删除冗余API接口
- 删除小程序端详情页、线路组件等冗余代码,移除搜索工具与测试用例,调整导航逻辑
- 清理管理端废弃的类型定义、编辑器与测试代码
- 更新项目文档,修正模块维护说明与接口文档内容
This commit is contained in:
duanshuwen
2026-08-17 22:43:49 +08:00
parent 72e6071bb1
commit 548f91c37f
80 changed files with 953 additions and 12702 deletions

View File

@@ -75,37 +75,12 @@ async function probe(name, action) {
const results = [];
results.push(
await probe("search-click", async (page) => {
await page.locator(".icon-wrap").filter({ hasText: "搜索" }).first().click({ timeout: 10000 });
}),
);
results.push(
await probe("support-click", async (page) => {
await page.locator(".icon-wrap").filter({ hasText: "客服" }).first().click({ timeout: 10000 });
}),
);
results.push(
await probe("product-first-click", async (page) => {
for (let y = 0; y < 2400; y += 600) {
await page.evaluate((scrollY) => scrollTo(0, scrollY), y);
await page.waitForTimeout(500);
}
const item = page.locator(".diy_product_flex_item.expose_dom").filter({ hasText: "¥" }).first();
await item.scrollIntoViewIfNeeded();
await page.waitForTimeout(500);
await item.click({ timeout: 10000 });
}),
);
results.push(
await probe("bottom-destination-click", async (page) => {
await page.locator(".nav_bottom_item").filter({ hasText: "目的地" }).first().click({ timeout: 10000 });
}),
);
results.push(
await probe("bottom-manager-click", async (page) => {
await page.locator(".nav_bottom_item").filter({ hasText: "客户经理" }).first().click({ timeout: 10000 });
@@ -118,12 +93,6 @@ results.push(
}),
);
results.push(
await probe("bottom-order-click", async (page) => {
await page.locator(".nav_bottom_item").filter({ hasText: "订单" }).first().click({ timeout: 10000 });
}),
);
await fs.writeFile(path.join(outDir, "probe-summary.json"), JSON.stringify(results, null, 2));
console.log(JSON.stringify(results, null, 2));
await browser.close();