feat(phase-5): 后管京东数据库接口与页面+用户端采集入口——v1.4 Phase 5

This commit is contained in:
2026-11-14 12:47:08 +08:00
parent 6ce995f19e
commit ff859d25bc
42 changed files with 4839 additions and 37 deletions
@@ -132,6 +132,13 @@ export const TOOL_GROUPS: ReadonlyArray<ToolGroup> = [
href: '/convert',
permissionKeys: ['convert'],
},
{
id: 'jd',
name: '京东采集',
desc: '采集京东店铺商品列表与详情全部属性,同步到后台京东数据库',
href: '/jd-collect',
permissionKeys: ['jd-collect', 'jd_collect'],
},
],
},
{
@@ -280,6 +287,7 @@ export const TOOL_ICON_GRADIENTS: Record<string, string> = {
shop: 'linear-gradient(180deg, #93C5FD, #3B82F6)',
purchase: 'linear-gradient(180deg, #C4B5FD, #8B5CF6)',
erp: 'linear-gradient(180deg, #F9A8D4, #EC4899)',
jd: 'linear-gradient(180deg, #FCA5A5, #DC2626)',
}
/**
@@ -327,6 +335,8 @@ export const TOOL_ICON_SHAPES: Record<string, string> = {
purchase: '<path d="M10 14 L34 14 L30 34 L14 34 Z"/><line x1="34" y1="14" x2="40" y2="14"/><line x1="40" y1="14" x2="38" y2="20"/><circle class="fill" cx="19" cy="39" r="3"/><circle class="fill" cx="33" cy="39" r="3"/>',
// ERP:网格
erp: '<rect x="8" y="8" width="32" height="32"/><line x1="24" y1="8" x2="24" y2="40"/><line x1="8" y1="24" x2="40" y2="24"/>',
// 京东采集:商品袋
jd: '<path d="M12 16 L36 16 L34 38 L14 38 Z"/><path d="M19 16 A 5 6 0 0 1 29 16"/><circle class="fill" cx="19" cy="26" r="2"/><circle class="fill" cx="29" cy="26" r="2"/>',
}
export const TOOL_MAP: ReadonlyMap<string, ToolInfo> = new Map(
@@ -349,6 +359,7 @@ export const TOOL_DETAILS: Readonly<Record<string, string>> = {
qasin: '通过店小蜜导出出单 ASIN,上传后台,时不时排查是否还在店铺售卖,确保优质数据时刻在店。',
scrape:
'没排名、久未出单数据可优化删除;获取店铺所有数据的排名、品牌和销售情况。半个月到一个月复查一次品牌,确保数据没有被注册。',
jd: '在本机已登录京麦的窗口里采集店铺商品(列表 + 详情全部属性 + 图片),同步到后台「京东数据库」。任务由本机客户端执行,提交后保持客户端在线。',
}
export type VisibleGroup = ToolGroup & { tools: ToolInfo[] }