导入 AKSRT 主题开发源码
This commit is contained in:
1 parent
9681dd3d48
commit
1268a55dd0
595 files changed
+127705
No files matched your search
@@ -0,0 +1,72 @@
|
||||
export const paidSchema = {
|
||||
key: 'payment.paid',
|
||||
title: '下载/付费内容中心',
|
||||
icon: 'fas fa-download',
|
||||
description: '统一管理资源下载、付费内容、角色免扣和人工交付说明。',
|
||||
defaults: {
|
||||
payment_paid_post_types: 'post',
|
||||
payment_vip_free_download: false,
|
||||
payment_vip_exempt_roles: '',
|
||||
payment_paid_catalog_note: '',
|
||||
payment_manual_delivery_note: '付费或人工确认内容请在订单备注中记录交付方式。',
|
||||
payment_paid_mark: '付费',
|
||||
payment_currency_symbol: '¥',
|
||||
payment_paid_show_user: true,
|
||||
payment_paid_show_paycount: true,
|
||||
payment_paid_box_position: 'top',
|
||||
payment_download_enable: false,
|
||||
payment_download_remote_s: true,
|
||||
payment_download_verify_nonce: true,
|
||||
payment_download_user_log: 50,
|
||||
payment_download_post_log: 50,
|
||||
payment_download_remote_size: 2048,
|
||||
payment_download_remote_ext: 'zip,rar,7z',
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
key: 'strategy',
|
||||
title: '付费内容策略',
|
||||
icon: 'fas fa-layer-group',
|
||||
fields: [
|
||||
{ key: 'payment_paid_post_types', label: '受管内容类型', type: 'input', default: 'post', help: '逗号分隔,例如 post,course,doc' },
|
||||
{ key: 'payment_vip_free_download', label: '角色白名单免扣下载', type: 'switch', default: false },
|
||||
{ key: 'payment_vip_exempt_roles', label: '免扣角色列表', type: 'input', default: '', help: '逗号分隔的 WordPress role slug,例如 administrator,editor,vip' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'delivery',
|
||||
title: '交付说明',
|
||||
icon: 'fas fa-receipt',
|
||||
fields: [
|
||||
{ key: 'payment_paid_catalog_note', label: '前台付费提示', type: 'textarea', default: '', help: '显示在资源/付费内容页的运营说明。' },
|
||||
{ key: 'payment_manual_delivery_note', label: '人工交付备注', type: 'textarea', default: '付费或人工确认内容请在订单备注中记录交付方式。', help: '人工确认或离线交付流程的标准说明。' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'display',
|
||||
title: '展示设置',
|
||||
icon: 'fas fa-eye',
|
||||
fields: [
|
||||
{ key: 'payment_paid_mark', label: '付费标记', type: 'input', default: '付费' },
|
||||
{ key: 'payment_currency_symbol', label: '货币符号', type: 'input', default: '¥', help: '商品价格前缀,如 ¥、$、¥' },
|
||||
{ key: 'payment_paid_show_user', label: '显示购买用户', type: 'switch', default: true },
|
||||
{ key: 'payment_paid_show_paycount', label: '显示购买次数', type: 'switch', default: true },
|
||||
{ key: 'payment_paid_box_position', label: '付费框位置', type: 'radio', default: 'top', options: [{ label: '文章模块上', value: 'box_top' }, { label: '内容顶', value: 'top' }, { label: '内容底', value: 'bottom' }, { label: '模块下', value: 'box_bottom' }] },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'download',
|
||||
title: '下载设置',
|
||||
icon: 'fas fa-cloud-download-alt',
|
||||
fields: [
|
||||
{ key: 'payment_download_enable', label: '启用下载功能', type: 'switch', default: false },
|
||||
{ key: 'payment_download_remote_s', label: '远程文件下载', type: 'switch', default: true, dependsOn: { key: 'payment_download_enable', value: true } },
|
||||
{ key: 'payment_download_verify_nonce', label: '下载鉴权', type: 'switch', default: true, dependsOn: { key: 'payment_download_enable', value: true } },
|
||||
{ key: 'payment_download_user_log', label: '用户下载记录条数', type: 'number', default: 50, min: 0, max: 9999, help: '0 为不保存', dependsOn: { key: 'payment_download_enable', value: true } },
|
||||
{ key: 'payment_download_post_log', label: '文章下载记录条数', type: 'number', default: 50, min: 0, max: 9999, help: '0 为不保存', dependsOn: { key: 'payment_download_enable', value: true } },
|
||||
{ key: 'payment_download_remote_size', label: '远程文件大小限制(KB)', type: 'number', default: 2048, min: 1, max: 999999, dependsOn: { key: 'payment_download_remote_s', value: true } },
|
||||
{ key: 'payment_download_remote_ext', label: '远程文件格式限制', type: 'input', default: 'zip,rar,7z', help: '逗号分隔扩展名', dependsOn: { key: 'payment_download_remote_s', value: true } },
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in new issue
Block a user