<!-- pages/Hosts/Hosts.wxml{{isback}} --> 
<cu-custom bgColor="bg-gradual-blue"  
 isBack="true"> 
  <block bindtap="back" slot="backText" >返回</block> 
  <view slot="content">{{Hotelinfo.HotelName}}({{Hotelinfo.Code}})</view> 
</cu-custom> 
<view class="padding-sm bg-white radius shadow shadow-lg" style="padding-bottom:0;"> 
<!-- 头部区域 --> 
<view> 
 
<!-- 酒店信息 {{Hotelinfo.HotelId}}--> 
<!-- <view class="margin-xs basis-xl">{{Hotelinfo.Code}}<span class="padding-left-xs">{{Hotelinfo.HotelName}}</span></view> --> 
<!-- <view class="flex  justify-end basis-xs"> 
    <view class="text-green" bindtap="HelpClick">{{Help?'关闭':'帮助'}}</view> 
</view> --> 
 
<!----> 
 
 
 
<!-- 导航栏 --> 
<view class="flex flex-wrap"> 
<!-- 分类显示 --> 
    <view  class="basis-xxxl "> 
        <button style="margin-right: 2px;"   data-index="0" bindtap="GetshowinfoClick" class="cu-btn bg-{{showinfo==0?'green':'grey'}} ">全部</button> 
        <button style="margin-right: 2px;"   data-index="1" bindtap="GetshowinfoClick"  class="cu-btn bg-{{showinfo==1?'green':'grey'}} ">主机绑定</button> 
        <button style="margin-right: 2px;"    data-index="2" bindtap="GetshowinfoClick"  class="cu-btn bg-{{showinfo==2?'green':'grey'}} ">人脸机</button> 
    <button style="margin-right: 2px;"    data-index="4" bindtap="GetshowinfoClick"  class="cu-btn bg-{{showinfo==4?'green':'grey'}} ">主机蓝牙升级</button> 
    <button style="margin-right: 2px;"    data-index="5" bindtap="GetshowinfoClick"  class="cu-btn bg-{{showinfo==5?'green':'grey'}} ">主机升级</button> 
        <button style="margin-right: 2px;"  data-index="3" bindtap="GetshowinfoClick1"  class="cu-btn bg-{{showinfo==3?'green':'grey'}} ">刷新</button> 
        
    </view>  
    <view>
      <view class="text-green" bindtap="HelpClick">{{Help?'关闭':'帮助'}}</view>    
    </view>
<!-- 标识区域 --> 
<!-- <view  class="basis-lg"> 
<view class="flex flex-wrap  margin-left-xs"> 
<view  class="basis-df flex"> 
<view style="width:0rpx;height:0rpx;margin-top:12rpx;" class="padding-xs  bg-green"></view> 
<text class="text-black text-df  margin-left-xs margin-right-xs">绑定成功<text class="margin-left-xs"></text>{{statusdata[0]}}</text> 
</view> 
<view  class="basis-df flex"> 
<view style="width:0rpx;height:0rpx;margin-top:12rpx;" class="padding-xs  bg-red"></view> 
<text class="text-black text-df margin-left-xs margin-right-xs">绑定失败<text class="margin-left-xs"></text>{{statusdata[1]}}</text> 
</view> 
<view  class="basis-df flex"> 
<view style="width:0rpx;height:0rpx;margin-top:12rpx;" class="padding-xs  bg-yellow"></view> 
<text class="text-black text-df margin-left-xs margin-right-xs">解除绑定<text class="margin-left-xs"></text>{{statusdata[2]}}</text> 
</view> 
<view  class="basis-df flex"> 
<view style="width:0rpx;height:0rpx;margin-top:12rpx;" class="padding-xs   bg-grey"></view> 
<text class="text-black text-df margin-left-xs margin-right-xs">未操作<text class="margin-left-xs"></text>{{statusdata[3]}}</text> 
</view> 
</view> 
</view>  --> 
<!-- 按钮区域 --> 
<!-- <view  class="basis-sm flex flex-wrap"> 
    <view class="flex flex-wrap text-center "> 
        <view class="basis-df" bindtap="islogsClick"> 
  <view   class=" radius   bg-red"> 
<text class=" text-df text-white" >{{islogs?'退出':'操作记录'}}<text class="text-lg"></text></text> 
</view>   
</view> 
 
<view class="basis-df"> 
<view data-index="0" bindtap="GetClick"  class=" margin-left-xs radius   bg-{{sel==0?'green':'grey'}} "> 
<text class=" text-df  text-white">全部<text class="margin-left-xs text-lg">{{HostsData.length}}</text></text> 
</view> 
</view> 
<view class="basis-df"> 
<view data-index="2" bindtap="GetClick"  class="margin-top-xs radius   bg-{{sel==2?'green':'grey'}} "> 
<text class=" text-df text-white">未绑<text class="margin-left-xs text-lg">{{NMac}}</text></text> 
</view> 
</view> 
<view class="basis-df "> 
 <view data-index="1" bindtap="GetClick"  class=" margin-top-xs   margin-left-xs  radius  bg-{{sel==1?'green':'grey'}} "> 
<text class="text-df text-white">已绑<text class="margin-left-xs text-lg">{{YMac}}</text></text> 
</view> 
</view> 
 
 
 
</view> 
</view>  --> 
</view> 
 
 
 
 
 
 
 
 
 
 
 
 
 
<view class="bg-gray margin-xs" style="padding:2rpx"></view> 
</view> 
<!-- 房间显示区域 --> 
<scroll-view id="scroll"  wx:if="{{!Help && !islogs && showinfo!=4&& showinfo!=5}}" style="height:{{top_height==null?'600rpx':top_height+'px'}} ;padding-bottom:10rpx" scroll-y="true"> 
 
<view class="grid col-4  text-center" wx:if="{{showinfo<4}}"> 
<view wx:for="{{HostsDataFilters}}"> 
<view class="padding-xs"> 
<view style="font:bold;white-space: nowrap;overflow: hidden;" class="text-df  {{item.xg!=null?(item.xg==0?'bg-green':(item.xg==1?'bg-red':'bg-yellow')):'bg-grey'}}"> 
  {{item.RoomNumber}} 
</view> 
<view   class="light bg-grey " style="height:{{showinfo==0?'170rpx':showinfo==3?'170rpx':'85rpx'}}"> 
<!-- rcu主机 --> 
<view  wx:if="{{showinfo!=2}}" bindtouchstart="handleTouchStart"  
bindtouchend="handleTouchEnd"  
 data-index="{{index}}" bindlongtap="GetMAC_long" bindtap="GetMAC"> 
<block wx:if="{{item.MAC.length==17}}"> 
<view class="text-sm">M:{{item.MAC[0]}}{{item.MAC[1]}}{{item.MAC[2]}}{{item.MAC[3]}}{{item.MAC[4]}}{{item.MAC[5]}}{{item.MAC[6]}}{{item.MAC[7]}}{{item.MAC[8]}} 
</view> 
<view  class="text-df">{{item.MAC[9]}}{{item.MAC[10]}}{{item.MAC[11]}}{{item.MAC[12]}}{{item.MAC[13]}}{{item.MAC[14]}}{{item.MAC[15]}}{{item.MAC[16]}} 
</view> 
</block> 
<block wx:if="{{item.MAC.length<17 || !item.MAC || item.MAC.length==0}}" > 
<!-- 两个 view 是因为 mac 是两行 --> 
<view class="text-sm light" > 
    <!-- xiaoxi --> RCU 
</view> <!--   style="opacity:0" --> 
<view class="text-sm light"  style="color: #e7ebee;"> 
    <!-- xiaoxi -->绑定 
</view> 
</block> 
 
</view> 
 
<view class=" bg-white" style="height: 2rpx;" wx:if="{{showinfo==0}}"></view> 
 
 
<!-- 人脸机 --> 
<view wx:if="{{showinfo!=1 }}"  bindtouchstart="handleTouchStart"  
bindtouchend="handleTouchEnd"  
 data-index="{{index}}" bindlongtap="GetFaceSN_long" bindtap="GetFaceSN"> 
 <block wx:if="{{item.FaceStatus==true}}"> 
  <block wx:if="{{item.FaceSN.length>0}}"> 
    <view style="color: #17852d;"  class="text-df">s:{{item.FaceSN[0]}}{{item.FaceSN[1]}}{{item.FaceSN[2]}}{{item.FaceSN[3]}}{{item.FaceSN[4]}}{{item.FaceSN[5]}}{{item.FaceSN[6]}}{{item.FaceSN[7]}} 
</view> 
<view style="color: #17852d;"  class="text-df">{{item.FaceSN[8]}}{{item.FaceSN[9]}}{{item.FaceSN[10]}}{{item.FaceSN[11]}}{{item.FaceSN[12]}}{{item.FaceSN[13]}}{{item.FaceSN[14]}}{{item.FaceSN[15]}} 
</view> 
</block> 
<!-- <block wx:if="{{item.FaceSN.length==0}}"> 
  style="opacity:0" 
    <view class="text-sm light"> 
    xiaoxi 
</view> 
class="text-df light" style="opacity:0" 
<view class="text-sm light"> 
    xiaoxi 
</view> 
</block> --> 
 </block> 
 <block wx:else="{{item.FaceStatus==false}}"> 
  <block wx:if="{{item.FaceSN.length>0}}"> 
    <view  style="color: #d11515;" class="text-df">s:{{item.FaceSN[0]}}{{item.FaceSN[1]}}{{item.FaceSN[2]}}{{item.FaceSN[3]}}{{item.FaceSN[4]}}{{item.FaceSN[5]}}{{item.FaceSN[6]}}{{item.FaceSN[7]}} 
</view> 
<view  style="color:#d11515;" class="text-df">{{item.FaceSN[8]}}{{item.FaceSN[9]}}{{item.FaceSN[10]}}{{item.FaceSN[11]}}{{item.FaceSN[12]}}{{item.FaceSN[13]}}{{item.FaceSN[14]}}{{item.FaceSN[15]}} 
</view> 
</block> 
<block wx:if="{{item.FaceSN.length==0}}"> 
  <!-- class="text-sm light" style="opacity:0" --> 
    <view class="text-sm light"> 
    <!-- xiaoxi -->人脸机 
</view> 
<!-- class="text-df light" style="opacity:0" --> 
<view class="text-sm light"  style="color: #e7ebed;"> 
    绑定 
</view> 
</block> 
</block> 
</view> 
 
 
</view> 
</view> 
</view> 
 
 
 
<view wx:if="{{HostsDataFilters.length<=0}}"> 
暂无数据~ 
</view> 
</view> 
 
 
 
</scroll-view> 
 
<HostUpgrade  wx:if="{{showinfo==4}}" paramA="{{showinfo}}" myProperty="{{roomtype}}"  nheight="{{top_height==null?'600':top_height}}" style="height:{{top_height==null?'600rpx':top_height+'rpx'}} ;padding-bottom:10rpx"></HostUpgrade> 
 
 
<Upgrade wx:if="{{showinfo==5}}" style="height:{{top_height==null?'600rpx':top_height+'px'}} ;padding-top:10rpx;"></Upgrade> 
 
<!-- 帮助区域 --> 
<view wx:if="{{Help}}" class="padding-xs"> 
    <view class="cu-card article"> 
    <view class="cu-item shadow " style="margin:0;padding-bottom:0;"> 
        <view class="title" style="line-height:initial;"><view class="text-cut">颜色指示块</view></view> 
        <view class="content"> 
            <view class="desc"> 
                <view class="text-content text-df"> 
                    指示块，仅针对本次进入页面有效，不代表历史操作记录，刷新或者重新进入页面都会执行重置操作。 
                </view> 
            </view> 
        </view> 
    </view> 
</view> 
<view class="cu-card article"> 
    <view class="cu-item shadow " style="margin:0;padding-bottom:0;"> 
        <view class="title" style="line-height:initial;"><view class="text-cut">MAC绑定操作</view></view> 
        <view class="content"> 
            <view class="desc"> 
                <view class="text-content text-df" style="height: auto;"> 
                <view class="text-df text-green">点击</view> 
              点击房间，如果已经绑定MAC会弹出提示语句，点击继续，继续执行扫码绑定，扫码后,会有普通的MAC矫正，如果MAC已经被绑定，会再次弹出提示语句， 
                如果MAC绑定的酒店有权限就会有提示语句，然后可以点击继续执行绑定，这将解除原有绑定，绑定当前MAC;如果MAC绑定的酒店没有权限，就仅有提示语，而没有继续绑定按钮。 
                <view class="text-df text-green">长按</view> 
              长按会执行手动输入MAC，后续与点击扫码绑定一致~ 
                </view> 
            </view> 
        </view> 
    </view> 
</view> 
</view> 
<!-- 操作日志 --> 
<view wx:if="{{islogs}}" > 
    <loscom hotelsid="{{Hotelinfo.HotelId}}"></loscom> 
</view> 
</view> 
 
  
 
<!-- 房间已经绑定弹窗提示 --> 
<view class="cu-modal {{modal==1?'show':''}}"> 
    <view class="cu-Ndialog"> 
        <view class="cu-bar bg-white "> 
        <view>
          <view class="action "  bindtap="GetReturnSet" wx:if="{{ISLoopDebugging>0}}"> 
                <text class="cuIcon-back"></text> 
            </view> 
        </view>
        
        <view>
          <view class="content text-{{selHosts.Status == 1 ? 'green':'red'}}}"  >{{selHosts.RoomNumber}}已经绑定MAC({{selHosts.Status == 1 ? '在线':'离线'}})</view> 
        </view>
           <view class="justify-end">
            <view class="action  justify-end"  bindtap="GetHide" > 
                <text class="cuIcon-close text-red"></text> 
            </view> 
           </view>
         
           
        </view> 
        <view wx:if="{{ISLoopDebugging===0}}">
        <view class="padding-lg flex flex-wrap " > 
         <view  class="basis-sm text-right">酒店：</view><view class="text-left basis-lg">{{Hotelinfo.HotelName}}</view> 
        <view class="basis-sm text-right">房间：</view><view class="basis-lg text-left">{{message[1]}}</view> 
        <view class="basis-sm text-right">MAC地址：</view><view class="basis-lg text-left">{{message[0]}}</view> 
        <view class="basis-sm text-right">当前固件：</view><view class="basis-lg text-left">{{roomGfilename}}</view> 
        <view class="basis-sm text-right">当前配置：</view><view class="basis-lg text-left">{{roomPfilename}}</view> 
        <view class=" text-left flex-sub text-sm text-gray">房间已经绑定MAC，点击继续将执行扫描绑定；点击取消，将不会执行任何操作~</view> 
  
     
        </view> 
        <view class=" bg-white">
          
          <view class="Ncu-bar bg-white"> 
                <view class="action margin-0 flex-sub text-green " data-type="0" bindtap="ConfigurationUpgrade">固件升级</view> 
                <view class="action margin-0 flex-sub text-green solid-left" bindtap="FirmwareUpgrade" >配置升级</view> 
                <view class="action margin-0 flex-sub  solid-left" bindtap="LoopDebugging" >回路调试</view> 
              </view> 
              <view class="Ncu-bar bg-white"> 
                <view class="action margin-0 flex-sub text-green " data-type="0" bindtap="ErrorInfo">反馈错误</view> 
                <view class="action margin-0 flex-sub text-green solid-left" bindtap="GetHide" >取消</view> 
                <view class="action margin-0 flex-sub  solid-left" bindtap="{{input == 0?'GetCode':'ShowInput'}}" >继续</view> 
            </view> 
        </view>
        </view>
        <view wx:if="{{ISLoopDebugging===1}}" style="height:95%" class="bg-white"  >        
     
            <scroll-view style="height:90%"  id="LoopDebugging"   scroll-y="true" 	scroll-top="true">
            <view  class="bg-white ">
              <!-- <view style="text-align: left;font-weight: bold">播放测试:</view> -->
                   <!-- <view style="text-align: left;font-weight: bold">播放测试:</view> -->
              <view class="Ncu-bar bg-white">         
                <button    bindtap="GetshowinfoClick"  class="cu-btn round1 ulg margin-5" style="font-weight: bold;">播放欢迎词</button> 
              <!-- <view style="text-align: left;font-weight: bold" class=" margin-xs radius ">音量:</view> -->
              <slider style="width:50%;" min="30" max="100" step="1" value="{{VolumeLevel}}" bindchange="changeVolumeLevel" ></slider>
              <view>{{VolumeLevel}}</view>
            
           
            </view>
            <view class="ControlLine"></view>
            </view>


            <view  class="bg-white " wx:for="{{roomtypeInfoNodeinfo}}"  wx:for-item="row" wx:for-index="rowIndex">
            
             
              <view class=" bg-white  "  wx:if="{{row[0]===1}}" >
              <!-- <view style="text-align: left;font-weight: bold">设置设备开关状态:</view> -->
               <view class="Ncu-bar bg-white flex-sub" wx:for="{{row[1].length/4 }}" wx:for-index="colIndex" >
              <view class="Ncu-bar bg-white" wx:if="{{colIndex*4<row[1].length}}">          
                <button id="1" class="cu-btn round1 margin-3 vlg"  data-value="1" data-index="{{row[1][colIndex*4][0]}}"  bindtap="SetDeviceSwitchStatus"  wx:if="{{colIndex*4<row[1].length}}" style="background-color: {{row[1][colIndex*4][2][0][2]===0 ? '#E6E6E6 ':'#39b54a'}};" >{{row[1][colIndex*4][1] }}</button>
                <button id="1"  class="cu-btn round1 margin-3 vlg"  data-value="1" data-index="{{row[1][colIndex*4+1][0]}}" bindtap="SetDeviceSwitchStatus"  wx:if="{{colIndex*4+1<row[1].length}}" style="background-color: {{row[1][colIndex*4+1][2][0][2]===0 ? '#E6E6E6':'#39b54a'}};">{{row[1][colIndex*4+1][1] }}</button>
                <button id="1"  class="cu-btn round1 margin-3 vlg"  data-value="1" data-index="{{row[1][colIndex*4+2][0]}}" bindtap="SetDeviceSwitchStatus"  wx:if="{{colIndex*4+2<row[1].length}}" style="background-color: {{row[1][colIndex*4+2][2][0][2]===0 ? '#E6E6E6':'#39b54a'}};">{{row[1][colIndex*4+2][1] }}</button>
                <button id="1"  class="cu-btn round1 margin-3 vlg"  data-value="1" data-index="{{row[1][colIndex*4+3][0]}}" bindtap="SetDeviceSwitchStatus"  wx:if="{{colIndex*4+3<row[1].length}}" style="background-color: {{row[1][colIndex*4+3][2][0][2]===0 ? '#E6E6E6':'#39b54a'}};">{{row[1][colIndex*4+3][1] }}</button>
                <!-- <button class="cu-btn round margin-3 nlg" data-index="{{row[1][colIndex*5+4][0]}}" bindtap="SetDeviceSwitchStatus"  wx:if="{{colIndex*4+4<row[1].length}}">{{row[1][colIndex*4+4][1] }}</button> -->
                <!-- <button class="cu-btn round margin-3 nlg" data-index="{{row[1][colIndex*6+5][0]}}" bindtap="SetDeviceSwitchStatus"  wx:if="{{colIndex*6+5<row[1].length}}">{{row[1][colIndex*6+5][1] }}</button> -->
              </view>            
               </view>
               <view class="ControlLine"></view>
              </view>     
              
              <view class="bg-white" wx:if="{{row[0]===23}}">
                <!-- <view style="text-align: left;font-weight: bold">设置调光亮度:</view> -->
                <view class="bg-white" wx:for="{{row[1].length}}" wx:for-index="DimIndex" >               
              <view class="Ncu-bar bg-white">
                <view class="flex-twice">{{row[1][DimIndex][1]}}</view>
                  <slider id="23"  data-index="{{row[1][DimIndex][0]}}" class="flex-eight" min="10" max="90" step="1" value="{{row[1][DimIndex][2][0][2]}}" bindchange="SetDeviceSwitchStatusslider" ></slider>
                <view class="flex-sub">{{row[1][DimIndex][2][0][2]}}</view>
              </view>   
              </view>   
              <view class="ControlLine"></view>
              </view>
              <view class="bg-white" wx:if="{{row[0]===52}}">
                <!-- <view style="text-align: left;font-weight: bold">色温控制:</view> -->
                <view class="Ncu-bar bg-white"> 
                <view   class="action margin-0 flex-twice text-green " >开关</view> 
                <view class="action margin-0 flex-xis text-green solid-left"  >色温</view> 
                <view class="action margin-0 flex-xis text-green solid-left" >亮度</view> 
              </view> 
                <view class=" bg-white" wx:for="{{row[1].length}}" wx:for-index="coloIndex" > 
                  <view class="Ncu-bar bg-white"> 
                <view class=" flex-twice margin-3 " >
                  <button id="52"  data-type="1" data-value="1" data-index="{{row[1][coloIndex][0]}}"   class="cu-btn round1 Elg" bindtap="SetDeviceSwitchStatus"   style="background-color: {{row[1][coloIndex][2][0][2]===0 ? '#E6E6E6 ':'#39b54a'}};" >{{row[1][coloIndex][1]}}</button> 
                </view> 
                <view class=" flex-xis Ncubar1 solid-left "  >

                  <button id="52"  data-type="2" data-value="20" data-index="{{row[1][coloIndex][0]}}"  class="margin-3 cu-btn round1 EElg" bindtap="SetDeviceSwitchStatus"   style="background-color: {{row[1][coloIndex][2][1][2]===20 ? '#39b54a':'#E6E6E6 '}};">20</button>
                  <button id="52"  data-type="2" data-value="50" data-index="{{row[1][coloIndex][0]}}"  class="margin-3 cu-btn round1 EElg" bindtap="SetDeviceSwitchStatus"   style="background-color: {{row[1][coloIndex][2][1][2]===50 ? '#39b54a':'#E6E6E6 '}};">50</button>
                  <button id="52"  data-type="2" data-value="80" data-index="{{row[1][coloIndex][0]}}"  class="margin-3 cu-btn round1 EElg" bindtap="SetDeviceSwitchStatus"   style="background-color: {{row[1][coloIndex][2][1][2]===80 ? '#39b54a':'#E6E6E6 '}};">80</button>
                 
                </view> 
                <view class="ControlLine_h"></view>
                <view class=" flex-xis Ncubar1 "  >
                  <button id="52"  data-type="3" data-value="20" data-index="{{row[1][coloIndex][0]}}"  class="margin-3 cu-btn round1 EElg" bindtap="SetDeviceSwitchStatus"   style="background-color: {{row[1][coloIndex][2][2][2]===20 ? '#39b54a':'#E6E6E6 '}};">20</button>
                  <button id="52"  data-type="3" data-value="50" data-index="{{row[1][coloIndex][0]}}"  class="margin-3 cu-btn round1 EElg" bindtap="SetDeviceSwitchStatus"   style="background-color: {{row[1][coloIndex][2][2][2]===50 ? '#39b54a':'#E6E6E6 '}};">50</button>
                  <button id="52"  data-type="3" data-value="80" data-index="{{row[1][coloIndex][0]}}"  class="margin-3 cu-btn round1 EElg" bindtap="SetDeviceSwitchStatus"   style="background-color: {{row[1][coloIndex][2][2][2]===80 ? '#39b54a':'#E6E6E6 '}};">80</button>
                </view> 
              </view> 


                  <!-- <view class="Ncubar1 bg-white" style="text-align: left;">
                    <view class="flex-twice">
                      <view style="text-align: left;font-weight: bold">{{row[1][coloIndex][1]}}:</view> 
                    </view>
                    <view class="flex-8">
                      <switch class="Green" data-index="{{item}}"     bindchange="Loopswitch"></switch> 
                    </view>                           
                  </view> -->

                
                <!-- <view class="Ncu-bar bg-white flex-eight">                
                <button class="cu-btn round vlg">亮度20</button>
                <button class="cu-btn round vlg">亮度80</button>
                <button class="cu-btn round vlg">色温20</button>
                <button class="cu-btn round vlg">色温80</button>
                </view> -->
              
              </view>
              <view class="ControlLine"></view>
            </view>
              <view  class="bg-white" wx:if="{{row[0]===5}}">
                <!-- <view style="text-align: left;font-weight: bold">设置设备开停关状态:</view> -->
                <view class="bg-white" wx:for="{{row[1].length}}" wx:for-index="coloIndex">
                <view class="Ncu-bar bg-white">
                
                <view class="flex-treble" style="font-weight: bold">{{row[1][coloIndex][1]}}</view>
                  <view class="Ncubar1 bg-white flex-eight">
             

                    <button id="5" data-value="1" class="margin-3 cu-btn round1 clg" style="background-color:{{row[1][coloIndex][2][0][2]===1 ? '#39b54a':'#E6E6E6'}};" data-index="{{row[1][coloIndex][0]}}" bindtap="SetDeviceSwitchStatus" >开</button>
                    <button id="5" data-value="2" class="margin-3 cu-btn round1 clg" style="background-color:{{row[1][coloIndex][2][0][2]===2 ? '#39b54a':'#E6E6E6'}};" data-index="{{row[1][coloIndex][0]}}" bindtap="SetDeviceSwitchStatus" >关</button>
                    <button id="5" data-value="6" class="margin-3 cu-btn round1 clg" style="background-color:{{row[1][coloIndex][2][0][2]===6 ? '#39b54a':'#E6E6E6'}};" data-index="{{row[1][coloIndex][0]}}" bindtap="SetDeviceSwitchStatus">停</button>
                  </view>
                </view>
                  
                <view class="ControlLine"></view>
                </view>
                <view class="ControlLine"></view>
              </view>
              <view class="bg-white" wx:if="{{row[0]===7}}">
                <!-- <view style="text-align: left;font-weight: bold">设置温控设备状态:</view> -->
                <view class=" bg-white" wx:for="{{row[1].length}}" wx:for-index="coloIndex">
                
                  <view class="Ncu-bar bg-white"> 
                    <view class=" flex-twice margin-xs " >               
                      <!-- <button class="cu-btn round1 Elg">{{row[1][coloIndex][1]}}</button>  -->
                      <button id="7"  data-type="1" data-value="1" data-index="{{row[1][coloIndex][0]}}"   class="cu-btn round1 Elg" bindtap="SetDeviceSwitchStatus"   style="background-color: {{row[1][coloIndex][2][0][2]===0 ? '#E6E6E6 ':'#39b54a'}};" >{{row[1][coloIndex][1]}}</button> 
                    </view>
                    <view class=" flex-8 Ncubar1 solid-left "  >
                      <button id="7"  data-type="2" data-value="1" data-index="{{row[1][coloIndex][0]}}"   class=" cu-btn round1 clg margin-3" bindtap="SetDeviceSwitchStatus"   style="background-color: {{row[1][coloIndex][2][1][2]===4 ? '#E6E6E6 ':row[1][coloIndex][2][1][2]===3 ? '#1cbbb4':row[1][coloIndex][2][1][2]===2 ? '#e54d42':'#0081ff'}};" >{{row[1][coloIndex][2][1][2]===4 ? '自动':row[1][coloIndex][2][1][2]===3 ? '送风':row[1][coloIndex][2][1][2]===2 ? '制热':'制冷'}}</button> 
                      <button id="7"  data-type="3" data-value="1" data-index="{{row[1][coloIndex][0]}}"   class=" cu-btn round1 clg margin-3" bindtap="SetDeviceSwitchStatus"  >{{row[1][coloIndex][2][2][2]===4 ? '自动':row[1][coloIndex][2][2][2]===3 ? '高风速':row[1][coloIndex][2][2][2]===2 ? '中风速':'低风速'}}</button> 
                      <button id="7"  data-type="4" data-value="1" data-index="{{row[1][coloIndex][0]}}" bindtap="SetDeviceSwitchStatus" class="  cu-btn round1 vvlg margin-3">-</button>
                      <text class=" textvlg">{{row[1][coloIndex][2][3][2]}}</text>
                      <button id="7"  data-type="5" data-value="1" data-index="{{row[1][coloIndex][0]}}" bindtap="SetDeviceSwitchStatus" class="  cu-btn round1 vvlg margin-3">+</button>                   
                    </view>
                   
                  </view>
                  <!-- <view class="Ncubar1 bg-white" style="text-align: left;">
                    <view class="flex-twice">
                      <view style="text-align: left;font-weight: bold">{{row[1][coloIndex][1]}}:</view> 
                    </view>
                    <view class="flex-8">
                      <switch class="Green" data-index="{{item}}"     bindchange="Loopswitch"></switch> 
                    </view>                           
                  </view>
                
                <view class=" bg-white flex-eight">  
                  <view class="Ncu-bar bg-white flex-eight">
                 
                    <button class="  cu-btn round1 vlg margin-3">制冷</button>
                    <button class="  cu-btn round1 vlg margin-3">制热</button>  
                    <button class="  cu-btn round1 vlg margin-3">20度</button>
                    <button class=" cu-btn round1 vlg margin-3">30度</button>    
                  </view>
                  <view class="Ncu-bar bg-white flex-eight">                 
                <button class="cu-btn round1 vlg margin-3">风速高</button>
                <button class="cu-btn round1 vlg margin-3">风速中</button>
                <button class="cu-btn round1 vlg margin-3">风速低</button>
                <button class="cu-btn round1 vlg margin-3">自动</button>
              </view>
              </view> -->
              <view class="ControlLine"></view>
            </view>
            <view class="ControlLine"></view>
          </view>

            </view> 
          </scroll-view>

        </view>
        <view wx:if="{{ISLoopDebugging===2}}" class="bg-white"  >
         
          <view style="text-align: left;font-weight: bold">设备当前版本：</view>
          <view>{{UpgradestIstrue == 0? Upgradenode.Gfilename:Upgradenode.Pfilename}}</view>
         
         
          <view style="text-align: left;font-weight: bold">准备升级版本：</view>
          <view>{{UpgradestIstrue == 0? Upgradenode.App_Cfg_For_L4:Upgradenode.CONFIG_BIN}}</view>
       
          <view class="Ncubar1 bg-white">
            <view class=" text-left " wx:if="{{Upgradestatus.length>0}}" >升级状态：</view>
          <view class=" text-left " style="font-weight: bold;">{{Upgradestatus}}</view>      
          </view>
       
        </view>
    </view> 
</view> 
<!-- MAC已经被绑定弹窗提示 --> 
<view class="cu-modal {{modal==3 || modal==4?'show':''}}"> 
    <view class="cu-dialog"> 
        <view class="cu-bar bg-white justify-end"> 
            <view class="content">{{code}}已经被绑定</view> 
            <view class="action"  bindtap="GetHide" > 
                <text class="cuIcon-close text-red"></text> 
            </view> 
        </view> 
        <view class="padding-xs flex flex-wrap justify-center " > 
<view class="basis-xl text-sm" wx:for="{{bdHosts}}" > 
<text  class=" text-right ">酒店：</text><text class="text-left  text-red">{{item.HotelName}}</text> 
<text class="padding-left-xs   text-right   " >房间：</text><text class="text-left  text-red">{{item.RoomNumber}}</text> 
<button class="cu-btn margin-left-xs  sm bg-red" wx:if="{{item.qx == 0}}"  data-index="{{index}}"  type="" bindtap="Jb" >解绑</button> 
<button class="cu-btn margin-left-xs sm bg-red" wx:if="{{item.qx != 0}}"  disabled >解绑</button> 
</view> 
        <view class="basis-xl">MAC地址：<text class="text-left">{{code}}</text></view> 
        <view class="basis-xl text-left text-sm text-gray">MAC已经被其他房间绑定，点击继续将取消原有绑定，执行新的绑定；点击取消，将不会执行任何操作~</view> 
    </view> 
        <view class="cu-bar bg-white"> 
            <view class="action margin-0 flex-sub text-green " data-type="1" bindtap="ErrorInfo">反馈错误</view> 
            <view class="action margin-0 flex-sub text-green solid-left" bindtap="GetHide" >取消</view> 
            <view wx:if="{{bdHosts.length<=0}}"  class="action margin-0 flex-sub  solid-left" data-type="false" bindtap="GetMacOKend" >继续</view> 
        </view> 
    </view> 
</view> 
<!-- 手动输入mac地址 --> 
<view class="cu-modal {{modal==1000?'show':''}}"> 
    <view class="cu-dialog"> 
        <view class="cu-bar bg-white justify-end"> 
            <view class="content">为{{selHosts.RoomNumber}}绑定MAC</view> 
            <view class="action"  bindtap="GetHide" > 
                <text class="cuIcon-close text-red"></text> 
            </view> 
        </view> 
        <view class="padding-lg flex flex-wrap " > 
        <view class="basis-sm text-right">房间：</view><view class="basis-lg text-left">{{selHosts.RoomNumber}}</view> 
        <view class="basis-sm text-right">MAC地址：</view> 
        <view class="basis-lg text-left"> 
            <input placeholder="手动输入MAC" model:value="{{code}}" name="input"></input> 
        </view> 
    </view> 
        <view class="cu-bar bg-white"> 
            <view class="action margin-0 flex-sub text-green solid-left" bindtap="GetHide" >取消</view> 
            <view class="action margin-0 flex-sub  solid-left" bindtap="GetMACOK"   >确认</view> 
        </view> 
    </view> 
</view> 
<!-- 确定绑定 --> 
<view class="cu-modal {{modal==521?'show':''}}"> 
    <view class="cu-dialog"> 
        <view class="cu-bar bg-white justify-end"> 
            <view class="content">绑定确认</view> 
            <view class="action"  bindtap="GetHide" > 
                <text class="cuIcon-close text-red"></text> 
            </view> 
        </view> 
        <view class="padding-lg flex flex-wrap " > 
         <view  class="basis-sm text-right">酒店：</view><view class="text-left basis-lg">{{Hotelinfo.HotelName}}</view> 
        <view class="basis-sm text-right">房间：</view><view class="basis-lg text-left">{{selHosts.RoomNumber}}</view> 
        <view class="basis-sm text-right">MAC地址：</view><view class="basis-lg text-left">{{code}}</view> 
        <view class=" text-left flex-sub text-sm text-gray">确定为房间绑定MAC，点击继续将执行扫描绑定；点击取消，将不会执行任何操作~</view> 
    </view> 
        <view class="cu-bar bg-white"> 
            <view class="action margin-0 flex-sub text-green solid-left" bindtap="GetHide" >取消</view> 
            <view class="action margin-0 flex-sub  solid-left" data-type="true" bindtap="GetMacOKend" >继续</view> 
        </view> 
    </view> 
</view> 
<!-- 无效条形码 --> 
<view class="cu-modal {{modal==520?'show':''}}"> 
    <view class="cu-dialog"> 
        <view class="cu-bar bg-white justify-end"> 
            <view class="content">无效条码</view> 
            <view class="action"  bindtap="GetHide" > 
                <text class="cuIcon-close text-red"></text> 
            </view> 
        </view> 
        <view class="padding-lg flex flex-wrap " > 
        <view class="basis-sm text-right">无效条码:</view><view class="basis-lg text-left">{{code}}</view> 
        <view class=" text-left flex-sub text-sm text-gray">扫描的条码为无效条码~</view> 
    </view> 
        <view class="cu-bar bg-white"> 
            <view class="action margin-0 flex-sub text-green solid-left" bindtap="GetHide" >确定</view> 
        </view> 
    </view> 
</view> 
 
<!-- 确定绑定 --> 
<view class="cu-modal {{modal==-521?'show':''}}"> 
    <view class="cu-dialog"> 
        <view class="cu-bar bg-white justify-end"> 
            <view class="content">绑定确认</view> 
            <view class="action"  bindtap="GetHide" > 
                <text class="cuIcon-close text-red"></text> 
            </view> 
        </view> 
        <view class="padding-lg flex flex-wrap " > 
         <view  class="basis-sm text-right">酒店：</view><view class="text-left basis-lg">{{Hotelinfo.HotelName}}</view> 
        <view class="basis-sm text-right">房间：</view><view class="basis-lg text-left">{{selHosts.RoomNumber}}</view> 
        <view class="basis-sm text-right">人脸机SN：</view><view class="basis-lg text-left">{{code}}</view> 
        <view class=" text-left flex-sub text-sm text-gray">确定为房间绑定SN，点击继续将执行扫描绑定；点击取消，将不会执行任何操作~</view> 
    </view> 
        <view class="cu-bar bg-white"> 
            <view class="action margin-0 flex-sub text-green solid-left" bindtap="GetHide" >取消</view> 
            <view class="action margin-0 flex-sub  solid-left" data-type="true" bindtap="GetFaceSNend" >继续</view> 
        </view> 
    </view> 
</view> 
<!-- 房间已经绑定人脸机弹窗提示 --> 
<view class="cu-modal {{modal==-1?'show':''}}"> 
    <view class="cu-dialog"> 
        <view class="cu-bar bg-white justify-end"> 
            <view class="content">{{selHosts.RoomNumber}}已经绑定人脸机</view> 
            <view class="action"  bindtap="GetHide" > 
                <text class="cuIcon-close text-red"></text> 
            </view> 
        </view> 
 
    <view class="padding-lg flex flex-wrap " > 
         <view  class="basis-sm text-right">酒店：</view><view class="text-left basis-lg">{{Hotelinfo.HotelName}}</view> 
        <view class="basis-sm text-right">房间：</view><view class="basis-lg text-left">{{message[1]}}</view> 
        <view class="basis-sm text-right">人脸机SN：</view><view class="basis-lg text-left">{{message[0]}}</view> 
        <view class=" text-left flex-sub text-sm text-gray">房间已经绑定人脸机，点击继续将执行扫描绑定；点击取消，将不会执行任何操作~</view> 
    </view> 
 
 
 
 
 
        <view class="cu-bar bg-white"> 
            <!-- <view class="action margin-0 flex-sub " data-type="0" bindtap="ErrorInfo">反馈错误</view>text-red  --> 
      <view id="{{Hotelinfo.HotelName}}_{{message[1]}}_{{message[0]}}_{{Hotelinfo.Code}}_{{Hotelinfo.HotelId}}" class="action margin-0 flex-sub  text-green  solid-left" style="font-weight: 600;" bindtap="testinfo" >设置</view> 
      <view id="{{Hotelinfo.HotelName}}_{{message[1]}}_{{message[0]}}_{{Hotelinfo.Code}}" class="action margin-0 flex-sub  text-green  solid-left" style="font-weight: 600;"  bindtap="OpenDoor" >开门</view> 
 
 
            <!-- <view   class="action margin-0 flex-sub {{selHosts.FaceSN!=''?'show':''}} text-red solid-left" bindtap="JbSn" >解绑</view> --> 
            <!-- <view class="action margin-0 flex-sub  solid-left" bindtap="GetHide" >取消</view> --> 
            <!-- <view class="action margin-0 flex-sub text-green  solid-left" bindtap="{{FaceSNinput == 0?'GetFaceCode':'ShowInputsn'}}" >继续</view> --> 
        </view> 
 
 
    </view> 
</view> 
 
<!-- SN已经被绑定弹窗提示 --> 
<view class="cu-modal {{modal==-200?'show':''}}"> 
    <view class="cu-dialog"> 
        <view class="cu-bar bg-white justify-end"> 
            <view class="content">{{code}}已经被绑定 
      
      </view> 
     
            <view class="action"  bindtap="GetHide" > 
                <text class="cuIcon-close text-red"></text> 
            </view> 
        </view> 
        <view class="padding-xs flex flex-wrap justify-center " > 
<view class="basis-xl text-sm" wx:for="{{bdHosts}}" > 
<text  class=" text-right ">酒店：</text><text class="text-left  text-red">{{item.HotelName}}</text> 
<text class="padding-left-xs   text-right   " >房间：</text><text class="text-left  text-red">{{item.RoomNumber}}</text> 
<button class="cu-btn margin-left-xs  sm bg-red" wx:if="{{item.qx == 0}}"  data-index="{{index}}"  type="" bindtap="JbSn" >解绑</button> 
<button class="cu-btn margin-left-xs sm bg-red" wx:if="{{item.qx != 0}}"  disabled >解绑</button> 
 
 
 
 
</view> 
        <view class="basis-xl">SN：<text class="text-left">{{code}}</text></view> 
        <view class="basis-xl text-left text-sm text-gray">SN已经被其他房间绑定，点击继续将取消原有绑定，执行新的绑定；点击取消，将不会执行任何操作~</view> 
   
    </view> 
        <view class="cu-bar bg-white">  
            <view class="action margin-0 flex-sub text-green solid-left" bindtap="GetHide" >取消</view> 
    
            <view wx:if="{{bdHosts.length<=0}}"  class="action margin-0 flex-sub  solid-left" data-type="false" bindtap="GetFaceSNend" >继续</view> 
        </view> 
    </view> 
</view> 
 
<!-- 手动输入SN地址 --> 
<view class="cu-modal {{modal==-1000?'show':''}}"> 
    <view class="cu-dialog"> 
        <view class="cu-bar bg-white justify-end"> 
            <view class="content">为{{selHosts.RoomNumber}}绑定人脸机SN</view> 
            <view class="action"  bindtap="GetHide" > 
                <text class="cuIcon-close text-red"></text> 
            </view> 
        </view> 
        <view class="padding-lg flex flex-wrap " > 
        <view class="basis-sm text-right">房间：</view><view class="basis-lg text-left">{{selHosts.RoomNumber}}</view> 
        <view class="basis-sm text-right">人脸机SN：</view> 
        <view class="basis-lg text-left"> 
            <input placeholder="手动输入SN" model:value="{{code}}" name="input"></input> 
        </view> 
    </view> 
        <view class="cu-bar bg-white"> 
            <view class="action margin-0 flex-sub text-green solid-left" bindtap="GetHide" >取消</view> 
            <view class="action margin-0 flex-sub  solid-left" bindtap="GetFaceSNOK"   >确认</view> 
        </view> 
    </view> 
</view>
