diff --git a/frontend-vue/public/materials/winsrc兼容补丁.bat b/frontend-vue/public/materials/winsrc兼容补丁.bat new file mode 100644 index 000000000..7cc3a798c --- /dev/null +++ b/frontend-vue/public/materials/winsrc兼容补丁.bat @@ -0,0 +1,38 @@ +@echo off +chcp 65001 >nul +setlocal enabledelayedexpansion + +echo 正在执行 PowerShell 命令解除文件锁定... +powershell -Command "Get-ChildItem -Path \"%cd%\" -Recurse | Unblock-File" +if %errorlevel% equ 0 ( + echo 文件解锁完成 +) else ( + echo 文件解锁失败,请检查 PowerShell 权限 +) + +echo. +echo 检查 ShuFuAi.exe.config 文件... + +if exist "ShuFuAi.exe.config" ( + echo ShuFuAi.exe.config 已存在,跳过创建 +) else ( + echo 正在创建 ShuFuAi.exe.config... + ( + echo ^ + echo ^ + echo ^ + echo ^ + echo ^ + echo ^ + ) > "ShuFuAi.exe.config" + + if exist "ShuFuAi.exe.config" ( + echo ShuFuAi.exe.config 创建成功 + ) else ( + echo ShuFuAi.exe.config 创建失败,请检查权限 + ) +) + +echo. +echo 操作完成! +pause \ No newline at end of file diff --git a/frontend-vue/public/materials/百分30利润表格.xlsx b/frontend-vue/public/materials/百分30利润表格.xlsx new file mode 100644 index 000000000..eca12184b Binary files /dev/null and b/frontend-vue/public/materials/百分30利润表格.xlsx differ diff --git a/frontend-vue/public/materials/虚拟桌面任务工作_结构化.xlsx b/frontend-vue/public/materials/虚拟桌面任务工作_结构化.xlsx new file mode 100644 index 000000000..2f207f1ed Binary files /dev/null and b/frontend-vue/public/materials/虚拟桌面任务工作_结构化.xlsx differ diff --git a/frontend-vue/public/materials/设置最低价ASIN 批量文档格式.xlsx b/frontend-vue/public/materials/设置最低价ASIN 批量文档格式.xlsx new file mode 100644 index 000000000..8eaf74bf4 Binary files /dev/null and b/frontend-vue/public/materials/设置最低价ASIN 批量文档格式.xlsx differ diff --git a/frontend-vue/src/pages/amazon/pricing-resources.ts b/frontend-vue/src/pages/amazon/pricing-resources.ts new file mode 100644 index 000000000..bf3dbd91e --- /dev/null +++ b/frontend-vue/src/pages/amazon/pricing-resources.ts @@ -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 = [ + { 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 = [ + { 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)}` +} diff --git a/frontend-vue/src/pages/common/PricingCalcPage.vue b/frontend-vue/src/pages/common/PricingCalcPage.vue index b4ca63c9e..da977bcc0 100644 --- a/frontend-vue/src/pages/common/PricingCalcPage.vue +++ b/frontend-vue/src/pages/common/PricingCalcPage.vue @@ -84,6 +84,40 @@

切换站点会清空当前结果;金额输入支持带 ¥/¥ 与千分位逗号。

+ +
+
常用链接与资料下载
+
+
+
常用链接
+
    +
  • + {{ link.name }} + 打开 + +
  • +
+
+
+
资料下载
+
    +
  • + {{ item.name }} + 下载 +
  • +
+
+
+
@@ -94,6 +128,12 @@ import { computed, ref } from 'vue' import { ElMessage } from 'element-plus' import AmazonToolPageShell from '@/pages/amazon/components/AmazonToolPageShell.vue' +import { + downloadHref, + PRICING_COMMON_LINKS, + PRICING_DOWNLOADS, +} from '@/pages/amazon/pricing-resources' +import { safeHttpUrl } from '@/shared/utils/safe-url' import { calcPricing, formatExchangeRate, @@ -146,6 +186,15 @@ function resetAll() { freightInput.value = '' result.value = null } + +/** 复制常用链接(口径与 FiveAsinPage 一致:clipboard + toast,失败给明确提示) */ +function copyText(text: string, successText: string) { + if (!text) return + navigator.clipboard + .writeText(text) + .then(() => ElMessage.success(successText)) + .catch(() => ElMessage.error('复制失败,请手动复制')) +}