feat(buy): 站内支付页 /buy — 支付成功当场显示卡密;三处购买入口统一改指站内
- 新增 /buy 支付页:读本机机器码、列本项目可售套餐、支付宝/微信/QQ钱包、优惠码选填; 拉起收银台后本页留守轮询,支付成功显示卡密并自动核验授权 - 购买入口改造:顶栏「永久解锁 13 个功能」、锁定弹窗「购买授权」、授权应用页 「前往购买卡密」三处统一跳转站内 /buy(原跳外部 auth.88531.cn/#/shop) - CardAuth 后端:订单支付完成时补发卡密写回订单(原带机器码下单只建授权不发卡) - CHANGELOG 新增 Version 2026.11.11-it-tools-pro
This commit is contained in:
1 parent
7b22e53d1a
commit
f420785887
7 files changed
+732
-6
No files matched your search
@@ -17,6 +17,11 @@ const props = defineProps<{ path: string }>();
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
/** 跳转到站内支付页 /buy(未授权状态下所有购买入口统一走这里) */
|
||||
function goBuy(): void {
|
||||
router.push('/buy');
|
||||
}
|
||||
|
||||
const displayName = computed(() => PROTECTED_TOOLS[props.path] ?? '');
|
||||
const protectedTool = computed(() => !!PROTECTED_TOOLS[props.path]);
|
||||
|
||||
@@ -161,10 +166,9 @@ onUnmounted(() => {
|
||||
<template v-if="!licenseState.authorized">
|
||||
<a
|
||||
:href="BUY_URL"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
class="lg-buy"
|
||||
title="买断制授权,不按次不按月;一次激活,13 个高级功能全部解锁,授权跟随账号、换电脑可恢复"
|
||||
@click.prevent="goBuy"
|
||||
>永久解锁 13 个功能</a>
|
||||
<a href="javascript:;" class="lg-link" @click="showCardInput = !showCardInput">卡密</a>
|
||||
</template>
|
||||
@@ -202,7 +206,7 @@ onUnmounted(() => {
|
||||
</p>
|
||||
|
||||
<div class="lg-modal-actions">
|
||||
<c-button type="primary" :href="BUY_URL" target="_blank" rel="noopener">
|
||||
<c-button type="primary" @click="goBuy">
|
||||
购买授权
|
||||
</c-button>
|
||||
<c-button @click="showCardInput = !showCardInput">
|
||||
|
||||
@@ -2,7 +2,7 @@ import { reactive } from 'vue';
|
||||
|
||||
// ====== 授权服务器 (CardAuth) ======
|
||||
export const AUTH_BASE = 'https://auth.88531.cn/api';
|
||||
export const BUY_URL = 'https://auth.88531.cn/#/shop';
|
||||
export const BUY_URL = '/buy'; // 站内支付页:下单 -> 支付 -> 当场显示卡密
|
||||
|
||||
// 受控功能(消耗服务器性能:翻译走服务器代理、OCR 走本机识别服务)
|
||||
export const PROTECTED_TOOLS: Record<string, string> = {
|
||||
|
||||
Reference in new issue
Block a user