picker_cell.wxml 1.5 KB
<template name="picker_cell_normal">
  <view class='item_body' hidden='{{hidden}}'>
    <text hidden='{{!isrequre}}' style='color:red;font-size: 30rpx;line-height: 90rpx;float:left;  margin-right: 10rpx'>*</text>
    <view wx:if='{{isrequre}}'>
      <text class='text_777_30 float_left' style='line-height: 90rpx;'>{{label}}</text>
    </view>
    <view wx:elif='{{isblack}}'>
      <text class='text_black_30 float_left head_in' style='line-height: 90rpx;'>{{label}}</text>
    </view>
    <view wx:else>
      <text class='text_777_30 float_left head_in' style='line-height: 90rpx;'>{{label}}</text>
    </view>
    <image wx:if='{{!disabled}}' 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}}'>
        <text wx:if="{{selected&&disabled}}" class="text_black_30 float_right text-single" style='line-height: 90rpx;text-align:right;max-width:{{maxWidth}}rpx;'>{{selected}}</text>
        <text wx:elif="{{selected}}" class="text_black_30 float_right text-single" style="line-height: 90rpx;text-align:right;max-width:{{maxWidth}}rpx;">{{selected}}</text>
        <text wx:else class="text_999_30 float_right " style='line-height: 90rpx;'>{{placeholder}}</text>
      </picker>
    </view>
  </view>
</template>