fix: status
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 46s

This commit is contained in:
sexygoat
2026-04-15 16:01:14 +08:00
parent a30a689dba
commit 6da9353203
2 changed files with 12 additions and 4 deletions

View File

@@ -11,9 +11,12 @@
<view class="caption" v-if="isDevice">IMEI{{ deviceInfo.imei || '-' }}</view>
<view class="caption" v-else>手机号{{ deviceInfo.bound_phone || '-' }}</view>
</view>
<view class="tag-apple" :class="onlineStatus === '在线' ? 'tag-success' : 'tag-warning'">
<view v-if="isDevice" class="tag-apple" :class="onlineStatus === '在线' ? 'tag-success' : 'tag-warning'">
{{ onlineStatus }}
</view>
<view v-else class="status-text">
{{ status }}
</view>
</view>
</view>
</template>
@@ -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);
}
}
</style>