feat(common-tools): 定价换算页补常用链接与资料下载区

链接清单与桌面版资料页同源(2026-10-23 实测可达),4 个资料文件随
public/materials/ 部署(目录名避开 .gitignore 的 downloads/ 规则)。
This commit is contained in:
2026-10-23 22:38:06 +08:00
parent eb6dd9bf44
commit b5d08ed77e
7 changed files with 260 additions and 1 deletions
@@ -0,0 +1,41 @@
/**
* 定价利润换算页 · 常用链接与资料下载
*
* 链接清单源自桌面版 shufu_calc_app.py 的 PAGE_LINKS / 资料页(2026-10-23 实测可达),
* 下载文件随前端 public/materials/ 一并部署(源自「数富资料下载_独立版_v1.0.0」;
* 目录名避开 .gitignore 的 downloads/ 规则)。
*/
export type CommonLink = {
name: string
url: string
}
export type DownloadItem = {
name: string
/** public/materials/ 下的文件名(含空格/中文,渲染时 encodeURI) */
file: string
}
export const PRICING_COMMON_LINKS: ReadonlyArray<CommonLink> = [
{ name: 'Aliprice 1688 采集插件', url: 'https://www.aiprice.com/?ext_id=10100&channel=chrome_offline&platform=1688&version=4.0.5' },
{ name: '店小密导出设置', url: 'https://www.dianxiaomi.com/web/orderSetting/export' },
{ name: '数富AI BUG登记系统', url: 'https://bug.aishufu.top/bug-tracker/' },
{ name: '代理IP提取', url: 'https://www.jikip.com/user/extractapi' },
{ name: 'LLM 平台', url: 'https://ai.t8star.org/' },
{ name: '豆包CDN短链', url: 'https://aka.doubaocdn.com/s/O1DRPbr9rd#f=1' },
{ name: '紫鸟浏览器下载', url: 'https://www.ziniao.com/download/?from=97340' },
{ name: '无影下载', url: 'https://www.aliyun.com/product/wuying/download' },
{ name: 'WebView2 运行时', url: 'https://go.microsoft.com/fwlink/p/?LinkId=2124703' },
]
export const PRICING_DOWNLOADS: ReadonlyArray<DownloadItem> = [
{ name: 'winsrc兼容补丁.bat', file: 'winsrc兼容补丁.bat' },
{ name: '百分30利润表格.xlsx', file: '百分30利润表格.xlsx' },
{ name: '虚拟桌面任务工作_结构化.xlsx', file: '虚拟桌面任务工作_结构化.xlsx' },
{ name: '设置最低价ASIN 批量文档格式.xlsx', file: '设置最低价ASIN 批量文档格式.xlsx' },
]
export function downloadHref(file: string): string {
return `/materials/${encodeURI(file)}`
}