diff --git a/components/UserInfoCard.vue b/components/UserInfoCard.vue
index 15b6ebe..3f7a677 100644
--- a/components/UserInfoCard.vue
+++ b/components/UserInfoCard.vue
@@ -11,9 +11,12 @@
IMEI:{{ deviceInfo.imei || '-' }}
手机号:{{ deviceInfo.bound_phone || '-' }}
-
+
{{ onlineStatus }}
+
+ {{ status }}
+
@@ -28,7 +31,8 @@
currentCardNo: { type: String, default: '' },
deviceInfo: { type: Object, default: () => ({}) },
onlineStatus: { type: String, default: '离线' },
- isDevice: { type: Boolean, default: true }
+ isDevice: { type: Boolean, default: true },
+ status: { type: [String, Number], default: '' }
});
// 默认头像
@@ -52,5 +56,9 @@
image { width: 100%; height: 100%; object-fit: cover; }
}
.user-details { flex: 1; }
+ .status-text {
+ font-size: 24rpx;
+ color: var(--text-secondary);
+ }
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 9562507..712be9e 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -214,7 +214,7 @@
// 基本信息
userInfo.isDevice = data.asset_type === 'device';
currentCardNo.value = data.identifier || '-';
- deviceInfo.status = data.status || 1;
+ deviceInfo.status = data.status;
deviceInfo.imei = data.imei || '-';
deviceInfo.asset_type = data.asset_type || 'device';
deviceInfo.bound_phone = data.bound_phone || '';