|
@@ -70,7 +70,9 @@
|
|
|
<div class="volume-icon">
|
|
|
<div
|
|
|
class="icon-item"
|
|
|
- :style="{ opacity: airData.gear <= 1 ? '0.6' : 1 }"
|
|
|
+ :style="{
|
|
|
+ opacity: airData.gear <= 1 ? '0.6' : 1,
|
|
|
+ }"
|
|
|
@click="changeZongAir('gear', 'windLow')"
|
|
|
>
|
|
|
<img :src="parseImgUrl('ipdImages', 'wind_small.png')" />
|
|
@@ -380,6 +382,7 @@ export default defineComponent({
|
|
|
} else {
|
|
|
proxyData.lightIcon = "arrow-up";
|
|
|
}
|
|
|
+ proxyData.barSwiperInit();
|
|
|
},
|
|
|
// 设置温度条的位置
|
|
|
setBarNowPerstion() {
|
|
@@ -505,7 +508,7 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
if (btnType == "gear" && text == "auto") {
|
|
|
- proxyData.airData.isAutoGear == 1 ? 0 : 1;
|
|
|
+ proxyData.airData.isAutoGear = 1;
|
|
|
obj.value = proxyData.airData.isAutoGear ? 4 : proxyData.airData.gear;
|
|
|
obj.codeKey = "gearCode";
|
|
|
}
|
|
@@ -707,6 +710,19 @@ export default defineComponent({
|
|
|
item.isOpen = item.runStatus === 1 ? true : false;
|
|
|
});
|
|
|
},
|
|
|
+ // 初始化滚动
|
|
|
+ barSwiperInit() {
|
|
|
+ if (proxyData.airData.isOpen && !proxyData.showChild) {
|
|
|
+ if (!proxyData.swiperIinit) {
|
|
|
+ nextTick(() => {
|
|
|
+ proxyData.endBoxSwiper();
|
|
|
+ proxyData.setBarNowPerstion();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ proxyData.setBarNowPerstion();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
// 空调信息airTemp
|
|
|
getAirInfo() {
|
|
|
const paramObj = {
|
|
@@ -746,18 +762,7 @@ export default defineComponent({
|
|
|
"air_close.png"
|
|
|
);
|
|
|
}
|
|
|
-
|
|
|
- if (proxyData.airData.isOpen) {
|
|
|
- if (!proxyData.swiperIinit) {
|
|
|
- nextTick(() => {
|
|
|
- proxyData.endBoxSwiper();
|
|
|
- proxyData.setBarNowPerstion();
|
|
|
- });
|
|
|
- } else {
|
|
|
- proxyData.setBarNowPerstion();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
+ proxyData.barSwiperInit();
|
|
|
proxyData.getAirInfoToTimer(3000);
|
|
|
})
|
|
|
.catch(() => {});
|