-
Notifications
You must be signed in to change notification settings - Fork 0
/
selectViewComponent.wxml
17 lines (16 loc) · 1.22 KB
/
selectViewComponent.wxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!--templates/selectViewComponent.wxml-->
<view class='containerView' style = '{{isConfirmFixed?"padding-bottom:56.5px":((isHaveConfirm || isHaveReset)?"padding-bottom:0px":"padding-bottom:12.5px")}}'>
<view class='section' wx:for='{{titles}}' wx:key="{{item}}">
<view class='sectionTitle' wx:if='{{!item.notShowName}}'>{{item.name}}</view>
<view class='sectionLabel'>
<view wx:for='{{item.value}}' wx:for-item="label" wx:key="{{label}}">
<view wx:if="{{selectData[item.name][label]}}" class='label_select' style='min-width:{{labelWidth}}px' data-label='{{item.name+"_"+label}}' catchtap='clickLabel'>{{label}}</view>
<view class='label' style='min-width:{{labelWidth}}px' wx:else data-label='{{item.name+"_"+label}}' catchtap='clickLabel'>{{label}}</view>
</view>
</view>
</view>
<view wx:if='{{isHaveConfirm || isHaveReset}}' class='{{isConfirmFixed?"bottomView_fixed":"bottomView"}}' style='{{isConfirmFixed?"margin-top:0px":"margin-top:12.5px"}}'>
<view class='reset' catchtap='resetAction' wx:if='{{isHaveReset}}'>重置</view>
<view class='confirm' catchtap='confirmAction' wx:if='{{isHaveConfirm}}' style='{{isHaveReset?"width:calc(100%/2.0)":"width:100%"}}'>确定</view>
</view>
</view>