feat(navigation): hard-switch to Zibll navigation and Font Awesome 5

This commit is contained in:
kate522 committed 2026-08-18 20:46:21 +08:00
1 parent 3c3ddac8be
commit a0b84977a2
630 files changed
+101647 -11293

No files matched your search

@@ -1,7 +1,7 @@
export const affiliateSchema = {
key: 'payment.affiliate',
title: '推广返佣',
icon: 'fas fa-share-alt',
icon: 'fa fas fa-share-alt',
description: '配置推广归因、分级佣金比例和结算规则。',
defaults: {
affiliate_enabled: false,
@@ -16,7 +16,7 @@ export const affiliateSchema = {
{
key: 'policy',
title: '返佣策略',
icon: 'fas fa-project-diagram',
icon: 'fa fas fa-sitemap',
fields: [
{ key: 'affiliate_enabled', label: '启用推广返佣', type: 'switch', default: false },
{ key: 'affiliate_ratio_user', label: '普通会员佣金比例(%)', type: 'number', default: 5, min: 0, max: 100, dependsOn: { key: 'affiliate_enabled', value: true } },
@@ -29,7 +29,7 @@ export const affiliateSchema = {
{
key: 'text',
title: '文案设置',
icon: 'fas fa-pen-fancy',
icon: 'fa fas fa-pen',
fields: [
{ key: 'affiliate_promotion_text', label: '推广说明', type: 'textarea', default: '', dependsOn: { key: 'affiliate_enabled', value: true } },
],
@@ -1,7 +1,7 @@
export const cardPassSchema = {
key: 'payment.card-pass',
title: '充值卡',
icon: 'fas fa-ticket-alt',
icon: 'fa fas fa-ticket-alt',
description: '配置充值卡类型、卡号规则、批量生成和兑换逻辑。',
defaults: {
card_pass_enabled: false,
@@ -23,7 +23,7 @@ export const cardPassSchema = {
{
key: 'basic',
title: '充值卡设置',
icon: 'fas fa-id-card',
icon: 'fa fas fa-id-card',
fields: [
{ key: 'card_pass_enabled', label: '启用充值卡', type: 'switch', default: false },
{ key: 'card_pass_desc', label: '充值卡说明', type: 'textarea', default: '', dependsOn: { key: 'card_pass_enabled', value: true } },
@@ -36,7 +36,7 @@ export const cardPassSchema = {
{
key: 'redeem',
title: '兑换设置',
icon: 'fas fa-exchange-alt',
icon: 'fa fas fa-exchange-alt',
fields: [
{ key: 'card_pass_max_redeem', label: '单卡最大兑换次数', type: 'number', default: 1, min: 1, max: 100, dependsOn: { key: 'card_pass_enabled', value: true } },
{ key: 'card_pass_expiry', label: '有效期(天)', type: 'number', default: 0, min: 0, help: '0为永久有效', dependsOn: { key: 'card_pass_enabled', value: true } },
@@ -48,7 +48,7 @@ export const cardPassSchema = {
{
key: 'display',
title: '展示设置',
icon: 'fas fa-desktop',
icon: 'fa fas fa-desktop',
fields: [
{ key: 'card_pass_redeem_page', label: '兑换页面', type: 'input', default: '', dependsOn: { key: 'card_pass_enabled', value: true } },
{ key: 'card_pass_success_msg', label: '兑换成功提示', type: 'input', default: '兑换成功!', dependsOn: { key: 'card_pass_enabled', value: true } },
@@ -1,7 +1,7 @@
export const gatewaySchema = {
key: 'payment.gateway',
title: '收款接口',
icon: 'fas fa-credit-card',
icon: 'fa fas fa-credit-card',
description: '管理已支持的收款通道:余额、支付宝、微信、PayPal、Stripe、易支付与卡密兑换。开启渠道后展开填写凭据。',
defaults: {
payment_wechat_enabled: false,
@@ -43,7 +43,7 @@ export const gatewaySchema = {
{
key: 'notice',
title: '说明',
icon: 'fas fa-info-circle',
icon: 'fa fas fa-info-circle',
fields: [
{
key: 'payment_gateway_notice',
@@ -57,7 +57,7 @@ export const gatewaySchema = {
{
key: 'gateways',
title: '支付渠道开关',
icon: 'fas fa-toggle-on',
icon: 'fa fas fa-toggle-on',
description: '先开启渠道,下方对应配置卡片会展开;填写凭据后网关状态变为可用。余额与卡密无第三方凭据,仅开关即可。',
fields: [
{ key: 'payment_balance_enabled', label: '余额支付', type: 'switch', default: true, help: '需同时在「余额充值」启用余额功能。关闭后用户中心仍可有钱包,但结账不可用余额支付。' },
@@ -72,7 +72,7 @@ export const gatewaySchema = {
{
key: 'wechat',
title: '微信支付配置',
icon: 'fab fa-weixin',
icon: 'fa fab fa-weixin',
description: '开启「微信支付」后填写商户号与密钥。',
collapsible: true,
expandWhen: 'payment_wechat_enabled',
@@ -92,7 +92,7 @@ export const gatewaySchema = {
{
key: 'alipay',
title: '支付宝配置',
icon: 'fab fa-alipay',
icon: 'fa fas fa-credit-card',
description: '开启「支付宝」后填写应用与证书。',
collapsible: true,
expandWhen: 'payment_alipay_enabled',
@@ -113,7 +113,7 @@ export const gatewaySchema = {
{
key: 'paypal',
title: 'PayPal 配置',
icon: 'fab fa-paypal',
icon: 'fa fab fa-paypal',
description: '开启「PayPal」后填写 Client 凭据。',
collapsible: true,
expandWhen: 'payment_paypal_enabled',
@@ -128,7 +128,7 @@ export const gatewaySchema = {
{
key: 'stripe',
title: 'Stripe 配置',
icon: 'fab fa-stripe',
icon: 'fa fab fa-cc-stripe',
description: '开启「Stripe」后填写 API Key 与 Webhook。',
collapsible: true,
expandWhen: 'payment_stripe_enabled',
@@ -144,7 +144,7 @@ export const gatewaySchema = {
{
key: 'epay',
title: '易支付配置',
icon: 'fas fa-university',
icon: 'fa fas fa-university',
description: '开启「易支付」后填写接口地址与商户信息,并选择支付宝/微信子通道。',
collapsible: true,
expandWhen: 'payment_epay_enabled',
@@ -1,7 +1,7 @@
export const orderSchema = {
key: 'payment.order',
title: '订单设置',
icon: 'fas fa-file-invoice',
icon: 'fa fas fa-file-alt',
description: '配置订单前缀、有效期、展示字段和状态文案。',
defaults: {
payment_order_prefix: 'AKSRT',
@@ -37,7 +37,7 @@ export const orderSchema = {
{
key: 'basic',
title: '订单基础',
icon: 'fas fa-cog',
icon: 'fa 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 },
@@ -53,7 +53,7 @@ export const orderSchema = {
{
key: 'display',
title: '展示设置',
icon: 'fas fa-eye',
icon: 'fa fas fa-eye',
fields: [
{ key: 'pay_mark', label: '付费标记', type: 'input', default: '付费' },
{ key: 'pay_box_position', label: '付费框位置', type: 'radio', default: 'top', options: [{ label: '文章框顶部(封面后)', value: 'box_top' }, { label: '正文顶部', value: 'top' }, { label: '正文底部', value: 'bottom' }, { label: '文章框底部(相关前)', value: 'box_bottom' }] },
@@ -67,7 +67,7 @@ export const orderSchema = {
{
key: 'status',
title: '状态设置',
icon: 'fas fa-tags',
icon: 'fa fas fa-tags',
fields: [
{ key: 'payment_order_status_pending', label: '待支付状态文案', type: 'input', default: '待支付' },
{ key: 'payment_order_status_paid', label: '已支付状态文案', type: 'input', default: '已支付' },
@@ -81,7 +81,7 @@ export const orderSchema = {
{
key: 'service',
title: '服务设置',
icon: 'fas fa-headset',
icon: 'fa fas fa-headphones',
fields: [
{ key: 'pay_service', label: '客服设置', type: 'textarea', default: '' },
{ key: 'pay_service_icon', label: '客服图标', type: 'icon', default: '' },
@@ -1,7 +1,7 @@
export const rechargeSchema = {
key: 'payment.recharge',
title: '余额充值',
icon: 'fas fa-charging-station',
icon: 'fa fas fa-bolt',
description: '配置余额充值套餐、转账与积分兑换。',
defaults: {
pay_balance_s: true,
@@ -30,7 +30,7 @@ export const rechargeSchema = {
{
key: 'basic',
title: '充值开关',
icon: 'fas fa-wallet',
icon: 'fa fas fa-credit-card',
fields: [
{ key: 'pay_balance_s', label: '启用余额功能', type: 'switch', default: true, help: '开启后用户中心显示现金钱包,并默认允许余额支付(可在收款接口单独关闭)。充值需另配支付宝/微信等外部网关。' },
{ key: 'pay_balance_desc', label: '充值说明', type: 'textarea', default: '', dependsOn: { key: 'pay_balance_s', value: true } },
@@ -40,7 +40,7 @@ export const rechargeSchema = {
{
key: 'packages',
title: '充值套餐',
icon: 'fas fa-box-open',
icon: 'fa fas fa-folder-open',
fields: [
{ key: 'pay_balance_product', label: '套餐列表', type: 'textarea', default: '30|30|入门包\n98|108|推荐包', help: '每行一个套餐:支付金额|到账金额|标题', dependsOn: { key: 'pay_balance_s', value: true } },
],
@@ -48,7 +48,7 @@ export const rechargeSchema = {
{
key: 'product',
title: '充值产品',
icon: 'fas fa-box',
icon: 'fa fas fa-archive',
fields: [
{ key: 'pay_balance_product_name', label: '充值产品', type: 'input', default: '', dependsOn: { key: 'pay_balance_s', value: true } },
{ key: 'pay_balance_price', label: '充值价格', type: 'number', default: 0, min: 0, max: 99999, dependsOn: { key: 'pay_balance_s', value: true } },
@@ -61,7 +61,7 @@ export const rechargeSchema = {
{
key: 'transfer',
title: '余额转账',
icon: 'fas fa-exchange-alt',
icon: 'fa fas fa-exchange-alt',
fields: [
{ key: 'pay_balance_transfer_s', label: '启用余额转账', type: 'switch', default: false },
{ key: 'pay_balance_transfer_service_charge', label: '转账手续费(%)', type: 'number', default: 0, min: 0, max: 50, dependsOn: { key: 'pay_balance_transfer_s', value: true } },
@@ -71,7 +71,7 @@ export const rechargeSchema = {
{
key: 'pass-charge',
title: '充值卡免扣',
icon: 'fas fa-ticket-alt',
icon: 'fa fas fa-ticket-alt',
fields: [
{ key: 'pay_balance_pass_charge_s', label: '启用余额卡密兑换', type: 'switch', default: false },
{ key: 'pay_balance_pass_charge_desc', label: '卡密兑换说明', type: 'textarea', default: '', dependsOn: { key: 'pay_balance_pass_charge_s', value: true } },
@@ -81,7 +81,7 @@ export const rechargeSchema = {
{
key: 'exchange',
title: '余额兑换积分',
icon: 'fas fa-coins',
icon: 'fa fas fa-database',
fields: [
{ key: 'pay_balance_points_exchange_s', label: '启用余额兑换积分', type: 'switch', default: false, dependsOn: { key: 'pay_balance_s', value: true } },
{ key: 'pay_balance_points_exchange_rate', label: '兑换比例', type: 'number', default: 100, min: 1, max: 10000, help: '1 余额 = N 积分', dependsOn: { key: 'pay_balance_points_exchange_s', value: true } },
@@ -1,7 +1,7 @@
export const revenueSchema = {
key: 'payment.revenue',
title: '创作中心',
icon: 'fas fa-chart-line',
icon: 'fa fas fa-chart-line',
description: '分别配置现金收益和积分收益的会员分成比例,结算周期结束后自动入账。',
defaults: {
pay_income_s: false,
@@ -18,7 +18,7 @@ export const revenueSchema = {
{
key: 'basic',
title: '创作中心设置',
icon: 'fas fa-cog',
icon: 'fa fas fa-cog',
fields: [
{ key: 'pay_income_s', label: '启用创作分成', type: 'switch', default: false },
{ key: 'payment_revenue_cycle_days', label: '结算周期(天)', type: 'number', default: 30, min: 1, max: 365, dependsOn: { key: 'pay_income_s', value: true } },
@@ -28,7 +28,7 @@ export const revenueSchema = {
{
key: 'cash',
title: '现金收益分成',
icon: 'fas fa-wallet',
icon: 'fa fas fa-credit-card',
fields: [
{ key: 'payment_revenue_cash_ratio_user', label: '普通用户分成比例(%)', type: 'number', default: 60, min: 0, max: 100, dependsOn: { key: 'pay_income_s', value: true } },
{ key: 'payment_revenue_cash_ratio_vip_1', label: '一级会员分成比例(%)', type: 'number', default: 70, min: 0, max: 100, dependsOn: { key: 'pay_income_s', value: true } },
@@ -38,7 +38,7 @@ export const revenueSchema = {
{
key: 'points',
title: '积分收益分成',
icon: 'fas fa-coins',
icon: 'fa fas fa-database',
fields: [
{ key: 'payment_revenue_points_ratio_user', label: '普通用户分成比例(%)', type: 'number', default: 0, min: 0, max: 100, dependsOn: { key: 'pay_income_s', value: true } },
{ key: 'payment_revenue_points_ratio_vip_1', label: '一级会员分成比例(%)', type: 'number', default: 0, min: 0, max: 100, dependsOn: { key: 'pay_income_s', value: true } },
@@ -1,7 +1,7 @@
export const vipSchema = {
key: 'payment.vip',
title: 'VIP会员',
icon: 'fas fa-crown',
icon: 'fa fas fa-gem',
description: '对齐 Zibll 双级会员:分档套餐、权益、续费/升级与积分兑换。',
defaults: {
pay_user_vip_1_s: true,
@@ -42,7 +42,7 @@ export const vipSchema = {
{
key: 'basic',
title: '会员等级',
icon: 'fas fa-user-shield',
icon: 'fa fas fa-user',
fields: [
{ key: 'pay_user_vip_1_s', label: '启用一级会员', type: 'switch', default: true },
{ key: 'pay_user_vip_1_name', label: '一级会员名称', type: 'input', default: '一级会员', dependsOn: { key: 'pay_user_vip_1_s', value: true } },
@@ -61,7 +61,7 @@ export const vipSchema = {
{
key: 'packages',
title: '分档套餐',
icon: 'fas fa-gem',
icon: 'fa fas fa-gem',
fields: [
{ key: 'vip_1_product_s', label: '允许购买一级会员', type: 'switch', default: true, dependsOn: { key: 'pay_user_vip_1_s', value: true } },
{
@@ -86,7 +86,7 @@ export const vipSchema = {
{
key: 'points_exchange',
title: '积分兑换会员',
icon: 'fas fa-coins',
icon: 'fa fas fa-database',
fields: [
{ key: 'pay_vip_points_exchange_s', label: '启用积分兑换', type: 'switch', default: false },
{
@@ -103,7 +103,7 @@ export const vipSchema = {
{
key: 'benefit',
title: '下载权益',
icon: 'fas fa-gift',
icon: 'fa fas fa-gift',
fields: [
{ key: 'pay_download_limit', label: '普通用户下载限制', type: 'number', default: 0, min: 0, max: 9999, help: '0为不限制' },
{ key: 'pay_download_limit_vip_1', label: '一级会员下载限制', type: 'number', default: 0, min: 0, max: 9999, dependsOn: { key: 'pay_user_vip_1_s', value: true } },
@@ -116,7 +116,7 @@ export const vipSchema = {
{
key: 'renew',
title: '续费设置',
icon: 'fas fa-sync-alt',
icon: 'fa fas fa-sync-alt',
fields: [
{ key: 'vip_renew', label: '允许续费', type: 'switch', default: true },
{ key: 'vip_renew_desc', label: '续费说明', type: 'textarea', default: '', dependsOn: { key: 'vip_renew', value: true } },
@@ -128,7 +128,7 @@ export const vipSchema = {
{
key: 'upgrade',
title: '升级设置',
icon: 'fas fa-arrow-up',
icon: 'fa fas fa-arrow-up',
fields: [
{ key: 'vip_upgrade', label: '允许升级', type: 'switch', default: true },
{ key: 'vip_upgrade_desc', label: '升级说明', type: 'textarea', default: '', dependsOn: { key: 'vip_upgrade', value: true } },
@@ -1,7 +1,7 @@
export const withdrawalSchema = {
key: 'payment.withdrawal',
title: '提现策略',
icon: 'fas fa-hand-holding-usd',
icon: 'fa fas fa-money-bill',
description: '配置提现门槛、手续费比例与每日限制。',
defaults: {
affiliate_min_withdrawal: 50,
@@ -15,7 +15,7 @@ export const withdrawalSchema = {
{
key: 'basic',
title: '提现设置',
icon: 'fas fa-sliders-h',
icon: 'fa fas fa-sliders-h',
fields: [
{ key: 'affiliate_min_withdrawal', label: '最低提现金额', type: 'number', default: 50, min: 0, max: 99999 },
{ key: 'affiliate_withdrawal_fee', label: '提现手续费(%)', type: 'number', default: 5, min: 0, max: 100 },