revert(common-tools): 回滚常用工具分类与三个工具页
按 2026-10-24 决定整体下线:工具目录分组、定价换算/五国ASIN/关键词共享 三页面与路由、资料下载区与测试全部移除;保留 package.json 的 test:mount 脚本(仓内测试基础设施,与后管同口径)。
This commit is contained in:
@@ -12,15 +12,15 @@
|
||||
<span class="hero-pill">运营辅助 · 数据安全 · 高效跟价</span>
|
||||
<h1 class="hero-title">让亚马逊运营,更清晰高效</h1>
|
||||
<p class="hero-sub">
|
||||
从换算、查询、采集、去重到上架跟价,23 个工具按「常用 · 前端 · 运营 · 后勤」四线组织,每条工具一句话讲清用途,标准流程一步不缺。
|
||||
从采集、去重、查品到上架跟价,20 个工具按「前端 · 运营 · 后勤」三线组织,每条工具一句话讲清用途,标准流程一步不缺。
|
||||
</p>
|
||||
<div class="hero-stats">
|
||||
<div class="stat">
|
||||
<strong style="color: #2dd4bf">23</strong>
|
||||
<strong style="color: #2dd4bf">20</strong>
|
||||
<span>个工具</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<strong style="color: #60a5fa">4</strong>
|
||||
<strong style="color: #60a5fa">3</strong>
|
||||
<span>大分类</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
@@ -128,7 +128,7 @@ import AmazonFooterBar from '@/pages/amazon/components/AmazonFooterBar.vue'
|
||||
import ToolIcon from '@/pages/amazon/components/ToolIcon.vue'
|
||||
import { TUTORIAL_DOWNLOAD_URL, resolveTutorialDownloadUrl } from '@/pages/amazon/download-btn'
|
||||
import { filterGroupsByPermission, filterWorkflowByPermission, TOOL_GROUPS, TOOL_MAP } from '@/pages/amazon/tool-catalog'
|
||||
import type { ToolGroup, ToolGroupKey, ToolInfo, VisibleGroup, WorkflowStep } from '@/pages/amazon/tool-catalog'
|
||||
import type { ToolGroup, ToolInfo, VisibleGroup, WorkflowStep } from '@/pages/amazon/tool-catalog'
|
||||
import { resolvePageHref } from '@/shared/page-prefix'
|
||||
import { isHttpUrl, safeHttpUrl } from '@/shared/utils/safe-url'
|
||||
import { prefetchRouteChunk } from '@/shared/route-prefetch'
|
||||
@@ -143,7 +143,7 @@ const visibleGroups = ref<VisibleGroup[]>(TOOL_GROUPS.map((group) => ({ ...group
|
||||
const permissionUnavailable = ref(false)
|
||||
const statusText = ref('')
|
||||
const statusType = ref<'normal' | 'error'>('normal')
|
||||
const activeCat = ref<ToolGroupKey>('front')
|
||||
const activeCat = ref<'front' | 'ops' | 'logi'>('front')
|
||||
let statusTimer: number | undefined
|
||||
|
||||
const currentGroup = computed(() => visibleGroups.value.find((g) => g.key === activeCat.value) ?? visibleGroups.value[0])
|
||||
@@ -249,15 +249,15 @@ async function onDownloadClick() {
|
||||
window.open(safeHttpUrl(url), '_blank', 'noopener')
|
||||
}
|
||||
|
||||
function onCatChange(key: ToolGroupKey) {
|
||||
function onCatChange(key: 'front' | 'ops' | 'logi') {
|
||||
activeCat.value = key
|
||||
history.replaceState(null, '', `#group-${key}`)
|
||||
}
|
||||
|
||||
function parseHashGroup() {
|
||||
const hash = window.location.hash.replace('#', '')
|
||||
const m = /^group-(common|front|ops|logi)$/.exec(hash)
|
||||
if (m) activeCat.value = m[1] as ToolGroupKey
|
||||
const m = /^group-(front|ops|logi)$/.exec(hash)
|
||||
if (m) activeCat.value = m[1] as 'front' | 'ops' | 'logi'
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
|
||||
Reference in New Issue
Block a user