<view class="deviceRoter deviceRoter3">
  <nav-bar 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>
  <view class="roterps">
    <view class="devicePic">
      <image mode="widthFix" src="{{imageUrl}}"></image>
    </view>
    <view class="lodRuter" wx:if="{{ruterStatus === 0}}">
      <text>正在连接中，请保持设备开机状态…</text>
      <progress color="#6547A3" percent="{{percent}}" show-info stroke-width="3" />
    </view>
    <view class="suRuter" wx:elif="{{ruterStatus === 1}}">
      <image style="height:48rpx; width:48rpx;" mode="aspectFit" src="./../../img/h.png"></image>
      <text>连接成功</text>
    </view>
    <view class="suRuter" wx:elif="{{ruterStatus === 2}}">
      <image style="height:48rpx; width:48rpx;" mode="aspectFit" src="./../../img/i.png"></image>
      <text>连接失败</text>
    </view>
    <view class="errorPs" wx:if="{{ruterStatus === 2}}">
      <text>请尝试：</text>
      <view>· 部分设备配网需开启GPS定位。</view>
      <view>· 尝试重启手机蓝牙，如蓝牙已连接其他设备，请先断开。</view>
      <view>
        · 连接设备WiFi可能为5GHz WiFi，设备无法连接，请切换至
        <text style="color: #6547A3">2.4GHz WiFi</text>
      </view>
    </view>
  </view>
  <view class="subBtn">
    <view wx:if="{{ruterStatus === 0}}" class="btn" style="opacity: 0.6">连接中...</view>
    <view wx:elif="{{ruterStatus === 1}}" class="btn" bindtap="goIndex">完成</view>
    <view wx:else style="background-color: #353535;" class="btn" bindtap="egen">重新连接</view>
  </view>
</view>