导入 AKSRT 主题开发源码

This commit is contained in:
Claude Code committed 2026-07-03 22:50:34 +08:00
1 parent 9681dd3d48
commit 1268a55dd0
595 files changed
+127705

No files matched your search

@@ -0,0 +1,96 @@
export const orderSchema = {
key: 'payment.order',
title: '订单设置',
icon: 'fas fa-file-invoice',
description: '配置订单前缀、有效期、展示字段和状态文案。',
defaults: {
payment_order_prefix: 'AKSRT',
payment_order_expiry: 30,
payment_show_user: true,
payment_show_paycount: true,
payment_no_logged_in: true,
payment_cookie_day: 15,
payment_no_logged_remind: '',
payment_wait_float_s: true,
payment_order_max_minutes: 30,
payment_mark: '付费',
payment_box_position: 'content',
payment_free_logged_show: false,
payment_show_ip: false,
payment_show_device: false,
payment_show_order_no: true,
payment_show_create_time: true,
payment_show_pay_time: true,
payment_order_status_pending: '待支付',
payment_order_status_paid: '已支付',
payment_order_status_completed: '已完成',
payment_order_status_cancelled: '已取消',
payment_order_status_refunded: '已退款',
payment_order_status_refunding: '退款中',
payment_order_status_processing: '处理中',
payment_service: '',
payment_service_icon: '',
payment_service_value: '',
payment_service_qq: '',
payment_service_wechat: '',
},
groups: [
{
key: 'basic',
title: '订单基础',
icon: 'fas fa-cog',
fields: [
{ key: 'payment_order_prefix', label: '订单前缀', type: 'input', default: 'AKSRT' },
{ key: 'payment_order_expiry', label: '订单有效期(分钟)', type: 'number', default: 30, min: 5, max: 1440 },
{ key: 'payment_show_user', label: '显示用户信息', type: 'switch', default: true },
{ key: 'payment_show_paycount', label: '显示购买次数', type: 'switch', default: true },
{ key: 'payment_no_logged_in', label: '未登录提示', type: 'switch', default: true },
{ key: 'payment_cookie_day', label: 'Cookie有效期(天)', type: 'number', default: 15, min: 1, max: 31, help: '未登录购买 Cookie 有效时间,1-31 天' },
{ key: 'payment_no_logged_remind', label: '未登录提醒文案', type: 'textarea', default: '', help: '未登录用户查看付费内容时的提醒文案' },
{ key: 'payment_wait_float_s', label: '订单等待浮动', type: 'switch', default: true },
{ key: 'payment_order_max_minutes', label: '订单最大支付时间(分钟)', type: 'number', default: 30, min: 5, max: 1440 },
],
},
{
key: 'display',
title: '展示设置',
icon: 'fas fa-eye',
fields: [
{ key: 'payment_mark', label: '付费标记', type: 'input', default: '付费' },
{ key: 'payment_box_position', label: '付费框位置', type: 'radio', default: 'top', options: [{ label: '文章模块上', value: 'box_top' }, { label: '内容顶', value: 'top' }, { label: '内容底', value: 'bottom' }, { label: '模块下', value: 'box_bottom' }] },
{ key: 'payment_free_logged_show', label: '登录用户显示免费', type: 'switch', default: false },
{ key: 'payment_show_ip', label: '显示用户IP', type: 'switch', default: false },
{ key: 'payment_show_device', label: '显示设备信息', type: 'switch', default: false },
{ key: 'payment_show_order_no', label: '显示订单号', type: 'switch', default: true },
{ key: 'payment_show_create_time', label: '显示创建时间', type: 'switch', default: true },
{ key: 'payment_show_pay_time', label: '显示支付时间', type: 'switch', default: true },
],
},
{
key: 'status',
title: '状态设置',
icon: 'fas fa-tags',
fields: [
{ key: 'payment_order_status_pending', label: '待支付状态文案', type: 'input', default: '待支付' },
{ key: 'payment_order_status_paid', label: '已支付状态文案', type: 'input', default: '已支付' },
{ key: 'payment_order_status_completed', label: '已完成状态文案', type: 'input', default: '已完成' },
{ key: 'payment_order_status_cancelled', label: '已取消状态文案', type: 'input', default: '已取消' },
{ key: 'payment_order_status_refunded', label: '已退款状态文案', type: 'input', default: '已退款' },
{ key: 'payment_order_status_refunding', label: '退款中状态文案', type: 'input', default: '退款中' },
{ key: 'payment_order_status_processing', label: '处理中状态文案', type: 'input', default: '处理中' },
],
},
{
key: 'service',
title: '服务设置',
icon: 'fas fa-headset',
fields: [
{ key: 'payment_service', label: '客服设置', type: 'textarea', default: '' },
{ key: 'payment_service_icon', label: '客服图标', type: 'icon', default: '' },
{ key: 'payment_service_value', label: '客服内容', type: 'input', default: '' },
{ key: 'payment_service_qq', label: 'QQ客服', type: 'input', default: '' },
{ key: 'payment_service_wechat', label: '微信客服', type: 'media', default: '' },
],
},
],
}