修改: bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m47s

This commit is contained in:
sexygoat
2026-02-27 17:40:02 +08:00
parent f1cb1e53c8
commit 4470a4ef04
17 changed files with 908 additions and 544 deletions

View File

@@ -68,6 +68,43 @@
return `${data.duration_months} 个月`
}
},
{
label: '套餐周期类型',
formatter: (_, data) => {
if (!data.calendar_type) return '-'
const typeMap = {
natural_month: '自然月',
by_day: '按天'
}
return typeMap[data.calendar_type] || data.calendar_type
}
},
{
label: '套餐天数',
formatter: (_, data) => {
if (data.calendar_type !== 'by_day' || !data.duration_days) return '-'
return `${data.duration_days}`
}
},
{
label: '流量重置周期',
formatter: (_, data) => {
if (!data.data_reset_cycle) return '-'
const cycleMap = {
daily: '每日',
monthly: '每月',
yearly: '每年',
none: '不重置'
}
return cycleMap[data.data_reset_cycle] || data.data_reset_cycle
}
},
{
label: '启用实名激活',
formatter: (_, data) => {
return data.enable_realname_activation ? '是' : '否'
}
},
{
label: '状态',
formatter: (_, data) => {
@@ -141,12 +178,6 @@
{
title: '佣金配置',
fields: [
{
label: '当前返佣比例',
formatter: (_, data) => {
return data.current_commission_rate || '-'
}
},
{
label: '一次性佣金金额',
formatter: (_, data) => {
@@ -159,7 +190,7 @@
}
},
{
label: '当前返佣档位',
label: '当前返佣比例',
formatter: (_, data) => {
if (!data.tier_info || !data.tier_info.current_rate) return '-'
return data.tier_info.current_rate