From 208583e14c56a9d7947ae96e9ac4e6d3965121ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Fri, 23 Oct 2026 21:56:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(common-tools):=20=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=8F=B0=E6=96=B0=E5=A2=9E=E5=B8=B8=E7=94=A8=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=88=86=E7=B1=BB=EF=BC=8C=E4=B8=89=E4=B8=AA=E6=A1=8C=E9=9D=A2?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E7=BD=91=E9=A1=B5=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - tool-catalog 最前插入「常用工具」组(brand_common_tools,23 工具·4 大分类), 三工具各自权限键:pricing-calc / five-asin / keyword-share - /pricing-calc:站点(英 GBP÷9、德法 EUR÷8)+ 买货价/运费 → 营业额/利润/ 利润率/换算汇率,公式与精度照抄桌面版,纯函数 node --test 钉住 - /five-asin:五国常量 + ASIN 10 位校验 → 亚马逊商品链接,window.open 与 :href 出口全部过 safeHttpUrl(url-outlet 棘轮),邮编一键复制 - /keyword-share:筛选/四级类目级联/统计卡/表格分页 200/标记与取消使用/ 添加/删除/随机抽词/共享记录,对接 keywordshare 后端九端点 - 顶栏与 BrandTopBar 导航同步;router 注册三路由;补 test:mount 脚本 (vitest mount 套件入口,与后管同口径) --- frontend-vue/package.json | 3 +- .../src/pages/amazon/AmazonConsolePage.vue | 16 +- .../amazon/components/AmazonToolPageShell.vue | 3 +- .../pages/amazon/components/AmazonTopBar.vue | 8 +- frontend-vue/src/pages/amazon/tool-catalog.ts | 45 +- .../pages/brand/components/BrandTopBar.vue | 9 + .../src/pages/common/FiveAsinPage.vue | 306 ++++++ .../src/pages/common/KeywordSharePage.vue | 911 ++++++++++++++++++ .../src/pages/common/PricingCalcPage.vue | 342 +++++++ frontend-vue/src/pages/common/five-asin.ts | 55 ++ frontend-vue/src/pages/common/pricing-calc.ts | 95 ++ frontend-vue/src/router/index.ts | 16 + frontend-vue/src/shared/api/java-modules.ts | 1 + .../shared/api/types/modules/keyword-share.ts | 290 ++++++ .../tests/amazon-tool-catalog.test.ts | 49 +- frontend-vue/tests/five-asin.test.ts | 48 + .../mount/keyword-share-page.mount.test.ts | 160 +++ frontend-vue/tests/pricing-calc.test.ts | 84 ++ 18 files changed, 2424 insertions(+), 17 deletions(-) create mode 100644 frontend-vue/src/pages/common/FiveAsinPage.vue create mode 100644 frontend-vue/src/pages/common/KeywordSharePage.vue create mode 100644 frontend-vue/src/pages/common/PricingCalcPage.vue create mode 100644 frontend-vue/src/pages/common/five-asin.ts create mode 100644 frontend-vue/src/pages/common/pricing-calc.ts create mode 100644 frontend-vue/src/shared/api/types/modules/keyword-share.ts create mode 100644 frontend-vue/tests/five-asin.test.ts create mode 100644 frontend-vue/tests/mount/keyword-share-page.mount.test.ts create mode 100644 frontend-vue/tests/pricing-calc.test.ts diff --git a/frontend-vue/package.json b/frontend-vue/package.json index 50795ef1e..1123d4a9c 100644 --- a/frontend-vue/package.json +++ b/frontend-vue/package.json @@ -7,7 +7,8 @@ "dev": "vite --host --port 5173", "build": "vue-tsc --noEmit && vite build", "preview": "vite preview", - "test": "node --test --test-force-exit --test-timeout=180000 tests/*.test.ts" + "test": "node --test --test-force-exit --test-timeout=180000 tests/*.test.ts", + "test:mount": "vitest run" }, "dependencies": { "axios": "^1.13.6", diff --git a/frontend-vue/src/pages/amazon/AmazonConsolePage.vue b/frontend-vue/src/pages/amazon/AmazonConsolePage.vue index 8781f7773..c09a9ebed 100644 --- a/frontend-vue/src/pages/amazon/AmazonConsolePage.vue +++ b/frontend-vue/src/pages/amazon/AmazonConsolePage.vue @@ -12,15 +12,15 @@ 运营辅助 · 数据安全 · 高效跟价
- 从采集、去重、查品到上架跟价,20 个工具按「前端 · 运营 · 后勤」三线组织,每条工具一句话讲清用途,标准流程一步不缺。 + 从换算、查询、采集、去重到上架跟价,23 个工具按「常用 · 前端 · 运营 · 后勤」四线组织,每条工具一句话讲清用途,标准流程一步不缺。
{{ asinError }}
+ +链接同时可点击与复制,浏览器拦截弹窗时用「复制链接」兜底。
+{{ addResultText }}
+切换站点会清空当前结果;金额输入支持带 ¥/¥ 与千分位逗号。
+