devices.wxml
1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!--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}}' />