<!-- pages/deviceConMode/index.wxml -->
<!-- pages/deviceRoter0/deviceRoter0.wxml -->
<view class="main">
  <nav-bar class="nav_bar_c" bind:goBack="_goBack" nav-bgc-class="ex-nav-bgc-class" nav-title-class="ex-nav-title-class" ex-back-pre="ex-back-pre" navbar-data='{{nvabarData}}'></nav-bar>
  <image class="model_bg" src="../../images/device/mode_bg.png" mode="aspectFill" />
  <view class="select_tips">
    <view class="setDeviceModel main_green">开启设备选择{{model}}</view>
    <view wx:if="{{typeList.length > 0}}" class="deviceList">
      <block wx:for="{{typeList}}" wx:key="item">
        <view class="devicePicItem devicePicItem_{{index}}" bindtap="selectDeviceModelTap" data-device="{{item}}">
          <image class="select_icon" src="{{index === 0 ? '../../images/device/pay_select.png' : '../../images/device/wake_select_no.png'}}"></image>
          <view class="device_text">
            <image class="model_icon" src="{{item.icon}}"></image>
            <text class="model_text">{{item.text}}</text>
          </view>
        </view>
      </block>
    </view>
  </view>
  <view wx:if="{{typeList.length > 0}}" class="setDeviceModelTips">开启后点击“下一步”</view>
  <view class="main_color connect_button" bind:tap="nextTap">连接设备</view>
</view>