Browse Source

单独打开关闭

master
maochaoying 2 years ago
parent
commit
c28ce54c19
  1. 12
      src/components/Test.vue

12
src/components/Test.vue

@ -95,7 +95,7 @@
<div class="btn_wrap"> <div class="btn_wrap">
<div <div
:class=" :class="
testStore.airCompressor ? 'close style-btn mg' : 'open style-btn mg'
testStore.airCompressor ? 'open style-btn mg' : 'close style-btn mg'
" "
@click="changeAirStatus(1)" @click="changeAirStatus(1)"
> >
@ -103,7 +103,7 @@
</div> </div>
<div <div
:class=" :class="
!testStore.airCompressor ? 'close style-btn' : 'open style-btn'
!testStore.airCompressor ? 'open style-btn' : 'close style-btn'
" "
@click="changeAirStatus(2)" @click="changeAirStatus(2)"
> >
@ -117,14 +117,14 @@
<div class="btn_wrap"> <div class="btn_wrap">
<div <div
:class=" :class="
testStore.draughtFan ? 'close style-btn mg' : 'open style-btn mg'
testStore.draughtFan ? 'open style-btn mg' : 'close style-btn mg'
" "
@click="changeDraughtStatus(1)" @click="changeDraughtStatus(1)"
> >
打开 打开
</div> </div>
<div <div
:class="!testStore.draughtFan ? 'close style-btn ' : 'open style-btn'"
:class="!testStore.draughtFan ? 'open style-btn ' : 'close style-btn'"
@click="changeDraughtStatus(2)" @click="changeDraughtStatus(2)"
> >
关闭 关闭
@ -137,7 +137,7 @@
<div class="btn_wrap"> <div class="btn_wrap">
<div <div
:class=" :class="
testStore.heatingStrip ? 'close style-btn mg' : 'open style-btn mg'
testStore.heatingStrip ? 'open style-btn mg' : 'close style-btn mg'
" "
@click="changeHeatingStatus(1)" @click="changeHeatingStatus(1)"
> >
@ -145,7 +145,7 @@
</div> </div>
<div <div
:class=" :class="
!testStore.heatingStrip ? 'close style-btn' : 'open style-btn'
!testStore.heatingStrip ? 'open style-btn' : 'close style-btn'
" "
@click="changeHeatingStatus(2)" @click="changeHeatingStatus(2)"
> >

Loading…
Cancel
Save