Browse Source

feat:fix bugs

master
zhaobing’ 11 months ago
parent
commit
b8bf17d053
  1. 10
      weapp/package/AIOTOverview/electricityMonitoring/electricityMonitoring.wxml

10
weapp/package/AIOTOverview/electricityMonitoring/electricityMonitoring.wxml

@ -15,7 +15,7 @@
<text class="fontStyle">{{item.structName}}</text>
</view>
<view>
<switch disabled="{{!item.data.data||item.data.data.info&&item.data.data.info.includes('离线')}}" bindchange="switch1Change" data-item="{{item}}"/>
<switch disabled="{{(!item.data.data||item.data.data.info&&item.data.data.info.includes('离线'))}}" bindchange="switch1Change" data-item="{{item}}"/>
</view>
</view>
<!--内容部分-->
@ -26,14 +26,14 @@
<view class="row flex flex-between detail">
<view class="content-left">运行状态</view>
<view class="content-right" wx:if="{{!item.data.data}}">{{'离线'}}</view>
<view class="content-right" wx:if="{{item.data.data&&item.data.data.info.includles('离线')}}">{{'离线'}}</view>
<view class="content-right" wx:if="{{item.data.data&&item.data.data.info.includles('1-在线')}}">{{'正常'}}</view>
<view class="content-right" wx:elif="{{item.data.data&&item.data.data.info.includles('离线')}}">{{'离线'}}</view>
<view class="content-right" wx:else="{{item.data.data&&item.data.data.info.includles('1-在线')}}">{{'正常'}}</view>
</view>
<view class="row flex flex-between detail">
<view class="content-left">电源状态</view>
<view class="content-right" wx:if="{{!item.data.data}}">{{'离线'}}</view>
<view class="content-right" wx:if="{{item.data.data&&item.data.data.info.includles('离线')}}">{{'离线'}}</view>
<view class="content-right" wx:if="{{item.data.data&&item.data.data.info.includles('1-在线')}}">{{'正常'}}</view>
<view class="content-right" wx:elif="{{item.data.data&&item.data.data.info.includles('离线')}}">{{'离线'}}</view>
<view class="content-right" wx:else="{{item.data.data&&item.data.data.info.includles('1-在线')}}">{{'正常'}}</view>
</view>
</view>
</view>

Loading…
Cancel
Save