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="pricing" />
<AmazonToolPageShell tool-id="follow">
<div class="main-content">
<aside class="left-panel left-panel--with-template">
@@ -257,13 +257,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 '@/pages/brand/components/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 { LISTING_FILTER_OPTIONS, type ListingFilterValue } from '@/pages/brand/components/listingFilters'
@@ -1774,7 +1775,7 @@ onUnmounted(() => {
<style scoped>
.module-page {
min-height: 100vh;
background: #1a1a1a;
background: #151a25;
}
.main-content {
@@ -1785,10 +1786,10 @@ onUnmounted(() => {
.left-panel {
width: 400px;
background: #1e1e1e;
background: #1c2333;
padding: 20px;
overflow-y: auto;
border-right: 1px solid #2a2a2a;
border-right: 1px solid #2e3a52;
}
.price-track-shop-candidates {
@@ -1800,25 +1801,25 @@ 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: 16px;
background: #252525;
background: #2e3a52;
margin-bottom: 20px;
}
.hint {
color: #888;
color: #5e6878;
font-size: 12px;
margin-bottom: 12px;
line-height: 1.5;
@@ -1840,7 +1841,7 @@ onUnmounted(() => {
}
.clean-placeholder {
color: #666;
color: #5e6878;
font-size: 12px;
display: flex;
flex-direction: column;
@@ -1848,24 +1849,24 @@ onUnmounted(() => {
}
.selected-files span:not(.more-line) {
color: #aaa;
color: #a0acbe;
}
.more-line {
color: #777;
color: #5e6878;
font-style: italic;
}
.text-muted {
color: #777;
color: #5e6878;
font-style: italic;
}
.mode-zone {
border: 1px dashed #3a3a3a;
border: 1px dashed #3e4a62;
border-radius: 10px;
padding: 14px 16px;
background: #252525;
background: #2e3a52;
margin-bottom: 20px;
display: flex;
flex-direction: column;
@@ -1891,12 +1892,12 @@ onUnmounted(() => {
}
.mode-check-text {
color: #ddd;
color: #c8d2e2;
font-weight: 600;
}
.mode-hint-inline {
color: #888;
color: #5e6878;
font-size: 12px;
}
@@ -1912,8 +1913,8 @@ onUnmounted(() => {
}
.loop-round-input :deep(.el-input__wrapper) {
background-color: #2a2a2a;
box-shadow: 0 0 0 1px #3a3a3a inset;
background-color: #2e3a52;
box-shadow: 0 0 0 1px #3e4a62 inset;
}
.tag-badge {
@@ -1953,14 +1954,14 @@ onUnmounted(() => {
.mode-status-text {
font-size: 12px;
color: #aaa;
color: #a0acbe;
}
.input-zone {
border: 1px dashed #3a3a3a;
border: 1px dashed #3e4a62;
border-radius: 10px;
padding: 16px;
background: #252525;
background: #2e3a52;
margin-bottom: 20px;
}
@@ -1977,9 +1978,9 @@ onUnmounted(() => {
.opt-btn {
padding: 8px 14px;
font-size: 13px;
color: #ccc;
background: #2a2a2a;
border: 1px solid #3a3a3a;
color: #c8d2e2;
background: #2e3a52;
border: 1px solid #3e4a62;
border-radius: 6px;
cursor: pointer;
white-space: nowrap;
@@ -2013,7 +2014,7 @@ onUnmounted(() => {
cursor: pointer;
user-select: none;
font-size: 12px;
color: #ccc;
color: #c8d2e2;
}
.country-check-input {
@@ -2032,13 +2033,13 @@ onUnmounted(() => {
border: 1px solid #333;
border-radius: 8px;
padding: 10px 12px;
background: #252525;
background: #2e3a52;
margin-bottom: 14px;
}
.country-order-caption {
font-size: 11px;
color: #777;
color: #5e6878;
margin-bottom: 8px;
}
@@ -2055,7 +2056,7 @@ onUnmounted(() => {
padding: 8px 10px;
background: #2c2c2c;
border-radius: 6px;
border: 1px solid #3a3a3a;
border: 1px solid #3e4a62;
cursor: grab;
user-select: none;
}
@@ -2066,19 +2067,19 @@ onUnmounted(() => {
}
.drag-handle {
color: #666;
color: #5e6878;
font-size: 12px;
letter-spacing: -2px;
}
.country-drag-label {
font-size: 12px;
color: #ccc;
color: #c8d2e2;
}
.country-pref-status {
font-size: 11px;
color: #888;
color: #5e6878;
margin-bottom: 10px;
}
@@ -2095,13 +2096,13 @@ onUnmounted(() => {
}
.listing-filter-row :deep(.el-select__wrapper) {
background-color: #2a2a2a;
box-shadow: 0 0 0 1px #3a3a3a inset;
background-color: #2e3a52;
box-shadow: 0 0 0 1px #3e4a62 inset;
}
.listing-filter-row :deep(.el-select__placeholder),
.listing-filter-row :deep(.el-select__selected-item) {
color: #ccc;
color: #c8d2e2;
}
@@ -2112,7 +2113,7 @@ onUnmounted(() => {
.empty-candidates {
color: #666;
color: #5e6878;
font-size: 13px;
padding: 16px;
border: 1px dashed #333;
@@ -2125,14 +2126,14 @@ onUnmounted(() => {
overflow: auto;
margin-bottom: 16px;
border-radius: 8px;
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
}
.candidate-table {
--el-table-bg-color: #252525;
--el-table-tr-bg-color: #252525;
--el-table-header-bg-color: #2a2a2a;
--el-table-text-color: #ccc;
--el-table-bg-color: #2e3a52;
--el-table-tr-bg-color: #2e3a52;
--el-table-header-bg-color: #2e3a52;
--el-table-text-color: #c8d2e2;
--el-table-border-color: #333;
}
@@ -2160,7 +2161,7 @@ onUnmounted(() => {
padding: 10px 18px;
font-size: 14px;
font-weight: 600;
color: #fff;
color: #f5f8fc;
background: #3498db;
border: none;
border-radius: 8px;
@@ -2187,7 +2188,7 @@ onUnmounted(() => {
.loading-msg {
margin-top: 12px;
font-size: 12px;
color: #777;
color: #5e6878;
line-height: 1.5;
}
@@ -2221,9 +2222,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 {
@@ -2231,7 +2232,7 @@ onUnmounted(() => {
}
.queue-debug-line {
color: #b8c1cc;
color: #a0acbe;
font-size: 12px;
line-height: 1.6;
margin-bottom: 8px;
@@ -2243,7 +2244,7 @@ onUnmounted(() => {
overflow: auto;
padding: 10px;
border-radius: 8px;
background: #141414;
background: #10141f;
color: #8fd3ff;
font-size: 11px;
line-height: 1.5;
@@ -2256,8 +2257,8 @@ onUnmounted(() => {
padding: 16px 20px;
font-size: 15px;
font-weight: 600;
color: #e0e0e0;
border-bottom: 1px solid #2a2a2a;
color: #f5f8fc;
border-bottom: 1px solid #2e3a52;
}
.task-list-wrap {
@@ -2275,31 +2276,31 @@ onUnmounted(() => {
.summary-card {
padding: 14px 16px;
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: 22px;
color: #eaf4ff;
color: #f5f8fc;
}
.summary-label {
font-size: 12px;
color: #8d8d8d;
color: #5e6878;
}
.subsection-title {
font-size: 13px;
color: #999;
color: #a0acbe;
margin: 8px 0 10px;
}
.empty-tasks {
color: #666;
color: #5e6878;
font-size: 13px;
padding: 16px;
text-align: center;
@@ -2316,8 +2317,8 @@ onUnmounted(() => {
.result-table {
--el-table-bg-color: #222;
--el-table-tr-bg-color: #222;
--el-table-header-bg-color: #2a2a2a;
--el-table-text-color: #ccc;
--el-table-header-bg-color: #2e3a52;
--el-table-text-color: #c8d2e2;
--el-table-border-color: #333;
}
@@ -2325,18 +2326,18 @@ onUnmounted(() => {
.fail { color: #e67e22; }
.result-list-wrap {
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 10px;
background: #1e1e1e;
background: #1c2333;
min-height: 200px;
margin-top: 8px;
}
.result-list-header {
padding: 12px 16px;
border-bottom: 1px solid #2a2a2a;
border-bottom: 1px solid #2e3a52;
font-size: 14px;
color: #ddd;
color: #c8d2e2;
}
.result-subsection {
@@ -2345,7 +2346,7 @@ onUnmounted(() => {
.result-subsection-title {
font-size: 12px;
color: #888;
color: #5e6878;
margin-bottom: 8px;
}
@@ -2361,7 +2362,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;
@@ -2375,13 +2376,13 @@ onUnmounted(() => {
.id {
font-weight: 600;
color: #e0e0e0;
color: #f5f8fc;
font-size: 13px;
}
.files {
font-size: 12px;
color: #888;
color: #5e6878;
}
.task-right {
@@ -2451,7 +2452,7 @@ onUnmounted(() => {
.left-panel {
width: 100%;
border-right: none;
border-bottom: 1px solid #2a2a2a;
border-bottom: 1px solid #2e3a52;
}
.pr-summary {