picker_cell.wxml
1.3 KB
<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&&disabled}}" class="text_999_28 float_right">{{selected}}</view>
<view wx:elif="{{selected}}" class="text_333_28 float_right ">{{selected}}</view>
<view wx:else class="text_999_28 float_right ">{{placeholder}}</view> -->
<text wx:if="{{selected&&disabled}}" class="text_999_28 float_right">{{selected}}</text>
<text wx:elif="{{selected}}" class="text_333_28 float_right ">{{selected}}</text>
<text wx:else class="text_999_28 float_right ">{{placeholder}}</text>
</picker>
</view>
</view>
</template>