feat(frontend-vue): 亚马逊运营工具台与新功能页接入——新版工具台(amazon-console+tool-catalog)、品牌检测/ASIN变体采集/查询ASIN 三个工具页 Vue 化并对接既有后端与桌面桥接;桌面首页/登录页 Vue 化(沿用旧视觉);补充 vc_*/get_device_id/save_file_from_url 桥类型、dev 代理;品牌默认勾选排名+FBM;修正 query-asin 标题

含未提交新版改造累积:Brand*Tab 套入工具台壳(AmazonToolPageShell/AmazonTopBar)与目录/权限联动。
This commit is contained in:
2026-09-07 11:06:05 +08:00
parent f6c44d1b92
commit d2301db292
43 changed files with 4513 additions and 614 deletions
@@ -1,6 +1,6 @@
<template>
<div class="page-shell module-page">
<BrandTopBar active="delete-brand" />
<AmazonToolPageShell tool-id="delasin">
<div class="main-content">
<aside class="left-panel left-panel--with-template">
@@ -208,13 +208,14 @@
</div>
</section>
</div>
</AmazonToolPageShell>
</div>
</template>
<script setup lang="ts">
import { computed, onMounted, onUnmounted, ref } from 'vue'
import { ElMessage } from 'element-plus'
import BrandTopBar from './BrandTopBar.vue'
import AmazonToolPageShell from '@/pages/amazon/components/AmazonToolPageShell.vue';
import ModuleTemplateDownload from '@/shared/components/ModuleTemplateDownload.vue'
import ZiniaoVersionSetting from '@/shared/components/ZiniaoVersionSetting.vue'
import { expandBrandFolderRecursive, type BrandExpandFolderItem } from '@/shared/api/brand'
@@ -1540,9 +1541,9 @@ onUnmounted(() => {
.queue-debug-card {
margin-top: 18px;
padding: 14px;
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 10px;
background: #202020;
background: #222b3d;
}
.queue-debug-title {
@@ -1550,7 +1551,7 @@ onUnmounted(() => {
}
.queue-debug-line {
color: #b8c1cc;
color: #a0acbe;
font-size: 12px;
line-height: 1.6;
margin-bottom: 8px;
@@ -1562,7 +1563,7 @@ onUnmounted(() => {
overflow: auto;
padding: 10px;
border-radius: 8px;
background: #141414;
background: #10141f;
color: #8fd3ff;
font-size: 12px;
line-height: 1.5;
@@ -1572,7 +1573,7 @@ onUnmounted(() => {
.module-page {
min-height: 100vh;
background: #1a1a1a;
background: #151a25;
}
.main-content {
@@ -1583,10 +1584,10 @@ onUnmounted(() => {
.left-panel {
width: 380px;
background: #1e1e1e;
background: #1c2333;
padding: 20px;
overflow-y: auto;
border-right: 1px solid #2a2a2a;
border-right: 1px solid #2e3a52;
}
.right-panel {
@@ -1594,32 +1595,32 @@ onUnmounted(() => {
display: flex;
flex-direction: column;
min-width: 0;
background: #1a1a1a;
background: #151a25;
}
.section-title {
font-size: 13px;
color: #bbb;
color: #a0acbe;
margin-bottom: 10px;
}
.upload-zone {
border: 1px dashed #3a3a3a;
border: 1px dashed #3e4a62;
border-radius: 10px;
padding: 24px;
text-align: center;
background: #252525;
background: #2e3a52;
margin-bottom: 20px;
transition: all 0.2s ease;
}
.upload-zone:hover {
border-color: #3498db;
background: #2a2a2a;
background: #2e3a52;
}
.hint {
color: #888;
color: #5e6878;
font-size: 13px;
margin-bottom: 12px;
line-height: 1.5;
@@ -1644,9 +1645,9 @@ onUnmounted(() => {
.opt-btn {
padding: 8px 16px;
font-size: 13px;
color: #ccc;
background: #2a2a2a;
border: 1px solid #3a3a3a;
color: #c8d2e2;
background: #2e3a52;
border: 1px solid #3e4a62;
border-radius: 6px;
}
@@ -1659,7 +1660,7 @@ onUnmounted(() => {
.selected-files {
margin-top: 14px;
font-size: 12px;
color: #888;
color: #5e6878;
max-height: 112px;
overflow-y: auto;
text-align: left;
@@ -1672,7 +1673,7 @@ onUnmounted(() => {
}
.more-line {
color: #b8c1cc;
color: #a0acbe;
}
.split-selected-files {
@@ -1692,16 +1693,16 @@ onUnmounted(() => {
cursor: pointer;
padding: 10px 12px;
border-radius: 8px;
background: #252525;
border: 1px solid #2a2a2a;
background: #2e3a52;
border: 1px solid #2e3a52;
margin-bottom: 8px;
transition: all 0.2s ease;
}
.radio-item:hover,
.radio-item.active {
background: #2a2a2a;
border-color: #3a3a3a;
background: #2e3a52;
border-color: #3e4a62;
}
.radio-item input {
@@ -1710,13 +1711,13 @@ onUnmounted(() => {
.label {
font-weight: 500;
color: #e0e0e0;
color: #f5f8fc;
font-size: 13px;
}
.desc {
font-size: 12px;
color: #888;
color: #5e6878;
margin-top: 2px;
line-height: 1.5;
font-weight: 400;
@@ -1733,7 +1734,7 @@ onUnmounted(() => {
.btn-run {
padding: 10px 22px;
background: #3498db;
color: #fff;
color: #f5f8fc;
border-radius: 8px;
font-size: 14px;
}
@@ -1744,7 +1745,7 @@ onUnmounted(() => {
.btn-run:disabled {
background: #555;
color: #999;
color: #a0acbe;
cursor: not-allowed;
}
@@ -1755,10 +1756,10 @@ onUnmounted(() => {
.panel-header {
padding: 16px 20px;
border-bottom: 1px solid #2a2a2a;
border-bottom: 1px solid #2e3a52;
font-size: 15px;
font-weight: 600;
color: #ddd;
color: #c8d2e2;
}
.task-list-wrap {
@@ -1779,10 +1780,10 @@ onUnmounted(() => {
justify-content: space-between;
gap: 16px;
padding: 14px 16px;
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 8px;
margin-bottom: 10px;
background: #1e1e1e;
background: #1c2333;
}
.split-result-item {
@@ -1803,19 +1804,19 @@ onUnmounted(() => {
.id {
display: inline-block;
font-weight: 600;
color: #e0e0e0;
color: #f5f8fc;
font-size: 13px;
}
.files {
font-size: 12px;
color: #888;
color: #5e6878;
margin-top: 4px;
}
.time {
font-size: 12px;
color: #666;
color: #5e6878;
margin-top: 2px;
}
@@ -1926,7 +1927,7 @@ onUnmounted(() => {
}
.empty-tasks {
color: #666;
color: #5e6878;
font-size: 13px;
padding: 24px 8px;
}
@@ -1944,27 +1945,27 @@ onUnmounted(() => {
.summary-card {
padding: 16px 18px;
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 10px;
background: #1e1e1e;
background: #1c2333;
}
.summary-card strong {
display: block;
margin-top: 8px;
font-size: 24px;
color: #eaf4ff;
color: #f5f8fc;
}
.summary-label {
font-size: 12px;
color: #8d8d8d;
color: #5e6878;
}
.result-list-wrap {
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 10px;
background: #1e1e1e;
background: #1c2333;
min-height: 260px;
}
@@ -1974,9 +1975,9 @@ onUnmounted(() => {
justify-content: space-between;
gap: 12px;
padding: 14px 16px;
border-bottom: 1px solid #2a2a2a;
border-bottom: 1px solid #2e3a52;
font-size: 14px;
color: #ddd;
color: #c8d2e2;
}
@media (max-width: 1100px) {
@@ -1988,7 +1989,7 @@ onUnmounted(() => {
.left-panel {
width: 100%;
border-right: none;
border-bottom: 1px solid #2a2a2a;
border-bottom: 1px solid #2e3a52;
}
.right-panel {