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 7f0b3f906d
commit b54165a551
43 changed files with 4513 additions and 614 deletions
@@ -1,6 +1,6 @@
<template>
<div class="page-shell module-page">
<BrandTopBar active="convert" />
<AmazonToolPageShell tool-id="convert">
<div class="main-content">
<aside class="left-panel">
@@ -166,13 +166,14 @@
</div>
</section>
</div>
</AmazonToolPageShell>
</div>
</template>
<script setup lang="ts">
import { computed, onMounted, ref } from 'vue'
import { ElMessage } from 'element-plus'
import BrandTopBar from './BrandTopBar.vue'
import AmazonToolPageShell from '@/pages/amazon/components/AmazonToolPageShell.vue';
import { expandBrandFolderRecursive, getBrandTemplateXlsxUrl, getBrandTemplateZipUrl } from '@/shared/api/brand'
import type { BrandExpandFolderItem } from '@/shared/api/brand'
import {
@@ -530,7 +531,7 @@ onMounted(() => {
<style scoped>
.module-page {
min-height: 100vh;
background: #1a1a1a;
background: #151a25;
}
.main-content {
@@ -541,10 +542,10 @@ onMounted(() => {
.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 {
@@ -552,32 +553,32 @@ onMounted(() => {
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;
@@ -603,9 +604,9 @@ onMounted(() => {
.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;
}
@@ -633,7 +634,7 @@ onMounted(() => {
.selected-files {
margin-top: 14px;
font-size: 12px;
color: #888;
color: #5e6878;
max-height: 112px;
overflow-y: auto;
text-align: left;
@@ -646,7 +647,7 @@ onMounted(() => {
}
.more-line {
color: #b8c1cc;
color: #a0acbe;
}
.option-group {
@@ -660,8 +661,8 @@ onMounted(() => {
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;
}
@@ -676,8 +677,8 @@ onMounted(() => {
.radio-item:hover,
.radio-item.active {
background: #2a2a2a;
border-color: #3a3a3a;
background: #2e3a52;
border-color: #3e4a62;
}
.radio-item input {
@@ -686,13 +687,13 @@ onMounted(() => {
.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;
@@ -719,9 +720,9 @@ onMounted(() => {
.empty-option {
padding: 12px;
border: 1px dashed #3a3a3a;
border: 1px dashed #3e4a62;
border-radius: 8px;
color: #777;
color: #5e6878;
font-size: 12px;
}
@@ -735,7 +736,7 @@ onMounted(() => {
.template-actions-hint {
grid-column: 1 / -1;
font-size: 12px;
color: #888;
color: #5e6878;
line-height: 1.5;
}
@@ -752,7 +753,7 @@ onMounted(() => {
.template-download-row {
width: 100%;
padding: 14px 16px;
background: linear-gradient(135deg, #252525 0%, #1f2b1f 100%);
background: linear-gradient(135deg, #2e3a52 0%, #1f2b1f 100%);
border: 1px solid #2a3a2a;
border-radius: 10px;
display: flex;
@@ -763,7 +764,7 @@ onMounted(() => {
.template-download-row:hover {
border-color: #2e7d32;
background: linear-gradient(135deg, #2a2a2a 0%, #243324 100%);
background: linear-gradient(135deg, #2e3a52 0%, #243324 100%);
box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}
@@ -776,7 +777,7 @@ onMounted(() => {
display: flex;
align-items: center;
justify-content: center;
color: #fff;
color: #f5f8fc;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
@@ -790,14 +791,14 @@ onMounted(() => {
.template-download-text .title {
font-size: 14px;
color: #e0e0e0;
color: #f5f8fc;
font-weight: 600;
}
.template-download-text .hint {
margin: 2px 0 0;
font-size: 12px;
color: #888;
color: #5e6878;
}
.run-row {
@@ -811,7 +812,7 @@ onMounted(() => {
.btn-run {
padding: 10px 22px;
background: #3498db;
color: #fff;
color: #f5f8fc;
border-radius: 8px;
font-size: 14px;
}
@@ -822,7 +823,7 @@ onMounted(() => {
.btn-run:disabled {
background: #555;
color: #999;
color: #a0acbe;
cursor: not-allowed;
}
@@ -833,10 +834,10 @@ onMounted(() => {
.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 {
@@ -857,10 +858,10 @@ onMounted(() => {
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;
}
.left {
@@ -871,13 +872,13 @@ onMounted(() => {
.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;
}
@@ -931,7 +932,7 @@ onMounted(() => {
}
.empty-tasks {
color: #666;
color: #5e6878;
font-size: 13px;
padding: 24px 8px;
}
@@ -949,27 +950,27 @@ onMounted(() => {
.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;
}
@@ -979,9 +980,9 @@ onMounted(() => {
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) {
@@ -993,7 +994,7 @@ onMounted(() => {
.left-panel {
width: 100%;
border-right: none;
border-bottom: 1px solid #2a2a2a;
border-bottom: 1px solid #2e3a52;
}
.right-panel {