Browse Source

优化代码样式,增加泳池用水、制冷风盘、制热风盘、生活热水模式

dev_230517
zhangzhiyi 1 year ago
parent
commit
292b557ae9
  1. BIN
      src/assets/imgs/device-detail/normal-mode/annual_wet_select@2x.png
  2. BIN
      src/assets/imgs/device-detail/normal-mode/auto_select@2x.png
  3. BIN
      src/assets/imgs/device-detail/normal-mode/auto_wet_select@2x.png
  4. BIN
      src/assets/imgs/device-detail/normal-mode/cold_wind@2x.png
  5. BIN
      src/assets/imgs/device-detail/normal-mode/cold_wind_select@2x.png
  6. BIN
      src/assets/imgs/device-detail/normal-mode/dry_wet_select@2x.png
  7. BIN
      src/assets/imgs/device-detail/normal-mode/floor_select@2x.png
  8. BIN
      src/assets/imgs/device-detail/normal-mode/hot_floor_select@2x.png
  9. BIN
      src/assets/imgs/device-detail/normal-mode/hot_select@2x.png
  10. BIN
      src/assets/imgs/device-detail/normal-mode/hot_water@2x.png
  11. BIN
      src/assets/imgs/device-detail/normal-mode/hot_water_select@2x.png
  12. BIN
      src/assets/imgs/device-detail/normal-mode/hot_wind@2x.png
  13. BIN
      src/assets/imgs/device-detail/normal-mode/hot_wind_select@2x.png
  14. BIN
      src/assets/imgs/device-detail/normal-mode/relax_select@2x.png
  15. BIN
      src/assets/imgs/device-detail/normal-mode/shut_down_hot_water@2x.png
  16. BIN
      src/assets/imgs/device-detail/normal-mode/shut_down_swimming_water@2x.png
  17. BIN
      src/assets/imgs/device-detail/normal-mode/shut_down_wind_tur@2x.png
  18. BIN
      src/assets/imgs/device-detail/normal-mode/sleep_select@2x.png
  19. BIN
      src/assets/imgs/device-detail/normal-mode/strong_wet_select@2x.png
  20. BIN
      src/assets/imgs/device-detail/normal-mode/swimming_water@2x.png
  21. BIN
      src/assets/imgs/device-detail/normal-mode/swimming_water_select@2x.png
  22. 0
      src/assets/imgs/device-detail/normal-mode/wet_floor@2x.png
  23. BIN
      src/assets/imgs/device-detail/normal-mode/wet_floor_select@2x.png
  24. BIN
      src/assets/imgs/device-detail/normal-mode/wet_select@2x.png
  25. BIN
      src/assets/imgs/device-detail/normal-mode/wind_select@2x.png
  26. BIN
      src/assets/imgs/home-screen/backups@2x.png
  27. 7
      src/components/mode-change.vue
  28. 8
      src/view/device-detail/mode/enmu/mode.enmu.ts
  29. 76
      src/view/device-detail/mode/mode-dic.ts
  30. 11
      src/view/device-detail/mode/normal.vue
  31. 5
      src/view/device-detail/mode/wind-dic.ts
  32. 7
      src/view/tabs/device-control.vue
  33. 17
      src/view/tabs/home-screen.vue

BIN
src/assets/imgs/device-detail/normal-mode/annual_wet_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
src/assets/imgs/device-detail/normal-mode/auto_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
src/assets/imgs/device-detail/normal-mode/auto_wet_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
src/assets/imgs/device-detail/normal-mode/cold_wind@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
src/assets/imgs/device-detail/normal-mode/cold_wind_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
src/assets/imgs/device-detail/normal-mode/dry_wet_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
src/assets/imgs/device-detail/normal-mode/floor_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
src/assets/imgs/device-detail/normal-mode/hot_floor_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
src/assets/imgs/device-detail/normal-mode/hot_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

BIN
src/assets/imgs/device-detail/normal-mode/hot_water@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
src/assets/imgs/device-detail/normal-mode/hot_water_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
src/assets/imgs/device-detail/normal-mode/hot_wind@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
src/assets/imgs/device-detail/normal-mode/hot_wind_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
src/assets/imgs/device-detail/normal-mode/relax_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
src/assets/imgs/device-detail/normal-mode/shut_down_hot_water@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
src/assets/imgs/device-detail/normal-mode/shut_down_swimming_water@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
src/assets/imgs/device-detail/normal-mode/shut_down_wind_tur@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
src/assets/imgs/device-detail/normal-mode/sleep_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
src/assets/imgs/device-detail/normal-mode/strong_wet_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

BIN
src/assets/imgs/device-detail/normal-mode/swimming_water@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
src/assets/imgs/device-detail/normal-mode/swimming_water_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

0
src/assets/imgs/device-detail/normal-mode/auto_floor@2x.png → src/assets/imgs/device-detail/normal-mode/wet_floor@2x.png

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
src/assets/imgs/device-detail/normal-mode/wet_floor_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
src/assets/imgs/device-detail/normal-mode/wet_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

BIN
src/assets/imgs/device-detail/normal-mode/wind_select@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
src/assets/imgs/home-screen/backups@2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

7
src/components/mode-change.vue

@ -24,9 +24,9 @@
:key="index" :key="index"
> >
<div class="mode-card-top" :class="{'mode-card-selected': item.selected}" @click="switchMode(item, index)"> <div class="mode-card-top" :class="{'mode-card-selected': item.selected}" @click="switchMode(item, index)">
<img src="@/assets/imgs/device-detail/normal-mode/circle-bg@2x.png" v-if="!item.selected" class="circle-bg"> <img src="@/assets/imgs/device-detail/normal-mode/circle-bg@2x.png" v-show="!item.selected" class="circle-bg">
<img :src="getImgSrc(item.selectModeBg)" v-if="item.selected" class="circle-bg"> <img :src="getImgSrc(item.selectModeBg)" v-show="item.selected" class="circle-bg">
<img :src="getImgSrc(item.modeImg)" class="mode-img"> <img :src="getImgSrc(item.modeImg)" class="mode-img" :style="{visibility: (item.selected? 'hidden': 'visible')}">
</div> </div>
<div class="mode-card-btm"> <div class="mode-card-btm">
{{ item.modeName }} {{ item.modeName }}
@ -133,7 +133,6 @@ const switchMode = (changeMode: any, index: number) => {
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
opacity: 0.4;
} }
} }

8
src/view/device-detail/mode/enmu/mode.enmu.ts

@ -28,4 +28,12 @@ export enum Mode {
HOT_FLOOR, HOT_FLOOR,
/** 除湿+地暖 */ /** 除湿+地暖 */
WET_FLOOR, WET_FLOOR,
/** 制冷风盘 */
COLD_WIND,
/** 制热风盘 */
HOT_WIND,
/** 生活热水 */
HOT_WATER,
/** 泳池用水 */
SWIMMING_WATER,
} }

76
src/view/device-detail/mode/mode-dic.ts

@ -24,7 +24,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_cold@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_cold@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_cold@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/cold_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_cold@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_cold@2x.png',
}, { }, {
modeName: '除湿', modeName: '除湿',
@ -36,7 +36,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_wet@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_wet@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_wet@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/wet_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png',
}, { }, {
modeName: '干爽除湿', modeName: '干爽除湿',
@ -48,7 +48,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_dry_wet@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_dry_wet@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_wet@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/dry_wet_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png',
}, { }, {
modeName: '强力除湿', modeName: '强力除湿',
@ -60,7 +60,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_strong_wet@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_strong_wet@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_wet@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/strong_wet_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png',
}, { }, {
modeName: '自动除湿', modeName: '自动除湿',
@ -72,7 +72,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_auto_wet@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_auto_wet@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_wet@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/auto_wet_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png',
}, { }, {
modeName: '全年除湿', modeName: '全年除湿',
@ -84,7 +84,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_annual_wet@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_annual_wet@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_wet@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/annual_wet_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png',
}, { }, {
modeName: '舒爽', modeName: '舒爽',
@ -96,7 +96,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_relax@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_relax@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_wind@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/relax_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wind@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wind@2x.png',
}, { }, {
modeName: '舒心睡眠', modeName: '舒心睡眠',
@ -108,7 +108,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_sleep@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_sleep@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_wet@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/sleep_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png',
}, { }, {
modeName: '制热', modeName: '制热',
@ -120,7 +120,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_hot@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_hot@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_hot@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/hot_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_hot@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_hot@2x.png',
}, { }, {
modeName: '送风', modeName: '送风',
@ -132,7 +132,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_wind@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_wind@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_wind@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/wind_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wind@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wind@2x.png',
}, { }, {
modeName: '自动', modeName: '自动',
@ -144,7 +144,7 @@ const ModeOptions = [
selectSwitchImg: '/assets/imgs/device-detail/normal-mode/switch_wind@2x.png', selectSwitchImg: '/assets/imgs/device-detail/normal-mode/switch_wind@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_wind@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/auto_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wind@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wind@2x.png',
}, { }, {
modeName: '地暖', modeName: '地暖',
@ -156,7 +156,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_floor@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_floor@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_hot@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/floor_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_hot@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_hot@2x.png',
}, { }, {
modeName: '制热+地暖', modeName: '制热+地暖',
@ -168,7 +168,7 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_hot_floor@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_hot_floor@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_hot@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/hot_floor_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_hot@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_hot@2x.png',
}, { }, {
modeName: '除湿+地暖', modeName: '除湿+地暖',
@ -180,8 +180,56 @@ const ModeOptions = [
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_hot_floor@2x.png', shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_hot_floor@2x.png',
shutdownSwitchImg: '', shutdownSwitchImg: '',
selected: false, selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/mode_select_bg_wet@2x.png', selectModeBg: '/assets/imgs/device-detail/normal-mode/wet_floor@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png', windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_wet@2x.png',
}, {
modeName: '制冷风盘',
mode: Mode.COLD_WIND,
modeImg: '/assets/imgs/device-detail/normal-mode/cold_wind@2x.png',
nomalBg: '/assets/imgs/device-detail/normal-mode/normal_bg_cold@2x.png',
smartBg: '',
selectSwitchImg: '/assets/imgs/device-detail/normal-mode/switch_cold@2x.png',
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_wind_tur@2x.png',
shutdownSwitchImg: '',
selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/cold_wind_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_cold@2x.png',
}, {
modeName: '制热风盘',
mode: Mode.HOT_WIND,
modeImg: '/assets/imgs/device-detail/normal-mode/hot_wind@2x.png',
nomalBg: '/assets/imgs/device-detail/normal-mode/normal_bg_hot@2x.png',
smartBg: '',
selectSwitchImg: '/assets/imgs/device-detail/normal-mode/switch_hot@2x.png',
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_wind_tur@2x.png',
shutdownSwitchImg: '',
selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/hot_wind_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_hot@2x.png',
}, {
modeName: '生活热水',
mode: Mode.HOT_WATER,
modeImg: '/assets/imgs/device-detail/normal-mode/hot_water@2x.png',
nomalBg: '/assets/imgs/device-detail/normal-mode/normal_bg_hot@2x.png',
smartBg: '',
selectSwitchImg: '/assets/imgs/device-detail/normal-mode/switch_hot@2x.png',
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_hot_water@2x.png',
shutdownSwitchImg: '',
selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/hot_water_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_hot@2x.png',
}, {
modeName: '泳池用水',
mode: Mode.SWIMMING_WATER,
modeImg: '/assets/imgs/device-detail/normal-mode/swimming_water@2x.png',
nomalBg: '/assets/imgs/device-detail/normal-mode/normal_bg_cold@2x.png',
smartBg: '',
selectSwitchImg: '/assets/imgs/device-detail/normal-mode/switch_cold@2x.png',
shutdownImg: '/assets/imgs/device-detail/normal-mode/shut_down_swimming_water@2x.png',
shutdownSwitchImg: '',
selected: false,
selectModeBg: '/assets/imgs/device-detail/normal-mode/swimming_water_select@2x.png',
windDireImg: '/assets/imgs/device-detail/normal-mode/horiz_swing_cold@2x.png',
} }
] ]

11
src/view/device-detail/mode/normal.vue

@ -182,8 +182,15 @@ onBeforeMount(() => {
currentOptions.value = {...tempOptions.value}; currentOptions.value = {...tempOptions.value};
treatOptions.value = {...humiOptions.value}; treatOptions.value = {...humiOptions.value};
// todo:: // todo::
const modeArr = [Mode.COLD, Mode.WET, Mode.HOT, Mode.WIND, Mode.FLOOR, Mode.HOT_FLOOR, Mode.AUTO]; let modeArr: any = [];
modeArr.forEach(item => { if (props.deviceType === '4E') {
mode.value = Mode.FLOOR;
modeArr = [Mode.COLD_WIND, Mode.HOT_WIND, Mode.FLOOR, Mode.HOT_WATER, Mode.SWIMMING_WATER];
} else {
mode.value = Mode.COLD;
modeArr = [Mode.COLD, Mode.WET, Mode.HOT, Mode.WIND, Mode.FLOOR, Mode.HOT_FLOOR, Mode.AUTO];
}
modeArr.forEach((item: any) => {
modeList.value.push(modeOptions.find((item1: any) => item1.mode === item)); modeList.value.push(modeOptions.find((item1: any) => item1.mode === item));
}) })
settableWind.value = [Wind.AUTO, Wind.SUPER_LOW, Wind.LOW, Wind.MIDDLE, Wind.HIGH, Wind.SUPER_HIGH]; settableWind.value = [Wind.AUTO, Wind.SUPER_LOW, Wind.LOW, Wind.MIDDLE, Wind.HIGH, Wind.SUPER_HIGH];

5
src/view/device-detail/mode/wind-dic.ts

@ -89,13 +89,14 @@ const WindOptions: any = [
} }
]; ];
ModeOptions.forEach(item => { ModeOptions.forEach(item => {
if (item.mode === Mode.COLD) { if (item.mode === Mode.COLD || item.mode === Mode.COLD_WIND || item.mode === Mode.SWIMMING_WATER) {
const windOption = {...coldWind}; const windOption = {...coldWind};
windOption.mode = item.mode; windOption.mode = item.mode;
WindOptions.push(windOption); WindOptions.push(windOption);
} else if ( } else if (
item.mode === Mode.WET || item.mode === Mode.DRY_WET || item.mode === Mode.STRONG_WET item.mode === Mode.WET || item.mode === Mode.DRY_WET || item.mode === Mode.STRONG_WET
|| item.mode === Mode.ANNUAL_WET || item.mode === Mode.AUTO_WET || item.mode === Mode.SLEEP || item.mode === Mode.WET_FLOOR || item.mode === Mode.ANNUAL_WET || item.mode === Mode.AUTO_WET || item.mode === Mode.SLEEP
|| item.mode === Mode.WET_FLOOR || item.mode === Mode.HOT_WATER || item.mode === Mode.HOT_WIND
) { ) {
const windOption = {...wetWind}; const windOption = {...wetWind};
windOption.mode = item.mode; windOption.mode = item.mode;

7
src/view/tabs/device-control.vue

@ -217,7 +217,6 @@ const goToDetail = (item: any) => {
.device-card { .device-card {
box-sizing: border-box; box-sizing: border-box;
width: 326px; width: 326px;
height: 146px;
background: #20252E; background: #20252E;
border-radius: 16px; border-radius: 16px;
padding: 22px 24px 10px 24px; padding: 22px 24px 10px 24px;
@ -229,7 +228,7 @@ const goToDetail = (item: any) => {
.device-name { .device-name {
color: #FFF; color: #FFF;
font-size: 24px; font-size: 28px;
margin-right: 10px; margin-right: 10px;
padding: 6px 0; padding: 6px 0;
} }
@ -270,7 +269,7 @@ const goToDetail = (item: any) => {
} }
.status { .status {
font-size: 40px; font-size: 54px;
font-weight: 300; font-weight: 300;
margin-right: 4px; margin-right: 4px;
} }
@ -289,7 +288,7 @@ const goToDetail = (item: any) => {
} }
.air-quality { .air-quality {
font-size: 40px; font-size: 60px;
} }
} }

17
src/view/tabs/home-screen.vue

@ -251,7 +251,7 @@ const changeAnimation = () => {
animationApproach.value.play(); animationApproach.value.play();
setTimeout(() => { setTimeout(() => {
currentAnimation.value = 1; currentAnimation.value = 1;
}, 100); }, 500);
} }
// 6s // 6s
setTimeout(() => { setTimeout(() => {
@ -271,14 +271,14 @@ const changeAnimation = () => {
}, 9.5 * 1000); }, 9.5 * 1000);
setTimeout(() => { setTimeout(() => {
currentAnimation.value = 2; currentAnimation.value = 2;
}, 10.6 * 1000); }, 11 * 1000);
} else if (currentAnimation.value === 1 || currentAnimation.value === 3) { } else if (currentAnimation.value === 1 || currentAnimation.value === 3) {
} else if (currentAnimation.value === 2) { } else if (currentAnimation.value === 2) {
if (animationExit.value) { if (animationExit.value) {
animationExit.value.play(); animationExit.value.play();
setTimeout(() => { setTimeout(() => {
currentAnimation.value = 3; currentAnimation.value = 3;
}, 100); }, 500);
// //
if (indoorSetting.value) { if (indoorSetting.value) {
indoorSetting.value.style.transition = "2s"; indoorSetting.value.style.transition = "2s";
@ -296,7 +296,7 @@ const changeAnimation = () => {
if (indoorValue.value) { if (indoorValue.value) {
indoorValue.value.style.opacity = "1"; indoorValue.value.style.opacity = "1";
} }
}, 4.6 * 1000); }, 4.4 * 1000);
} }
}; };
@ -327,7 +327,6 @@ const timeTouchEnd = () => {
.bg-video { .bg-video {
width: 100%; width: 100%;
height: 100%;
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
@ -400,8 +399,8 @@ const timeTouchEnd = () => {
align-items: center; align-items: center;
img { img {
width: 72px; width: 46px;
height: 72px; height: 46px;
} }
.message { .message {
@ -410,8 +409,8 @@ const timeTouchEnd = () => {
.message-confim { .message-confim {
position: absolute; position: absolute;
top: -5px; top: -10px;
right: -5px; right: -10px;
width: 30px; width: 30px;
height: 30px; height: 30px;
border-radius: 50%; border-radius: 50%;

Loading…
Cancel
Save