401 lines
13 KiB
Vue
401 lines
13 KiB
Vue
<script setup lang="ts">
|
||
import { useHead } from '@vueuse/head';
|
||
import { PROTECTED_TOOLS, getMachineId } from '@/tools/license/license';
|
||
import { useToolStore } from '@/tools/tools.store';
|
||
|
||
useHead({ title: '授权应用 - IT-TOOLS-PRO' });
|
||
|
||
const router = useRouter();
|
||
|
||
/** 「前往购买卡密」→ 站内支付页 /buy */
|
||
function goBuy(): void {
|
||
router.push('/buy');
|
||
}
|
||
|
||
interface Feature {
|
||
path: string;
|
||
name: string;
|
||
icon: string;
|
||
points: string[];
|
||
}
|
||
|
||
/** 授权功能营销卖点:key = 工具 path。
|
||
* ★ 新开发的授权应用只要加进 license.ts 的 PROTECTED_TOOLS,本页会自动出现,
|
||
* 没写文案的会用工具自身的名称/描述兜底(想更好看再往这张表里补 icon + points)。
|
||
* (2026-11-13 用户要求:授权应用开发完必须自动同步到本页,禁止再手工维护清单) */
|
||
const MARKETING: Record<string, { icon: string; points: string[] }> = {
|
||
'/translator': { icon: '🌐', points: ['文本翻译 16 种语言,自动识别源语言', '中英互译走本地开源引擎不限流,其他语种自动切备用线路', '文档整篇翻译(中英),扫描件/图片自动 OCR,译文可下载'] },
|
||
'/image-ocr': { icon: '📷', points: ['本地 OCR 引擎,中文识别准确率 99%+', '截图、扫描件、照片文字一键提取', '逐行输出带置信度,支持粘贴图片'] },
|
||
'/pdf-ocr': { icon: '📄', points: ['逐页 OCR 中英文 PDF(最多 50 页)', '每页预览、翻页查看识别结果', '一键复制全部或下载 TXT'] },
|
||
'/ai-retouch': { icon: '🎨', points: ['去水印/修复:涂抹区域智能填充', '抠图去背景、4x 超分辨率、人脸修复', '本地 AI 模型推理,单张 10 秒级出图'] },
|
||
'/pdf-tools': { icon: '📑', points: ['合并/拆分/旋转/重排/压缩等 11 种常用处理', '加密/解密/加水印/提取文本/加页码/转图片', '全程浏览器本地处理,文件不上传服务器'] },
|
||
'/image-tools': { icon: '🖼️', points: ['压缩/转换/尺寸/裁剪/旋转/滤镜等 12 种常用处理', '打码、加水印、拼接、EXIF 查看编辑', '全程浏览器本地处理,图片不上传服务器'] },
|
||
'/video-tools': { icon: '🎥', points: ['格式转换/压缩/裁剪/旋转/变速/消音/提取音频/截图/GIF互转等 11 个工具', '服务端 ffmpeg 高速转码,最大支持 2GB 视频', '处理完在线预览,一键下载结果'] },
|
||
'/audio-tools': { icon: '🎙️', points: ['文字转音频:本地神经 TTS,离线可用速度快', '音频转文字:Whisper 引擎,中英日粤自动检测带时间轴', '声音克隆:5 秒样本克隆音色(即将上线)'] },
|
||
'/doc-convert': { icon: '🔄', points: ['Word/PDF/TXT/RTF/ODT/EPUB/MOBI/AZW3/HTML 九种格式互转', '自建转换引擎,批量转换打包下载', '单文件最快几秒完成'] },
|
||
'/text-to-image': { icon: '🔤', points: ['输入文字一键排版成图,字体/颜色/尺寸/背景可调', '适合做封面、标语、社媒配图,出图即下载', '本地渲染不联网,批量出图不排队'] },
|
||
'/ai-image-lab': { icon: '🪄', points: ['智能抠图去背景,发丝级边缘', 'AI 无损放大、模糊变清晰', '证件照制作:换底色、按规格裁剪'] },
|
||
'/copywriting': { icon: '✍️', points: ['AI 一键改写、降低 AIGC 率', '爆款标题、小红书/朋友圈文案', '多风格模板,改完即可用'] },
|
||
'/ai-gen': { icon: '🖌️', points: ['多模型文生图,宽高比可选', '内置示例提示词,新手一键出图', '生成记录可管理、可下载'] },
|
||
};
|
||
|
||
/** 授权功能清单 = license.ts 的 PROTECTED_TOOLS(唯一权威源),本页零手工维护 */
|
||
const toolStore = useToolStore();
|
||
const paidFeatures = computed<Feature[]>(() => Object.keys(PROTECTED_TOOLS).map((path) => {
|
||
const tool = toolStore.tools.find(t => t.path === path);
|
||
const m = MARKETING[path];
|
||
return {
|
||
path,
|
||
name: PROTECTED_TOOLS[path] || tool?.name || path,
|
||
icon: m?.icon || '🧩',
|
||
points: m?.points || [tool?.description || '授权高级功能,一次激活全部通用'],
|
||
};
|
||
}));
|
||
|
||
const machineId = getMachineId();
|
||
const copied = ref(false);
|
||
const wechatCopied = ref(false);
|
||
const WECHAT_ID = 'q3970260761';
|
||
|
||
async function copyWechat() {
|
||
try {
|
||
await navigator.clipboard.writeText(WECHAT_ID);
|
||
wechatCopied.value = true;
|
||
setTimeout(() => (wechatCopied.value = false), 1500);
|
||
}
|
||
catch { /* ignore */ }
|
||
}
|
||
|
||
async function copyMachine() {
|
||
try {
|
||
await navigator.clipboard.writeText(machineId);
|
||
copied.value = true;
|
||
setTimeout(() => (copied.value = false), 1500);
|
||
}
|
||
catch { /* ignore */ }
|
||
}
|
||
</script>
|
||
|
||
<template>
|
||
<div class="pricing-root">
|
||
<!-- hero -->
|
||
<div class="hero">
|
||
<div class="hero-title">🚀 授权解锁全部高级功能</div>
|
||
<div class="hero-sub">
|
||
IT-TOOLS-PRO 的 20+ 基础工具永久免费(含面单设计),下面 {{ paidFeatures.length }} 个算力型高级功能需要授权。一次激活,全部通用。
|
||
</div>
|
||
</div>
|
||
|
||
<!-- feature grid -->
|
||
<div class="section">
|
||
<h3 class="section-title">
|
||
授权可用的高级功能
|
||
</h3>
|
||
<div class="feat-grid">
|
||
<div v-for="f in paidFeatures" :key="f.path" class="feat-card">
|
||
<div class="feat-head">
|
||
<span class="feat-icon">{{ f.icon }}</span>
|
||
<RouterLink class="feat-name" :to="f.path">
|
||
{{ f.name }}
|
||
</RouterLink>
|
||
<span class="feat-tag">授权功能</span>
|
||
</div>
|
||
<ul class="feat-points">
|
||
<li v-for="(p, i) in f.points" :key="i">
|
||
{{ p }}
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- advantages -->
|
||
<div class="section">
|
||
<h3 class="section-title">
|
||
为什么值得购买
|
||
</h3>
|
||
<div class="adv-grid">
|
||
<div class="adv-card">
|
||
<div class="adv-icon">🔑</div>
|
||
<div class="adv-title">一次激活,全站通用</div>
|
||
<div class="adv-desc">输入一次卡密,{{ paidFeatures.length }} 个高级功能全部解锁,无需逐个购买</div>
|
||
</div>
|
||
<div class="adv-card">
|
||
<div class="adv-icon">♾️</div>
|
||
<div class="adv-title">永久套餐</div>
|
||
<div class="adv-desc">买断制授权,不按次、不按月,长期使用无后顾之忧</div>
|
||
</div>
|
||
<div class="adv-card">
|
||
<div class="adv-icon">🎁</div>
|
||
<div class="adv-title">先用后买</div>
|
||
<div class="adv-desc">每个高级功能每天免费试用 30 分钟,觉得好用再付费</div>
|
||
</div>
|
||
<div class="adv-card">
|
||
<div class="adv-icon">🔒</div>
|
||
<div class="adv-title">隐私友好</div>
|
||
<div class="adv-desc">PDF/图片工具全程浏览器本地处理,文件不上传服务器</div>
|
||
</div>
|
||
<div class="adv-card">
|
||
<div class="adv-icon">⚡</div>
|
||
<div class="adv-title">自建服务稳定</div>
|
||
<div class="adv-desc">翻译、OCR、AI 修图、格式转换均为自建服务,不依赖第三方接口</div>
|
||
</div>
|
||
<div class="adv-card">
|
||
<div class="adv-icon">🧊</div>
|
||
<div class="adv-title">免费工具持续更新</div>
|
||
<div class="adv-desc">面单设计、条码、JSON、二维码、IT 网站收藏等 20+ 工具永久免费,还会不断增加</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- CTA -->
|
||
<div class="section">
|
||
<div class="cta-box">
|
||
<div class="cta-left">
|
||
<div class="cta-title">
|
||
立即购买授权
|
||
</div>
|
||
<div class="cta-sub">
|
||
购买后你会得到一个卡密,在任意高级功能页右上角「卡密」入口输入即可激活本设备。
|
||
</div>
|
||
<div class="cta-machine">
|
||
本设备机器码:<code>{{ machineId }}</code>
|
||
<a href="javascript:;" class="copy-link" @click="copyMachine">{{ copied ? '已复制 ✓' : '复制' }}</a>
|
||
<span class="cta-machine-hint">(购买或激活遇到问题时提供给客服)</span>
|
||
</div>
|
||
<div class="cta-machine">
|
||
售后客服微信:<code>q3970260761</code>
|
||
<a href="javascript:;" class="copy-link" @click="copyWechat">{{ wechatCopied ? '已复制 ✓' : '复制' }}</a>
|
||
<span class="cta-machine-hint">(购买不到、激活失败、换设备等问题均可咨询)</span>
|
||
</div>
|
||
</div>
|
||
<div class="cta-right">
|
||
<c-button type="primary" class="cta-btn" @click="goBuy">
|
||
💳 前往购买卡密
|
||
</c-button>
|
||
<div class="cta-hint">
|
||
支付后自动发卡,卡密即时可用
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="foot-note">
|
||
已购买用户切换设备使用?在旧设备的功能页点「撤销」,新设备重新输入卡密即可。
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<style lang="less" scoped>
|
||
.pricing-root {
|
||
max-width: 1100px;
|
||
margin: 0 auto;
|
||
padding: 40px 20px 80px;
|
||
}
|
||
|
||
.hero {
|
||
text-align: center;
|
||
margin-bottom: 36px;
|
||
|
||
.hero-title {
|
||
font-size: 30px;
|
||
font-weight: 800;
|
||
background: linear-gradient(48deg, rgba(37, 99, 108, 1) 0%, rgba(59, 149, 111, 1) 55%, rgba(20, 160, 88, 1) 100%);
|
||
-webkit-background-clip: text;
|
||
background-clip: text;
|
||
color: transparent;
|
||
}
|
||
|
||
.hero-sub {
|
||
margin-top: 10px;
|
||
font-size: 14.5px;
|
||
opacity: 0.65;
|
||
}
|
||
}
|
||
|
||
.section {
|
||
margin-bottom: 34px;
|
||
|
||
.section-title {
|
||
font-size: 17px;
|
||
font-weight: 700;
|
||
margin-bottom: 14px;
|
||
}
|
||
}
|
||
|
||
// ---- feature grid ----
|
||
.feat-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||
gap: 12px;
|
||
}
|
||
|
||
.feat-card {
|
||
border: 1px solid rgba(128, 128, 128, 0.25);
|
||
border-radius: 12px;
|
||
padding: 14px 16px;
|
||
transition: border-color 0.15s, box-shadow 0.15s;
|
||
|
||
&:hover {
|
||
border-color: rgba(24, 160, 88, 0.6);
|
||
box-shadow: 0 4px 16px rgba(24, 160, 88, 0.08);
|
||
}
|
||
|
||
.feat-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 8px;
|
||
|
||
.feat-icon {
|
||
font-size: 20px;
|
||
}
|
||
|
||
.feat-name {
|
||
font-size: 15px;
|
||
font-weight: 700;
|
||
color: #333;
|
||
text-decoration: none;
|
||
|
||
&:hover {
|
||
color: #18a058;
|
||
}
|
||
}
|
||
|
||
.feat-tag {
|
||
margin-left: auto;
|
||
font-size: 11px;
|
||
color: #18a058;
|
||
background: rgba(24, 160, 88, 0.1);
|
||
border-radius: 999px;
|
||
padding: 2px 10px;
|
||
flex-shrink: 0;
|
||
}
|
||
}
|
||
|
||
.feat-points {
|
||
margin: 0;
|
||
padding-left: 18px;
|
||
font-size: 12.5px;
|
||
line-height: 1.9;
|
||
opacity: 0.75;
|
||
}
|
||
}
|
||
|
||
// ---- advantages ----
|
||
.adv-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||
gap: 12px;
|
||
}
|
||
|
||
.adv-card {
|
||
border: 1px solid rgba(128, 128, 128, 0.2);
|
||
border-radius: 12px;
|
||
padding: 16px;
|
||
background: rgba(24, 160, 88, 0.03);
|
||
|
||
.adv-icon {
|
||
font-size: 24px;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.adv-title {
|
||
font-size: 14.5px;
|
||
font-weight: 700;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.adv-desc {
|
||
font-size: 12.5px;
|
||
opacity: 0.65;
|
||
line-height: 1.7;
|
||
}
|
||
}
|
||
|
||
// ---- CTA ----
|
||
.cta-box {
|
||
display: flex;
|
||
gap: 20px;
|
||
align-items: center;
|
||
border: 2px solid rgba(24, 160, 88, 0.45);
|
||
border-radius: 14px;
|
||
padding: 22px 26px;
|
||
background: linear-gradient(120deg, rgba(24, 160, 88, 0.06), rgba(24, 160, 88, 0.02));
|
||
flex-wrap: wrap;
|
||
|
||
.cta-left {
|
||
flex: 1;
|
||
min-width: 260px;
|
||
|
||
.cta-title {
|
||
font-size: 19px;
|
||
font-weight: 800;
|
||
}
|
||
|
||
.cta-sub {
|
||
font-size: 13px;
|
||
opacity: 0.7;
|
||
margin-top: 6px;
|
||
line-height: 1.7;
|
||
}
|
||
|
||
.cta-machine {
|
||
margin-top: 10px;
|
||
font-size: 12.5px;
|
||
opacity: 0.85;
|
||
|
||
code {
|
||
background: rgba(128, 128, 128, 0.1);
|
||
padding: 2px 8px;
|
||
border-radius: 5px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.copy-link {
|
||
color: #18a058;
|
||
margin-left: 8px;
|
||
text-decoration: none;
|
||
|
||
&:hover {
|
||
text-decoration: underline;
|
||
}
|
||
}
|
||
|
||
.cta-machine-hint {
|
||
opacity: 0.5;
|
||
font-size: 11.5px;
|
||
margin-left: 6px;
|
||
}
|
||
}
|
||
}
|
||
|
||
.cta-right {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 8px;
|
||
|
||
.cta-btn {
|
||
background: #18a058 !important;
|
||
color: #fff !important;
|
||
font-size: 16px !important;
|
||
font-weight: 700;
|
||
padding: 10px 30px !important;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.cta-hint {
|
||
font-size: 11.5px;
|
||
opacity: 0.55;
|
||
}
|
||
}
|
||
}
|
||
|
||
.foot-note {
|
||
text-align: center;
|
||
font-size: 12px;
|
||
opacity: 0.5;
|
||
}
|
||
</style>
|