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 @@