= [
+ { 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('复制失败,请手动复制'))
+}