diff --git a/frontend/src/pages/admin/agent-apps/create.vue b/frontend/src/pages/admin/agent-apps/create.vue index 2dcfaa6..82d9325 100644 --- a/frontend/src/pages/admin/agent-apps/create.vue +++ b/frontend/src/pages/admin/agent-apps/create.vue @@ -24,7 +24,7 @@ interface Application { interface CardType { id: number name: string - billing_type: string + recharge_type: string price: number } @@ -103,11 +103,10 @@ const enabledCardTypesCount = computed(() => { return form.value.card_types.filter(ct => ct.can_generate).length }) -function getBillingTypeText(type: string) { +function getRechargeTypeText(type: string) { const map: Record = { - subscription: '订阅', - time: '计时', - point: '点卡', + balance: '余额充值', + subscription: '订阅充值', } return map[type] || type } @@ -246,7 +245,7 @@ onMounted(() => { 卡类名称 - 计费类型 + 充值类型 原价 授权价格 @@ -271,21 +270,20 @@ onMounted(() => { - {{ getBillingTypeText(cardTypes[index]?.billing_type || '') }} + {{ getRechargeTypeText(cardTypes[index]?.recharge_type || '') }} ¥{{ cardTypes[index]?.price || 0 }} - + + + + + + + diff --git a/frontend/src/pages/admin/agent-apps/index.vue b/frontend/src/pages/admin/agent-apps/index.vue index e621811..b4dcd9b 100644 --- a/frontend/src/pages/admin/agent-apps/index.vue +++ b/frontend/src/pages/admin/agent-apps/index.vue @@ -1,5 +1,5 @@