picker_cell.wxml
1.8 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
<template name="picker_cell_normal">
<view class='item_body'>
<text hidden='{{!isrequre}}' style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text>
<view wx:if='{{isrequre}}'>
<text class='text_black_28 float_left'>{{label}}</text>
</view>
<view wx:else>
<text class='text_666_28 float_left'>{{label}}</text>
</view>
<image class='arrow_wrap' src='/images/arrow_right.png'></image>
<view class="weui-cell__bd">
<picker mode="{{mode?mode:'selector'}}" range-key="{{range_key}}" range="{{values}}" fields="{{fields}}" start="{{start}}" end="{{end}}" bindchange="{{onChange}}" bindcolumnchange="{{onColumnChange}}" disabled="{{disabled}}" id='{{bindtype}}'>
<view wx:if="{{selected}}" class="text_333_28 float_right">{{selected}}</view>
<view wx:elif="{{placeholder}}" class="text_999_28 float_right">{{placeholder}}</view>
</picker>
</view>
</view>
</template>
<template name="picker_cell_muti">
<view class='item_body'>
<text hidden='{{!isrequre}}' style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text>
<view wx:if='{{isrequre}}'>
<text class='text_black_28 float_left'>{{label}}</text>
</view>
<view wx:else>
<text class='text_666_28 float_left'>{{label}}</text>
</view>
<image class='arrow_wrap' src='/images/arrow_right.png'></image>
<view class="weui-cell__bd">
<picker mode="{{mode?mode:'multiSelector'}}" range-key="{{range_key}}" range="{{values}}" bindchange="{{onChange}}" bindcolumnchange="{{onColumnChange}}" disabled="{{disabled}}" id='{{bindtype}}'>
<view wx:if="{{true}}" class="text_333_28 float_right">{{selected}}</view>
<view wx:elif="{{placeholder}}" class="text_333_28 float_right">{{placeholder}}</view>
</picker>
</view>
</view>
</template>