|
|
@@ -254,31 +254,36 @@
|
|
|
class="{{item.state=='auto'?'control-button_1':'control-button'}} {{isClickedOnClimateAuto ? 'clicked' : ''}}"
|
|
|
bindtap="onClimateAuto" data-state="{{item.state}}" data-temperature="{{item.temperature}}"
|
|
|
data-id="{{item.entity_id}}" data-domain="{{item.domain}}">
|
|
|
- <image class="control-icon" src="/static/icons/ic_auto_1.svg" />
|
|
|
+ <image class="control-icon"
|
|
|
+ src="{{item.state == 'auto' ? '/static/icons/ic_auto_2.svg' : '/static/icons/ic_auto_1.svg'}}" />
|
|
|
<text class="{{item.state=='auto'? 'control-text_select' :'control-text'}}">自动</text>
|
|
|
</view>
|
|
|
<view class="{{item.state=='heat'?'control-button_1':'control-button'}}" bindtap="onClimateHeat"
|
|
|
data-state="{{item.state}}" data-temperature="{{item.temperature}}" data-id="{{item.entity_id}}"
|
|
|
data-domain="{{item.domain}}" data-flag="onHeat">
|
|
|
- <image class="control-icon" src="/static/icons/ic_hot_1.svg" />
|
|
|
+ <image class="control-icon"
|
|
|
+ src="{{item.state == 'heat' ? '/static/icons/ic_hot_2.svg' : '/static/icons/ic_hot_1.svg'}}" />
|
|
|
<text class="{{item.state=='heat'? 'control-text_select' :'control-text'}}">制热</text>
|
|
|
</view>
|
|
|
<view class="{{item.state=='cool'?'control-button_1':'control-button'}}" bindtap="onClimateCool"
|
|
|
data-state="{{item.state}}" data-temperature="{{item.temperature}}" data-id="{{item.entity_id}}"
|
|
|
data-domain="{{item.domain}}" data-flag="onCool">
|
|
|
- <image class="control-icon" src="/static/icons/ic_cold_1.svg" />
|
|
|
+ <image class="control-icon"
|
|
|
+ src="{{item.state == 'cool' ? '/static/icons/ic_cold_2.svg' : '/static/icons/ic_cold_1.svg'}}" />
|
|
|
<text class="{{item.state=='cool'? 'control-text_select' :'control-text'}}">制冷</text>
|
|
|
</view>
|
|
|
<view class="{{item.state=='dry'?'control-button_1':'control-button'}}" bindtap="onClimateDehumidify"
|
|
|
data-state="{{item.state}}" data-temperature="{{item.temperature}}" data-id="{{item.entity_id}}"
|
|
|
data-domain="{{item.domain}}" data-flag="onDehumidify">
|
|
|
- <image class="control-icon" src="/static/icons/ic_moisture_1.svg" />
|
|
|
+ <image class="control-icon"
|
|
|
+ src="{{item.state == 'dry' ? '/static/icons/ic_moisture_2.svg' : '/static/icons/ic_moisture_1.svg'}}" />
|
|
|
<text class="{{item.state=='dry'? 'control-text_select' :'control-text'}}">除湿</text>
|
|
|
</view>
|
|
|
<view class="{{item.state=='fan_only'?'control-button_1':'control-button'}}"
|
|
|
bindtap="onClimateAirSupply" data-state="{{item.state}}" data-temperature="{{item.temperature}}"
|
|
|
data-id="{{item.entity_id}}" data-domain="{{item.domain}}" data-flag="onAirSupply">
|
|
|
- <image class="control-icon" src="/static/icons/ic_wind_1.svg" />
|
|
|
+ <image class="control-icon"
|
|
|
+ src="{{item.state == 'fan_only' ? '/static/icons/ic_wind_2.svg' : '/static/icons/ic_wind_1.svg'}}" />
|
|
|
<text class="{{item.state=='fan_only'? 'control-text_select' :'control-text'}}">送风</text>
|
|
|
</view>
|
|
|
<!-- 关闭要单独拿出来 -->
|