wszhyWx/unpackage/dist/dev/mp-weixin/pages/controller/controller.wxml

1 line
12 KiB
Plaintext

<view class="controller data-v-a456d474"><u-navbar vue-id="0cbea400-1" background="{{background}}" is-back="{{true}}" back-icon-color="#FFFFFF" border-bottom="{{false}}" title="控制器" title-color="#FFFFFF" title-bold="{{true}}" title-size="32" class="data-v-a456d474" bind:__l="__l"></u-navbar><block wx:if="{{$root.g0!=-1}}"><view class="content data-v-a456d474"><view class="item _div data-v-a456d474"><u-collapse vue-id="0cbea400-2" accordion="{{false}}" item-style="{{itemStyle}}" head-style="{{headStyle}}" class="data-v-a456d474" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><u-collapse-item vue-id="{{('0cbea400-3-'+index)+','+('0cbea400-2')}}" title="{{item.$orig.head}}" align="center" class="data-v-a456d474" bind:__l="__l" vue-slots="{{['default']}}"><view class="collapseItem data-v-a456d474"><view class="line data-v-a456d474"></view><view class="control_model data-v-a456d474"><view class="control data-v-a456d474">控制模式:</view><view class="model data-v-a456d474"><text data-event-opts="{{[['tap',[['change00',['$0',1],[[['itemList','',index,'type']]]]]]]}}" class="{{['data-v-a456d474',item.m0==1?'txt_act':'txt']}}" bindtap="__e">打   开</text><text data-event-opts="{{[['tap',[['change00',['$0',2],[[['itemList','',index,'type']]]]]]]}}" class="{{['data-v-a456d474',item.m1==2?'txt_act':'txt']}}" bindtap="__e">停   止</text><text data-event-opts="{{[['tap',[['change00',['$0',3],[[['itemList','',index,'type']]]]]]]}}" class="{{['data-v-a456d474',item.m2==3?'txt_act':'txt']}}" bindtap="__e">关   闭</text></view><view class="line1 data-v-a456d474"></view><view class="roll_input data-v-a456d474"><view class="data-v-a456d474"><view class="data-v-a456d474"><input type="number" placeholder="0" data-event-opts="{{[['blur',[['blurChangeData00_1',[item.$orig.type+1,'$event']]]],['input',[['__set_model',['$0','open_value','$event',[]],[[['itemList','',index]]]]]]]}}" value="{{item.$orig.open_value}}" bindblur="__e" bindinput="__e" class="data-v-a456d474"/></view><text class="data-v-a456d474">通道打开;</text></view><view class="data-v-a456d474"><view class="data-v-a456d474"><input type="number" placeholder="0" data-event-opts="{{[['blur',[['blurChangeData00_2',[item.$orig.type+2,'$event']]]],['input',[['__set_model',['$0','close_value','$event',[]],[[['itemList','',index]]]]]]]}}" value="{{item.$orig.close_value}}" bindblur="__e" bindinput="__e" class="data-v-a456d474"/></view><text class="data-v-a456d474">通道关闭</text></view></view></view></view></u-collapse-item></block></u-collapse></view></view></block><block wx:if="{{$root.g1!=-1}}"><view class="content data-v-a456d474"><view class="lishui-item data-v-a456d474"><view class="lishui-title data-v-a456d474"><view class="title-left data-v-a456d474">{{''+fanStatus.name+''}}</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="title-right data-v-a456d474" bindtap="__e">设置<image src="../../static/set-arrow.png" mode class="data-v-a456d474"></image></view></view><block wx:if="{{fanStatus.open!=0}}"><view class="lishui-content data-v-a456d474"><view class="lishui-set data-v-a456d474"><view class="set-1 data-v-a456d474"><block wx:if="{{fanStatus.open==1}}"><image class="sel data-v-a456d474" src="../../static/sel.png" mode></image></block><block wx:else><view class="sel-no data-v-a456d474"></view></block><label class="_span data-v-a456d474">自动控制</label></view><view class="set-2 data-v-a456d474"><block wx:if="{{fanStatus.open!=1}}"><image class="sel data-v-a456d474" src="../../static/sel.png" mode></image></block><block wx:else><view class="sel-no data-v-a456d474"></view></block><label class="_span data-v-a456d474">手机控制</label></view></view><view class="lishui-grid data-v-a456d474"><view class="{{['btn','','data-v-a456d474',fanStatus.status[0]==1?'btn-on':'btn-off']}}"><block wx:if="{{fanStatus.status[0]==1}}"><image class="fan-img data-v-a456d474" src="../../static/fan-on.png" alt></image></block><block wx:else><image src="../../static/fan-off.png" alt class="data-v-a456d474"></image></block><label class="_span data-v-a456d474">1#风机</label></view><view class="{{['btn','data-v-a456d474',fanStatus.status[1]==1?'btn-on':'btn-off']}}"><block wx:if="{{fanStatus.status[1]==1}}"><image class="fan-img data-v-a456d474" src="../../static/fan-on.png" alt></image></block><block wx:else><image src="../../static/fan-off.png" alt class="data-v-a456d474"></image></block><label class="_span data-v-a456d474">2#风机</label></view><view class="{{['btn','data-v-a456d474',fanStatus.status[2]==1?'btn-on':'btn-off']}}"><block wx:if="{{fanStatus.status[2]==1}}"><image class="fan-img data-v-a456d474" src="../../static/fan-on.png" alt></image></block><block wx:else><image src="../../static/fan-off.png" alt class="data-v-a456d474"></image></block><label class="_span data-v-a456d474">3#风机</label></view><view class="{{['btn','data-v-a456d474',fanStatus.status[3]==1?'btn-on':'btn-off']}}"><block wx:if="{{fanStatus.status[3]==1}}"><image class="fan-img data-v-a456d474" src="../../static/fan-on.png" alt></image></block><block wx:else><image src="../../static/fan-off.png" alt class="data-v-a456d474"></image></block><label class="_span data-v-a456d474">4#风机</label></view><view class="{{['btn','data-v-a456d474',fanStatus.status[4]==1?'btn-on':'btn-off']}}"><block wx:if="{{fanStatus.status[4]==1}}"><image class="fan-img data-v-a456d474" src="../../static/fan-on.png" alt></image></block><block wx:else><image src="../../static/fan-off.png" alt class="data-v-a456d474"></image></block><label class="_span data-v-a456d474">5#风机</label></view></view></view></block><block wx:else><view class="status-noTrue data-v-a456d474"><image src="../../static/noTrue.png" mode class="data-v-a456d474"></image><label class="_span data-v-a456d474">当前设备无效</label></view></block></view><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="lishui-item data-v-a456d474"><view class="lishui-title data-v-a456d474"><view class="title-left data-v-a456d474">{{''+item.$orig.name+''}}</view><view data-event-opts="{{[['tap',[['openModelShow',[index]]]]]}}" class="title-right data-v-a456d474" bindtap="__e">设置<image src="../../static/set-arrow.png" mode class="data-v-a456d474"></image></view></view><block wx:if="{{item.$orig.open!=0}}"><view class="lishui-content data-v-a456d474"><view class="lishui-set data-v-a456d474"><view class="set-1 data-v-a456d474"><block wx:if="{{item.$orig.open==1}}"><image class="sel data-v-a456d474" src="../../static/sel.png" mode></image></block><block wx:else><view class="sel-no data-v-a456d474"></view></block><label class="_span data-v-a456d474">自动控制</label></view><view class="set-2 data-v-a456d474"><block wx:if="{{item.$orig.open!=1}}"><image class="sel data-v-a456d474" src="../../static/sel.png" mode></image></block><block wx:else><view class="sel-no data-v-a456d474"></view></block><label class="_span data-v-a456d474">手机控制</label></view></view><view class="lishui-status data-v-a456d474">{{''+item.m3+':'}}<label class="_span data-v-a456d474">{{item.$orig.progress+"%"}}</label></view></view></block><block wx:else><view class="status-noTrue data-v-a456d474"><image src="../../static/noTrue.png" mode class="data-v-a456d474"></image><label class="_span data-v-a456d474">当前设备无效</label></view></block></view></block></view></block><u-popup bind:input="__e" vue-id="0cbea400-4" mode="center" mask-close-able="{{true}}" width="640rpx" height="350rpx" closeable="{{false}}" value="{{modelShow}}" data-event-opts="{{[['^input',[['__set_model',['','modelShow','$event',[]]]]]]}}" class="data-v-a456d474" bind:__l="__l" vue-slots="{{['default']}}"><view class="contentPop lishui-item data-v-a456d474"><view class="contentPop_box data-v-a456d474"><view class="title data-v-a456d474">{{'顶卷膜'+indexs+''}}</view></view><view class="lishui-content data-v-a456d474"><view class="model-title data-v-a456d474">控制模式:</view><view class="lishui-flex data-v-a456d474"><view data-event-opts="{{[['tap',[['changeOpen1',[1]]]]]}}" class="{{['btn','btn-140','','data-v-a456d474',openIndex1==1?'btn-on':'btn-off']}}" bindtap="__e"><label class="_span data-v-a456d474">自动运行</label></view><view data-event-opts="{{[['tap',[['changeOpen1',[2]]]]]}}" class="{{['btn','btn-140','','data-v-a456d474',openIndex1==2?'btn-on':'btn-off']}}" bindtap="__e"><label class="_span data-v-a456d474">手动打开</label></view><view data-event-opts="{{[['tap',[['changeOpen1',[3]]]]]}}" class="{{['btn','btn-140','','data-v-a456d474',openIndex1==3?'btn-on':'btn-off']}}" bindtap="__e"><label class="_span data-v-a456d474">手动关闭</label></view><view data-event-opts="{{[['tap',[['changeOpen1',[4]]]]]}}" class="{{['btn','btn-110','','data-v-a456d474',openIndex1==4?'btn-on':'btn-off']}}" bindtap="__e"><label class="_span data-v-a456d474">停止</label></view></view></view><image src="../../static/closed.png" mode data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" bindtap="__e" class="data-v-a456d474"></image></view></u-popup><u-popup bind:input="__e" vue-id="0cbea400-5" mode="center" mask-close-able="{{true}}" width="640rpx" height="550rpx" closeable="{{false}}" value="{{fanmodelShow}}" data-event-opts="{{[['^input',[['__set_model',['','fanmodelShow','$event',[]]]]]]}}" class="data-v-a456d474" bind:__l="__l" vue-slots="{{['default']}}"><view class="contentPop lishui-item data-v-a456d474"><view class="contentPop_box padding-none data-v-a456d474"><view class="title data-v-a456d474">{{''+fanStatus.name+''}}</view></view><view class="lishui-content padding-none data-v-a456d474"><view class="lishui-set data-v-a456d474"><view data-event-opts="{{[['tap',[['changeOpen',[1]]]]]}}" class="set-1 data-v-a456d474" bindtap="__e"><block wx:if="{{openIndex==1}}"><image class="sel data-v-a456d474" src="../../static/sel.png" mode></image></block><block wx:else><view class="sel-no data-v-a456d474"></view></block><label class="_span data-v-a456d474">自动运行</label></view><view data-event-opts="{{[['tap',[['changeOpen',[2]]]]]}}" class="set-2 data-v-a456d474" bindtap="__e"><block wx:if="{{openIndex==2}}"><image class="sel data-v-a456d474" src="../../static/sel.png" mode></image></block><block wx:else><view class="sel-no data-v-a456d474"></view></block><label class="_span data-v-a456d474">手动打开</label></view><view data-event-opts="{{[['tap',[['changeOpen',[3]]]]]}}" class="set-3 data-v-a456d474" bindtap="__e"><block wx:if="{{openIndex==3}}"><image class="sel data-v-a456d474" src="../../static/sel.png" mode></image></block><block wx:else><view class="sel-no data-v-a456d474"></view></block><label class="_span data-v-a456d474">手动关闭</label></view></view><view class="model-title data-v-a456d474" style="padding:30rpx 0 0 30rpx;">手动打开时,开几号风机:</view><view class="lishui-grid data-v-a456d474"><view data-event-opts="{{[['tap',[['changeIndexOpen',[0]]]]]}}" class="{{['btn','data-v-a456d474',actList1[0]=='1'?'btn-on':'btn-off']}}" bindtap="__e"><label class="_span data-v-a456d474">一号风阻</label></view><view data-event-opts="{{[['tap',[['changeIndexOpen',[1]]]]]}}" class="{{['btn','data-v-a456d474',actList1[1]=='1'?'btn-on':'btn-off']}}" bindtap="__e"><label class="_span data-v-a456d474">二号风阻</label></view><view data-event-opts="{{[['tap',[['changeIndexOpen',[2]]]]]}}" class="{{['btn','data-v-a456d474',actList1[2]=='1'?'btn-on':'btn-off']}}" bindtap="__e"><label class="_span data-v-a456d474">三号风阻</label></view><view data-event-opts="{{[['tap',[['changeIndexOpen',[3]]]]]}}" class="{{['btn','data-v-a456d474',actList1[3]=='1'?'btn-on':'btn-off']}}" bindtap="__e"><label class="_span data-v-a456d474">四号风阻</label></view><view data-event-opts="{{[['tap',[['changeIndexOpen',[4]]]]]}}" class="{{['btn','data-v-a456d474',actList1[4]=='1'?'btn-on':'btn-off']}}" bindtap="__e"><label class="_span data-v-a456d474">五号风阻</label></view></view></view><image src="../../static/closed.png" mode data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" bindtap="__e" class="data-v-a456d474"></image></view></u-popup><block wx:if="{{!$root.g2}}"><view class="content data-v-a456d474" style="text-align:center;">暂无权限查看</view></block></view>