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="similar-asin" />
<AmazonToolPageShell tool-id="source">
<div class="main-content">
<aside class="left-panel left-panel--with-template">
@@ -181,13 +181,14 @@
</section>
</div>
</AmazonToolPageShell>
</div>
</template>
<script setup lang="ts">
import { computed, onMounted, onUnmounted, ref } from 'vue'
import { ElMessage } from 'element-plus'
import BrandTopBar from '@/pages/brand/components/BrandTopBar.vue'
import AmazonToolPageShell from '@/pages/amazon/components/AmazonToolPageShell.vue';
import ModuleTemplateDownload from '@/shared/components/ModuleTemplateDownload.vue'
import {
activateSimilarAsinTask,
@@ -1126,7 +1127,7 @@ onUnmounted(() => {
<style scoped>
.module-page {
min-height: 100vh;
background: #1a1a1a;
background: #151a25;
}
.main-content {
@@ -1137,16 +1138,16 @@ onUnmounted(() => {
.left-panel {
width: 400px;
background: #1e1e1e;
background: #1c2333;
padding: 20px;
overflow-y: auto;
border-right: 1px solid #2a2a2a;
border-right: 1px solid #2e3a52;
}
.right-panel {
flex: 1;
min-width: 0;
background: #1a1a1a;
background: #151a25;
display: flex;
flex-direction: column;
}
@@ -1154,15 +1155,15 @@ onUnmounted(() => {
.section-title,
.subsection-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: 18px;
background: #252525;
background: #2e3a52;
margin-bottom: 18px;
}
@@ -1171,7 +1172,7 @@ onUnmounted(() => {
padding: 14px 16px;
border: 1px solid #2f3a34;
border-radius: 10px;
background: linear-gradient(135deg, #222a25, #202020);
background: linear-gradient(135deg, #222a25, #222b3d);
}
.aliprice-card {
@@ -1187,7 +1188,7 @@ onUnmounted(() => {
grid-template-columns: 44px minmax(0, 1fr);
align-items: center;
gap: 10px;
color: #bbb;
color: #a0acbe;
font-size: 13px;
}
@@ -1204,7 +1205,7 @@ onUnmounted(() => {
border-radius: 6px;
outline: none;
background: #1b1b1b;
color: #ddd;
color: #c8d2e2;
font: inherit;
}
@@ -1253,7 +1254,7 @@ onUnmounted(() => {
height: 24px;
flex: 0 0 auto;
border-radius: 999px;
background: #3a3a3a;
background: #3e4a62;
box-shadow: inset 0 0 0 1px #4b4b4b;
transition: background .2s ease, box-shadow .2s ease;
}
@@ -1284,7 +1285,7 @@ onUnmounted(() => {
.loading-msg,
.files,
.muted {
color: #888;
color: #5e6878;
font-size: 12px;
line-height: 1.5;
}
@@ -1316,14 +1317,14 @@ onUnmounted(() => {
.opt-btn {
padding: 8px 14px;
color: #ccc;
background: #2a2a2a;
border: 1px solid #3a3a3a;
color: #c8d2e2;
background: #2e3a52;
border: 1px solid #3e4a62;
}
.btn-run {
padding: 10px 18px;
color: #fff;
color: #f5f8fc;
background: #3498db;
font-weight: 600;
}
@@ -1339,7 +1340,7 @@ onUnmounted(() => {
.selected-files {
margin-top: 14px;
color: #999;
color: #a0acbe;
font-size: 12px;
word-break: break-all;
}
@@ -1353,10 +1354,10 @@ onUnmounted(() => {
.queue-payload {
margin-top: 14px;
padding: 12px;
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 8px;
background: #202020;
color: #b8c1cc;
background: #222b3d;
color: #a0acbe;
font-size: 12px;
}
@@ -1369,10 +1370,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 {
@@ -1390,27 +1391,27 @@ onUnmounted(() => {
.summary-card {
padding: 14px 16px;
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 8px;
background: #1e1e1e;
background: #1c2333;
}
.summary-card strong {
display: block;
margin-top: 8px;
color: #eaf4ff;
color: #f5f8fc;
font-size: 22px;
}
.summary-label {
color: #8d8d8d;
color: #5e6878;
font-size: 12px;
}
.result-list-wrap {
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 8px;
background: #1e1e1e;
background: #1c2333;
min-height: 180px;
margin: 0 0 16px;
}
@@ -1419,13 +1420,13 @@ onUnmounted(() => {
display: flex;
justify-content: space-between;
padding: 12px 16px;
border-bottom: 1px solid #2a2a2a;
color: #ddd;
border-bottom: 1px solid #2e3a52;
color: #c8d2e2;
font-size: 14px;
}
.empty-tasks {
color: #666;
color: #5e6878;
font-size: 13px;
padding: 18px;
text-align: center;
@@ -1443,7 +1444,7 @@ onUnmounted(() => {
justify-content: space-between;
gap: 12px;
padding: 12px 14px;
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 8px;
margin-bottom: 8px;
background: #222;
@@ -1455,7 +1456,7 @@ onUnmounted(() => {
}
.id {
color: #e0e0e0;
color: #f5f8fc;
font-size: 13px;
font-weight: 600;
}
@@ -1490,7 +1491,7 @@ onUnmounted(() => {
.status.pending {
background: rgba(149, 165, 166, .18);
color: #bdc3c7;
color: #a0acbe;
}
.result-hint {
@@ -1516,7 +1517,7 @@ onUnmounted(() => {
height: 8px;
border-radius: 999px;
overflow: hidden;
background: #303030;
background: #333f55;
border: 1px solid #3b3b3b;
}
@@ -1535,7 +1536,7 @@ onUnmounted(() => {
.download {
padding: 6px 10px;
color: #d6ecff;
color: #c8d2e2;
background: rgba(52, 152, 219, .18);
}
@@ -1554,7 +1555,7 @@ onUnmounted(() => {
.left-panel {
width: 100%;
border-right: none;
border-bottom: 1px solid #2a2a2a;
border-bottom: 1px solid #2e3a52;
}
.clean-result-summary {