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

1 line
12 KiB
Plaintext
Raw Normal View History

2023-11-22 09:28:49 +00:00
<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