picker_cell.wxml 1.9 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}}" class="text_333_28 float_right">{{selected}}</view>
        <view wx:elif="{{placeholder}}" class="text_333_28 float_right">{{placeholder}}</view>
      </picker>
    </view>

    <!-- <text class='text_333_28 float_right'>请选择关系</text> -->
  </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>