<view class="wakeList">
  <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="ps">
    <image mode="heightFix" src="./../../img/vaa.png"></image>
    <text>设备网络异常时，将会使用默认闹铃声</text>
  </view>
  <view class="list" style="height: calc(100vh - {{navBarHeight}}px - 36rpx);">
    <view wx:for="{{list}}" data-index="{{index}}" class="page-view" bindtap="actionWake">
      <view>
        <image mode="scaleToFill" src="{{item.pic || item.channelPic}}"></image>
      </view>
      <view class="textInfo">
        <text class="name">{{item.name || item.channelName}}</text>
        <text wx:if="{{actionIndex === index}}" class="audioInfo">
          {{deviceWake.length > 0 ? deviceWake[0].audioName : ""}}
        </text>
      </view>
      <image wx:if="{{actionIndex === index}}" class="action" style="height:28rpx; width:28rpx;" src="./../../img/gg.png" mode="aspectFit"></image>
    </view>
  </view>
  <view wx:if="{{isShowWakeDetail}}" class="wakeDetail">
    <view class="wakeDetail-view">
      <text>请选择</text>
      <view class="wakeListInfo">
        <view class="li {{actionWakeIndex === index ? 'action' : ''}}" wx:for="{{detailList}}" data-index="{{index}}" bindtap="actionWakeDetail">
          <text>{{index + 1}}</text>
          <text>{{item.audioName}}</text>
          <image wx:if="{{actionWakeIndex === index}}" src="./../../img/gg.png" style="height:28rpx; width:28rpx;" mode="aspectFit"></image>
        </view>
      </view>
      <view class="foot">
        <text class="" bindtap="clone">取消</text>
        <text class="" bindtap="setWake">设置为唤醒音</text>
      </view>
    </view>
  </view>
</view>