|
@@ -34,7 +34,7 @@
|
|
</div>
|
|
</div>
|
|
<!--温度调节-->
|
|
<!--温度调节-->
|
|
<div
|
|
<div
|
|
- v-if="!showChild"
|
|
|
|
|
|
+ v-if="!showChild && airData.runStatus"
|
|
:style="{ opacity: loadingAir || !airData.runStatus ? '0.4' : '1' }"
|
|
:style="{ opacity: loadingAir || !airData.runStatus ? '0.4' : '1' }"
|
|
>
|
|
>
|
|
<div class="air-control air-control-padding">
|
|
<div class="air-control air-control-padding">
|
|
@@ -224,7 +224,7 @@
|
|
? 'disable-color'
|
|
? 'disable-color'
|
|
: ''
|
|
: ''
|
|
"
|
|
"
|
|
- @click="changeChildItemAir('gear', childItem, 'updown')"
|
|
|
|
|
|
+ @click="changeChildItemAir('gear', childItem, 'down')"
|
|
class="adjust-icon"
|
|
class="adjust-icon"
|
|
/>
|
|
/>
|
|
<span class="adjust-title">档位</span>
|
|
<span class="adjust-title">档位</span>
|
|
@@ -393,7 +393,9 @@ export default defineComponent({
|
|
left = Math.floor(left);
|
|
left = Math.floor(left);
|
|
proxyData.realTemp = proxyData.airTemp;
|
|
proxyData.realTemp = proxyData.airTemp;
|
|
let barBox: any = document.querySelector("#barId");
|
|
let barBox: any = document.querySelector("#barId");
|
|
- barBox.style.left = left + "px";
|
|
|
|
|
|
+ if (barBox) {
|
|
|
|
+ barBox.style.left = left + "px";
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 滑动
|
|
// 滑动
|
|
endBoxSwiper() {
|
|
endBoxSwiper() {
|
|
@@ -459,7 +461,7 @@ export default defineComponent({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 定时获取空调状态
|
|
// 定时获取空调状态
|
|
- getAirInfoToTimer(timerLong: any = 3000) {
|
|
|
|
|
|
+ getAirInfoToTimer(timerLong: any = 15000) {
|
|
if (proxyData.airTimer) {
|
|
if (proxyData.airTimer) {
|
|
clearTimeout(proxyData.airTimer);
|
|
clearTimeout(proxyData.airTimer);
|
|
}
|
|
}
|
|
@@ -720,7 +722,9 @@ export default defineComponent({
|
|
proxyData.setBarNowPerstion();
|
|
proxyData.setBarNowPerstion();
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
- proxyData.setBarNowPerstion();
|
|
|
|
|
|
+ nextTick(() => {
|
|
|
|
+ proxyData.setBarNowPerstion();
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -729,8 +733,8 @@ export default defineComponent({
|
|
const paramObj = {
|
|
const paramObj = {
|
|
// // projectId: props.projectId, //'Pj1101080255'
|
|
// // projectId: props.projectId, //'Pj1101080255'
|
|
// projectId: "Pj1101080255",
|
|
// projectId: "Pj1101080255",
|
|
- spaceId: "Sp110108025564f438d7fef64eea8202a6462f1bbcce",
|
|
|
|
- // spaceId: props.spaceId,
|
|
|
|
|
|
+ // spaceId: "Sp110108025564f438d7fef64eea8202a6462f1bbcce",
|
|
|
|
+ spaceId: props.spaceId,
|
|
// spaceId: props.spaceId,//'Sp110108025564f438d7fef64eea8202a6462f1bbcce' 空间id
|
|
// spaceId: props.spaceId,//'Sp110108025564f438d7fef64eea8202a6462f1bbcce' 空间id
|
|
};
|
|
};
|
|
//wx.showLoading();
|
|
//wx.showLoading();
|
|
@@ -764,7 +768,7 @@ export default defineComponent({
|
|
);
|
|
);
|
|
}
|
|
}
|
|
proxyData.barSwiperInit();
|
|
proxyData.barSwiperInit();
|
|
- proxyData.getAirInfoToTimer(3000);
|
|
|
|
|
|
+ proxyData.getAirInfoToTimer();
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
},
|
|
},
|
|
@@ -837,10 +841,10 @@ export default defineComponent({
|
|
display: inline-block;
|
|
display: inline-block;
|
|
width: 50%;
|
|
width: 50%;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- padding: 0px 10px 10px 10px;
|
|
|
|
- margin-top: 10px;
|
|
|
|
|
|
+ padding: 10px 10px 10px 10px;
|
|
|
|
+ // margin-top: 10px;
|
|
// padding-right: 10px;
|
|
// padding-right: 10px;
|
|
- border-bottom: 1px solid rgba(196, 196, 196, 0.4);
|
|
|
|
|
|
+ border-top: 1px solid rgba(196, 196, 196, 0.4);
|
|
&:nth-child(2n + 1) {
|
|
&:nth-child(2n + 1) {
|
|
border-right: 1px solid rgba(196, 196, 196, 0.4);
|
|
border-right: 1px solid rgba(196, 196, 196, 0.4);
|
|
}
|
|
}
|