You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
1.9 KiB
93 lines
1.9 KiB
<template>
|
|
<div style="padding: 16px;min-height: calc(100vh - 84px);display: flex; justify-content: center;align-items: center;">
|
|
<div class="div-box">
|
|
<div class="div-box-title"> 智能化衣柜 </div>
|
|
<div class="div-ul">
|
|
<div class="div-li">
|
|
<div>
|
|
<span>温度:</span>22.2℃
|
|
</div>
|
|
<div> <span>湿度:</span>50%
|
|
</div>
|
|
</div>
|
|
<!-- ON:开启 OFF:关闭 -->
|
|
<div class="div-li">
|
|
<div>
|
|
<span>除湿:</span>
|
|
<el-switch v-model="value2" active-color="#13ce66" inactive-color="#ff4949">
|
|
</el-switch>
|
|
</div>
|
|
<div>
|
|
<span>杀菌:</span>
|
|
<el-switch v-model="value2" active-color="#13ce66" inactive-color="#ff4949">
|
|
</el-switch>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="div-tips"><span>标签序列号:</span>AE0B01 </div>
|
|
</div>
|
|
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "Index",
|
|
data() {
|
|
return {
|
|
value2: false,
|
|
// 版本号
|
|
version: "3.8.9",
|
|
};
|
|
},
|
|
methods: {
|
|
goTarget(href) {
|
|
window.open(href, "_blank");
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.div-box {
|
|
width: 500px;
|
|
box-sizing: border-box;
|
|
padding: 16px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 10px;
|
|
|
|
.div-box-title {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
margin-bottom: 20px;
|
|
text-align: center;
|
|
border-bottom: 1px solid #ccc;
|
|
padding-bottom: 16px;
|
|
}
|
|
}
|
|
|
|
.div-ul {
|
|
.div-li>div:nth-of-type(1) {
|
|
border-right: 1px solid #ccc;
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.div-li {
|
|
font-size: 18px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
div {
|
|
flex: 1
|
|
}
|
|
span {
|
|
color: #666;
|
|
}
|
|
}
|
|
}
|
|
.div-tips{
|
|
span {
|
|
color: #666;
|
|
}
|
|
}
|
|
</style>
|
|
|