This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
<view v-if="isDevice" class="tag-apple" :class="onlineStatus === '在线' ? 'tag-success' : 'tag-warning'">
|
||||
{{ onlineStatus }}
|
||||
</view>
|
||||
<view v-else class="status-text">
|
||||
{{ networkStatus === 0 ? '停机' : '正常' }}
|
||||
<view v-else class="tag-apple">
|
||||
{{ onlineStatus }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -31,8 +31,7 @@
|
||||
currentCardNo: { type: String, default: '' },
|
||||
deviceInfo: { type: Object, default: () => ({}) },
|
||||
onlineStatus: { type: String, default: '离线' },
|
||||
isDevice: { type: Boolean, default: true },
|
||||
networkStatus: { type: Number, default: 1 }
|
||||
isDevice: { type: Boolean, default: true }
|
||||
});
|
||||
|
||||
// 默认头像
|
||||
@@ -56,9 +55,5 @@
|
||||
image { width: 100%; height: 100%; object-fit: cover; }
|
||||
}
|
||||
.user-details { flex: 1; }
|
||||
.status-text {
|
||||
font-size: 24rpx;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user