|
@@ -208,21 +208,23 @@ export default defineComponent({
|
|
|
}
|
|
|
if (item.hcho || item.hcho == 0) {
|
|
|
let obj = proxyData.checkLevel(item.hcho, "hcho");
|
|
|
- // proxyData.envlist[1].levelTxt = obj.levelTxt;
|
|
|
+ proxyData.envlist[1].levelTxt = obj.levelTxt;
|
|
|
proxyData.envlist[1].num = item.hcho;
|
|
|
} else {
|
|
|
- // proxyData.envlist[1].levelTxt = "";
|
|
|
+ proxyData.envlist[1].levelTxt = "";
|
|
|
proxyData.envlist[1].num = "--";
|
|
|
}
|
|
|
if (item.temperature || item.temperature == 0) {
|
|
|
proxyData.envlist[2].num = item.temperature;
|
|
|
+ proxyData.envlist[2].levelTxt = "℃";
|
|
|
}
|
|
|
if (item.humidity || item.humidity == 0) {
|
|
|
let obj = proxyData.checkLevel(item.humidity, "humidity");
|
|
|
- // proxyData.envlist[3].levelTxt = obj.levelTxt;
|
|
|
+ proxyData.envlist[3].levelTxt = "%";
|
|
|
proxyData.envlist[3].num = item.humidity;
|
|
|
} else {
|
|
|
proxyData.envlist[3].num = "--";
|
|
|
+ proxyData.envlist[3].levelTxt = "%";
|
|
|
// proxyData.envlist[3].levelTxt = "";
|
|
|
}
|
|
|
}
|
|
@@ -392,7 +394,10 @@ export default defineComponent({
|
|
|
}
|
|
|
|
|
|
.env-box {
|
|
|
- width: 11.7vw;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 40rpx;
|
|
|
+ min-width: 11.7vw;
|
|
|
+ max-width: 13.5vw;
|
|
|
// height: 70.8vh;
|
|
|
color: #fff;
|
|
|
border: 2px solid rgba(255, 255, 255, 0.2);
|
|
@@ -447,7 +452,7 @@ export default defineComponent({
|
|
|
.num {
|
|
|
font-family: Montserrat;
|
|
|
color: #fff;
|
|
|
- font-size: 20.4px;
|
|
|
+ font-size: 20px;
|
|
|
font-weight: 600;
|
|
|
line-height: 26.66px;
|
|
|
margin-right: 4px;
|
|
@@ -455,7 +460,7 @@ export default defineComponent({
|
|
|
.text {
|
|
|
font-family: PingFang SC;
|
|
|
color: #fff;
|
|
|
- font-size: 20.4px;
|
|
|
+ font-size: 16px;
|
|
|
font-weight: 600;
|
|
|
line-height: 26.66px;
|
|
|
white-space: nowrap;
|