devices.wxml 1.74 KB
<!--smartcar/pages/devices/devices.wxml-->

<view class='layout'>
  <view class='title'>已绑定的设备切换</view>
  <view wx:for='{{list}}' class='list {{item.state==1?"state":""}}' wx:key='*this'>
    <view class='top' bindtap='choose' data-index='{{index}}' data-device='{{item}}'>
      <image src='{{item.imgsrc}}' class='pull-left' bindtap='toDetail' data-userId='{{item.userId}}' data-type='{{item.name}}'></image>
      <view class='devices-box pull-left'>
        <view class='devices-name'>
          {{item.name}}
          <text>{{item.state==1?"已认证":"未认证"}}</text>
        </view>
        <view>IMEI:{{item.imei}}</view>
        <view>ICCID:{{item.iccid}}</view>
      </view>
      <view class='radio' catchtap='choose' data-index='{{index}}' data-device='{{item}}'>
        <image src='{{item.active?img.active:img.nothing}}'></image>
      </view>
    </view>
    <view class='bottom'>
      <block wx:if='{{item.state==1}}'>
        <view class='blue line' bindtap='jump' data-userId='{{item.userId}}' data-type='{{item.name}}'>详情</view>
        <view bindtap='jump' data-userId='{{item.userId}}' data-type='{{item.name}}'>续费</view>
      </block>
      <block wx:else>
        <view class=' blue line' bindtap='jump' data-userId='{{item.userId}}' data-type='{{item.name}}'>详情</view>
        <view class='line' bindtap='jump' data-userId='{{item.userId}}'>实名认证</view>
        <view bindtap='jump' data-userId='{{item.userId}}' data-type='{{item.name}}'>续费</view>
      </block>
    </view>
  </view>

</view>
<!-- <view class='fixed' bindtap='bindDevice'>
  添加设备
</view> -->
<view class='fixed' bindtap='toBindPage'>+添加设备</view>
<!-- 授权组件 -->
<auth-setting auth='{{authToast}}' type='{{authType}}' />