导入 AKSRT 主题开发源码
This commit is contained in:
1 parent
9681dd3d48
commit
1268a55dd0
595 files changed
+127705
No files matched your search
@@ -0,0 +1,98 @@
|
||||
export const creditsSchema = {
|
||||
key: 'users.credits',
|
||||
title: '用户积分',
|
||||
icon: 'fas fa-coins',
|
||||
description: '积分规则、积分日志、用户积分管理。',
|
||||
defaults: {
|
||||
points_s: true,
|
||||
points_pay_s: false,
|
||||
points_rate: 100,
|
||||
points_name: '积分',
|
||||
points_decimal: 2,
|
||||
points_earn_comment: 1,
|
||||
points_earn_post: 5,
|
||||
points_earn_login: 1,
|
||||
points_earn_like_received: 1,
|
||||
points_earn_invite: 10,
|
||||
points_earn_daily_limit: 50,
|
||||
points_spend_comment: 0,
|
||||
points_spend_download: 0,
|
||||
points_spend_view_hidden: 0,
|
||||
points_transfer_s: false,
|
||||
points_service_charge: 0,
|
||||
points_transfer_min: 1,
|
||||
points_deduction_s: false,
|
||||
points_deduction_rate: 100,
|
||||
points_deduction_max: 50,
|
||||
points_show_balance: true,
|
||||
points_show_log: true,
|
||||
points_expire_days: 0,
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
key: 'basic',
|
||||
title: '积分基础',
|
||||
icon: 'fas fa-coins',
|
||||
fields: [
|
||||
{ key: 'points_s', label: '启用积分系统', type: 'switch', default: true },
|
||||
{ key: 'points_pay_s', label: '积分支付', type: 'switch', default: false },
|
||||
{ key: 'points_rate', label: '积分兑换比例', type: 'number', default: 100, min: 1, max: 10000 },
|
||||
{ key: 'points_name', label: '积分名称', type: 'input', default: '积分' },
|
||||
{ key: 'points_decimal', label: '积分小数位数', type: 'number', default: 2, min: 0, max: 4 },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'earn',
|
||||
title: '积分获取',
|
||||
icon: 'fas fa-arrow-up',
|
||||
fields: [
|
||||
{ key: 'points_earn_comment', label: '评论奖励', type: 'number', default: 1, min: 0, max: 100 },
|
||||
{ key: 'points_earn_post', label: '发布文章奖励', type: 'number', default: 5, min: 0, max: 100 },
|
||||
{ key: 'points_earn_login', label: '每日登录奖励', type: 'number', default: 1, min: 0, max: 100 },
|
||||
{ key: 'points_earn_like_received', label: '收到点赞奖励', type: 'number', default: 1, min: 0, max: 100 },
|
||||
{ key: 'points_earn_invite', label: '邀请注册奖励', type: 'number', default: 10, min: 0, max: 1000 },
|
||||
{ key: 'points_earn_daily_limit', label: '每日获取上限', type: 'number', default: 50, min: 0, max: 9999, help: '0为不限制' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'spend',
|
||||
title: '积分消费',
|
||||
icon: 'fas fa-arrow-down',
|
||||
fields: [
|
||||
{ key: 'points_spend_comment', label: '评论消耗', type: 'number', default: 0, min: 0, max: 100 },
|
||||
{ key: 'points_spend_download', label: '下载消耗', type: 'number', default: 0, min: 0, max: 100 },
|
||||
{ key: 'points_spend_view_hidden', label: '查看隐藏内容消耗', type: 'number', default: 0, min: 0, max: 100 },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'transfer',
|
||||
title: '积分转账',
|
||||
icon: 'fas fa-exchange-alt',
|
||||
fields: [
|
||||
{ key: 'points_transfer_s', label: '启用积分转账', type: 'switch', default: false },
|
||||
{ key: 'points_service_charge', label: '转账手续费(%)', type: 'number', default: 0, min: 0, max: 50, dependsOn: { key: 'points_transfer_s', value: true } },
|
||||
{ key: 'points_transfer_min', label: '最低转账金额', type: 'number', default: 1, min: 1, max: 9999, dependsOn: { key: 'points_transfer_s', value: true } },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'deduction',
|
||||
title: '积分抵扣',
|
||||
icon: 'fas fa-percent',
|
||||
fields: [
|
||||
{ key: 'points_deduction_s', label: '启用积分抵扣', type: 'switch', default: false },
|
||||
{ key: 'points_deduction_rate', label: '抵扣比例(%)', type: 'number', default: 100, min: 1, max: 100, dependsOn: { key: 'points_deduction_s', value: true } },
|
||||
{ key: 'points_deduction_max', label: '最大抵扣比例(%)', type: 'number', default: 50, min: 1, max: 100, dependsOn: { key: 'points_deduction_s', value: true } },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'display',
|
||||
title: '展示设置',
|
||||
icon: 'fas fa-eye',
|
||||
fields: [
|
||||
{ key: 'points_show_balance', label: '导航栏显示余额', type: 'switch', default: true },
|
||||
{ key: 'points_show_log', label: '显示积分记录', type: 'switch', default: true },
|
||||
{ key: 'points_expire_days', label: '积分有效期(天)', type: 'number', default: 0, min: 0, help: '0为永久有效' },
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in new issue
Block a user