congming_huose-apk/pages/device-detail.vue

73 lines
1.0 KiB
Vue
Raw Permalink Normal View History

2025-11-08 11:30:06 +08:00
<template>
<view class="device-detail">
<view class="header">
<text class="title">设备详情</text>
</view>
<view class="content">
<view class="device-info">
<text class="label">设备名称</text>
<text class="value">智能设备</text>
</view>
<view class="device-info">
<text class="label">设备状态</text>
<text class="value">在线</text>
</view>
<view class="device-info">
<text class="label">设备类型</text>
<text class="value">智能开关</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
.device-detail {
padding: 20rpx;
}
.header {
text-align: center;
padding: 20rpx 0;
}
.title {
font-size: 36rpx;
font-weight: bold;
color: #333;
}
.content {
margin-top: 40rpx;
}
.device-info {
display: flex;
padding: 20rpx 0;
border-bottom: 1rpx solid #eee;
}
.label {
flex: 1;
color: #666;
font-size: 28rpx;
}
.value {
flex: 2;
color: #333;
font-size: 28rpx;
}
</style>