From 6a52e24eb9ec78e5ae5e94e945909ef73da61506 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com>
Date: Sun, 22 Nov 2026 21:51:45 +0800
Subject: [PATCH] =?UTF-8?q?feat(web):=20=E4=BA=AC=E4=B8=9C=E5=B7=A5?=
=?UTF-8?q?=E5=85=B7=E5=8F=B0=E4=B8=89=E9=A1=B5=E5=A4=B4=E9=83=A8=E5=8A=A0?=
=?UTF-8?q?=E5=AF=86=E9=92=A5=E8=AE=BE=E7=BD=AE=E5=85=A5=E5=8F=A3=EF=BC=88?=
=?UTF-8?q?2026-11-22=20=E7=94=A8=E6=88=B7=E5=8F=A3=E5=BE=84=E3=80=8C?=
=?UTF-8?q?=E8=BF=99=E8=BE=B9=E4=B9=9F=E8=A6=81=E5=8A=A0=E5=AF=86=E9=92=A5?=
=?UTF-8?q?=E8=AE=BE=E7=BD=AE=E3=80=8D=EF=BC=8C=E4=BA=AC=E4=B8=9C=E4=B8=8A?=
=?UTF-8?q?=E6=9E=B6=20AI=20=E8=A1=A5=E5=80=BC=E8=A6=81=E8=AF=BB=E7=99=BB?=
=?UTF-8?q?=E5=BD=95=E7=94=A8=E6=88=B7=20LLM=20=E5=AF=86=E9=92=A5=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- BrandApiSecretSettingsButton 加可选 showProxy(默认 true,亚马逊侧现有调用零变化);透传面板既有 showProxy(708/771 行已按它条件保存/余额);副标题按 showProxy 派生(隐藏代理时不再提「代理设置保存在当前客户端」)
- JdConsolePage/JdCollectTab/JdPublishTab 头部 .top-right(铃铛与用户名之间)各插 ——京东特性无代理消费方,隐藏代理区防「没配代理影响京东采集吗」误判(铁律 27 同款)
- 弹窗/保存/检测/余额走既有 /newApi/api/user-secrets 链,零新端点零新权限 key
- 判据:jd-secret-entry.test.ts(三页头部精确匹配+按钮四钉)+jd-secret-entry.mount.test.ts(top-right 触发钮/showProxy 透传/副标题三用例);四支既有 JD mount 补 ApiSecretSettingsPanel stub 防真发 fetch(31 绿+mount 59 绿零噪声+vue-tsc rc=0)
随下一 app-web 窗上线
---
.../BrandApiSecretSettingsButton.vue | 22 ++++-
frontend-vue/src/pages/jd/JdCollectTab.vue | 2 +
frontend-vue/src/pages/jd/JdConsolePage.vue | 2 +
frontend-vue/src/pages/jd/JdPublishTab.vue | 2 +
frontend-vue/tests/jd-secret-entry.test.ts | 60 ++++++++++++
.../mount/jd-collect-progress.mount.test.ts | 2 +
.../jd-console-pending-menu.mount.test.ts | 2 +
.../mount/jd-console-permission.mount.test.ts | 2 +
.../mount/jd-publish-dispatch.mount.test.ts | 2 +
.../tests/mount/jd-secret-entry.mount.test.ts | 97 +++++++++++++++++++
10 files changed, 189 insertions(+), 4 deletions(-)
create mode 100644 frontend-vue/tests/jd-secret-entry.test.ts
create mode 100644 frontend-vue/tests/mount/jd-secret-entry.mount.test.ts
diff --git a/frontend-vue/src/pages/brand/components/BrandApiSecretSettingsButton.vue b/frontend-vue/src/pages/brand/components/BrandApiSecretSettingsButton.vue
index 7f0a04366..d60f078b3 100644
--- a/frontend-vue/src/pages/brand/components/BrandApiSecretSettingsButton.vue
+++ b/frontend-vue/src/pages/brand/components/BrandApiSecretSettingsButton.vue
@@ -17,11 +17,11 @@
-
+