From 9b66b78110417f76d50b75ea29214a0697aa984c Mon Sep 17 00:00:00 2001
From: sexygoat <1538832180@qq.com>
Date: Mon, 20 Apr 2026 15:58:18 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BD=93=E5=89=8D=E7=94=9F=E6=95=88?=
=?UTF-8?q?=E5=A5=97=E9=A4=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../core/layouts/art-settings-panel/index.vue | 2 +-
.../components/BasicInfoCard.vue | 2 +-
.../components/CurrentPackageCard.vue | 16 ++++++++--------
.../composables/useAssetInfo.ts | 6 +++++-
.../asset-management/asset-information/types.ts | 4 ++++
5 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/src/components/core/layouts/art-settings-panel/index.vue b/src/components/core/layouts/art-settings-panel/index.vue
index 61a8a32..1882386 100644
--- a/src/components/core/layouts/art-settings-panel/index.vue
+++ b/src/components/core/layouts/art-settings-panel/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/views/asset-management/asset-information/components/BasicInfoCard.vue b/src/views/asset-management/asset-information/components/BasicInfoCard.vue
index 41f92eb..d92a854 100644
--- a/src/views/asset-management/asset-information/components/BasicInfoCard.vue
+++ b/src/views/asset-management/asset-information/components/BasicInfoCard.vue
@@ -369,7 +369,7 @@
>
启用此卡
停用此卡
- 手动停用
+
实名认证策略
diff --git a/src/views/asset-management/asset-information/components/CurrentPackageCard.vue b/src/views/asset-management/asset-information/components/CurrentPackageCard.vue
index cd082a7..ffe5a33 100644
--- a/src/views/asset-management/asset-information/components/CurrentPackageCard.vue
+++ b/src/views/asset-management/asset-information/components/CurrentPackageCard.vue
@@ -18,15 +18,14 @@
@@ -99,7 +98,7 @@
{{ getPackageTypeName(currentPackage.package_type) }}
{{ currentPackage.virtual_ratio || '-' }}
@@ -149,6 +148,7 @@
const userStore = useUserStore()
const { info: userInfo } = storeToRefs(userStore)
const isSuperAdmin = computed(() => userInfo.value.user_type === 1)
+ const isAdminOrPlatform = computed(() => userInfo.value.user_type === 1 || userInfo.value.user_type === 2)
// Props
interface Props {
diff --git a/src/views/asset-management/asset-information/composables/useAssetInfo.ts b/src/views/asset-management/asset-information/composables/useAssetInfo.ts
index 9f3077d..fe7facc 100644
--- a/src/views/asset-management/asset-information/composables/useAssetInfo.ts
+++ b/src/views/asset-management/asset-information/composables/useAssetInfo.ts
@@ -199,7 +199,11 @@ export function useAssetInfo() {
duration_days: undefined, // API 没有返回时长
virtual_ratio: pkg.virtual_ratio, // 虚流量比例
package_type: pkg.package_type, // 套餐类型
- enable_virtual_data: pkg.enable_virtual_data // 是否启用虚流量
+ enable_virtual_data: pkg.enable_virtual_data, // 是否启用虚流量
+ data_limit_mb: pkg.data_limit_mb,
+ virtual_limit_mb: pkg.virtual_limit_mb,
+ virtual_remain_mb: pkg.virtual_remain_mb,
+ data_usage_mb: pkg.data_usage_mb
}
// 同时更新 cardInfo 中的流量显示信息(根据是否启用虚流量选择数据源)
diff --git a/src/views/asset-management/asset-information/types.ts b/src/views/asset-management/asset-information/types.ts
index 2708b43..92f099c 100644
--- a/src/views/asset-management/asset-information/types.ts
+++ b/src/views/asset-management/asset-information/types.ts
@@ -91,6 +91,10 @@ export interface PackageInfo {
virtual_ratio?: number // 虚流量比例
package_type?: string // 套餐类型: formal(正式套餐)/ addon(加油包)
enable_virtual_data?: boolean // 是否启用虚流量
+ data_limit_mb?: number // 总量
+ virtual_limit_mb?: number // 虚流量上限
+ virtual_remain_mb?: number // 虚流量剩余
+ data_usage_mb?: number // 已用流量
}
// 钱包信息接口 (使用已有的 AssetWalletResponse)