setting.wxml
2.13 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<view class='layout'>
<view class='title'>防盗提醒时段</view>
<view class='picker clearfix'>
<block wx:for='{{pickerItem}}' wx:key='*this'>
<picker-view indicator-style='height: 62rpx;' class='picker-view ' value='{{item.value}}' bindchange='change' data-index='{{index}}' data-num='{{item.num}}'>
<picker-view-column>
<view wx:for='{{hh}}' wx:key='*this'>{{item}}</view>
</picker-view-column>
<picker-view-column>
<view wx:for='{{mm}}' wx:key='*this'>{{item}}</view>
</picker-view-column>
</picker-view>
</block>
</view>
</view>
<view class='setting clearfix' bindtap='showList'>
防盗周期
<text>{{day}}</text>
</view>
<view class='btn save' bindtap="saveSecurityInfo">保存</view>
<view class='btn del' bindtap='del' wx:if="{{cloudSecurityInfo.group}}">删除</view>
<!-- 选择防盗周期 -->
<view class='select' hidden='{{list}}'>
<view class='bg' bindtap='closeList'></view>
<view class='box'>
<block wx:for='{{select}}' wx:key='*this'>
<view class='list' bindtap='choose' data-index='{{index}}' data-value='{{item.value}}'>
{{item.value}}
<view class='radio'>
<view class='arc' wx:if='{{!item.active}}'></view>
<image wx:else src='../../../resources/images/active.png'></image>
</view>
</view>
</block>
</view>
</view>
<!-- 自定义日期 -->
<view class='select' hidden='{{date}}'>
<view class='bg' bindtap='cancel'></view>
<view class='box'>
<view class='box-title'>
<view class='pull-left' bindtap='cancel'>取消</view>
<view class='confirm pull-right' bindtap='confirm'>确定</view>
</view>
<view catchtouchmove='move' id='box'>
<block wx:for='{{dateList}}' wx:key='*this'>
<view class='list' id='check-{{index}}'>
{{item.value}}
<view class='checkbox' bindtap='chooseDay' data-index='{{index}}' data-value='{{item.value}}'>
<view class='arc' wx:if='{{!item.active}}'></view>
<image wx:else src='../../../resources/images/active.png'></image>
</view>
</view>
</block>
</view>
</view>
</view>