From 02e5b80a9f9b35e09539db301c2a31a64b315e1e Mon Sep 17 00:00:00 2001 From: xiaosi <2652281683@qq.com> Date: Mon, 31 Aug 2026 10:14:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B4=A6=E6=88=B7=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E9=A1=B5=E7=AD=BE=E4=B8=8E=E5=88=97=E8=A1=A8=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=B0=20TDesign?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AccountView/AccountView.vue | 193 +++++++++++++++++++++++--- 1 file changed, 176 insertions(+), 17 deletions(-) diff --git a/src/views/AccountView/AccountView.vue b/src/views/AccountView/AccountView.vue index c692671..696d840 100644 --- a/src/views/AccountView/AccountView.vue +++ b/src/views/AccountView/AccountView.vue @@ -10,13 +10,13 @@
-
- - - - - -
+ + + + + + +
- -
暂无流量订单
+ + + + + + + - -
暂无流量消费记录
+ + + + + + + + -
暂无下载记录
+ + + + + + +
{{ simTotal }}通信卡总数
{{ activeSimCount }}正常
{{ warnSimCount }}异常或未同步
-
运营商ICCID / 号码绑定机巢套餐用量状态最后同步操作
{{ c.carrier || '--' }}{{ c.iccid || '--' }}{{ c.phone || '--' }}{{ c.dockId || '--' }}{{ c.lastSyncAt ? `${Number(c.usedGb || 0).toFixed(1)} / ${c.planGb || 0} GB` : '暂无运营商同步数据' }}{{ simStatus(c).name }}{{ fmtTime(c.lastSyncAt) }}运营商通道未接入
暂无通信卡
+ + + + + + + + + -
暂无通信卡充值记录
+ + + + + + + +
-
登录手机号{{ maskPhone(profilePhone) }}
绑定邮箱{{ profileEmail }}
登录会话共 {{ sessions.length }} 个有效会话退出其他设备
暂无有效会话
+
+ +
+
登录手机号{{ maskPhone(profilePhone) }}
+
绑定邮箱{{ profileEmail }}
+
登录会话共 {{ sessions.length }} 个有效会话退出其他设备
+
+ + + + + + + + +
-
保存默认发票资料
可申请订单提交开具发票
暂无发票申请
+
+ +
+
+ + + + 保存默认发票资料 +
+
+ 可申请订单 + + 提交开具发票 +
+
+ + + + + + + + +
profile.value?.name || '--') const profilePhone = computed(() => profile.value?.phone || '--') const profileEmail = computed(() => profile.value?.email || '--') @@ -153,6 +281,11 @@ const invoiceOrderOptions = computed(() => [{ label: '请选择已支付订单', const activeSimCount = computed(() => simCards.value.filter((card) => simStatus(card).cls === 'normal').length) const warnSimCount = computed(() => simTotal.value - activeSimCount.value) +function applyPage(targetRef, page) { + const records = page?.records || [] + targetRef.value = records + return { total: page?.total || 0, pages: page?.pages || 1 } +} function fmtTime(value) { const date = new Date(value); return value && !Number.isNaN(date.getTime()) ? date.toLocaleString('zh-CN', { hour12: false }) : '--' } function fmtGb(bytes) { return bytes == null ? '--' : `${(Number(bytes) / 1024 / 1024 / 1024).toFixed(2)} GB` } function money(value) { return value == null ? '--' : `¥${Number(value).toFixed(2)}` } @@ -194,6 +327,32 @@ onMounted(load) + \ No newline at end of file