From 8bf89dbe573b59a06cfa8240facc102abe3ec358 Mon Sep 17 00:00:00 2001
From: sexygoat <1538832180@qq.com>
Date: Wed, 15 Apr 2026 16:10:20 +0800
Subject: [PATCH] fix: status
---
components/FunctionCard.vue | 2 +-
components/UserInfoCard.vue | 4 ++--
pages/index/index.vue | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/components/FunctionCard.vue b/components/FunctionCard.vue
index 7ec88c4..7d844f3 100644
--- a/components/FunctionCard.vue
+++ b/components/FunctionCard.vue
@@ -39,7 +39,7 @@
切换运营商
-
+
diff --git a/components/UserInfoCard.vue b/components/UserInfoCard.vue
index 3f7a677..6c045e6 100644
--- a/components/UserInfoCard.vue
+++ b/components/UserInfoCard.vue
@@ -15,7 +15,7 @@
{{ onlineStatus }}
- {{ status }}
+ {{ networkStatus === 0 ? '停机' : '正常' }}
@@ -32,7 +32,7 @@
deviceInfo: { type: Object, default: () => ({}) },
onlineStatus: { type: String, default: '离线' },
isDevice: { type: Boolean, default: true },
- status: { type: [String, Number], default: '' }
+ networkStatus: { type: Number, default: 1 }
});
// 默认头像
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 712be9e..4ad9fb9 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -144,7 +144,7 @@
let deviceInfo = reactive({
battery: 0,
connect: 0,
- status: 1,
+ network_status: 1,
expireDate: '-',
currentIccid: '-',
category: '-',
@@ -214,7 +214,7 @@
// 基本信息
userInfo.isDevice = data.asset_type === 'device';
currentCardNo.value = data.identifier || '-';
- deviceInfo.status = data.status;
+ deviceInfo.network_status = data.network_status;
deviceInfo.imei = data.imei || '-';
deviceInfo.asset_type = data.asset_type || 'device';
deviceInfo.bound_phone = data.bound_phone || '';