|
|
@@ -123,9 +123,13 @@
|
|
|
<view class="data-media-1" wx:for="{{listAromatherapyMachine}}" wx:for-index="index2" wx:for-item="item2"
|
|
|
wx:if="{{item2.isAromlight}}">
|
|
|
<text class="sub-title">{{item2.friendly_name}}</text>
|
|
|
- <view class="btn-pos-view" bindtap="onSelect_All_aromlight" data-param0="{{index2}}"
|
|
|
- data-param1="/services" data-param2="/{{item2.domain}}" data-param3="/turn_on"
|
|
|
- data-param4='{{item2.state=="on"?"0":"1"}}' data-param5="{{item2.entity_id}}">
|
|
|
+ <view wx:if="{{item.state=='on'}}" class="btn-pos-view" bindtap="onSelect_All_aromlight"
|
|
|
+ data-param0="{{index2}}" data-param1="/services" data-param2="/{{item2.domain}}"
|
|
|
+ data-param3="/turn_on" data-param4='{{item2.state=="on"?"0":"1"}}' data-param5="{{item2.entity_id}}">
|
|
|
+ <image src="/static/images/ic_light_button_bg.png"></image>
|
|
|
+ <text>灯光切换</text>
|
|
|
+ </view>
|
|
|
+ <view wx:else class="btn-pos-view" style="filter: grayscale(100%);">
|
|
|
<image src="/static/images/ic_light_button_bg.png"></image>
|
|
|
<text>灯光切换</text>
|
|
|
</view>
|
|
|
@@ -149,12 +153,15 @@
|
|
|
<image class="data-card__icon" src="{{item2.imgSrc}}" />
|
|
|
<text class="data-card__title1">{{item2.friendly_name}}</text>
|
|
|
<view class="data-card__value">
|
|
|
- <image class="power-btn-small"
|
|
|
+ <image wx:if="{{item.state=='on'}}" class="power-btn-small"
|
|
|
src="{{item2.state=='on'? '/static/icons/ic_power.svg' : '/static/icons/ic_power_off.svg'}}"
|
|
|
data-param0="{{index2}}" data-param1="/services" data-param2="/{{item2.domain}}"
|
|
|
data-param3='{{item2.state=="on"?"/turn_off":"/turn_on"}}'
|
|
|
data-param4='{{item2.state=="on"?"0":"1"}}' data-param5="{{item2.entity_id}}" bindtap="onTap_All">
|
|
|
</image>
|
|
|
+ <image wx:else class="power-btn-small"
|
|
|
+ src="{{item2.state=='on'? '/static/icons/ic_power.svg' : '/static/icons/ic_power_off.svg'}}">
|
|
|
+ </image>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -235,7 +242,7 @@
|
|
|
data-fanMode="{{item.fan_mode}}" disabled="{{item.state=='auto'}}">
|
|
|
<!-- <text style="color:black">{{sliderValueClimate}}</text> -->
|
|
|
</van-slider>
|
|
|
- <image src="/static/icons/ic_add.svg" style="width: 112rpx;height: 112rpx;" bindtap="addClimate"
|
|
|
+ <image src="/static/icons/ic_add.svg" style="width: 112rpx;height: 112rpx; " bindtap="addClimate"
|
|
|
min="{{item.min_temp}}" max="{{item.max_temp}}" step="1" data-value="{{item.temperature}}"
|
|
|
data-state="{{item.state}}" data-id="{{item.entity_id}}" data-domain="{{item.domain}}"
|
|
|
data-min="{{item.min_temp}}" data-max="{{item.max_temp}}" data-temperature="{{item.temperature}}"
|