You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

52 lines
2.2 KiB

<view class="region_picker" wx:if='{{is_show}}' bindtap="cancel">
<!-- multiple 开启多选 招聘 -->
<view wx:if="{{ multiple }}" class="box" style="height: {{select_list.length >= 1 ? '900rpx' : '780rpx' }}"
catchtap="btn_fn">
<view class="header">
<text>意向地区(最多选3个)</text>
</view>
<view class="middle_tag" catchtap="btn_fn" wx:if='{{ select_list.length >= 1}}'>
<view wx:for="{{select_list}}" wx:key='index' data-idx="{{index}}" bindtap="del_city_fn">
<text>{{item.cityName}}</text>
<image src="{{imageServerUrl}}publish/cancel.png"></image>
</view>
</view>
<view class="handle">
<text catchtap="cancel">取消</text>
<text catchtap="confirm">确定</text>
</view>
<view class="footer" catchtap="btn_fn">
<scroll-view scroll-y enable-flex >
<view wx:for="{{ list }}" wx:key="regionid" data-idx="{{index}}" catchtap="province_fn"
class="{{ index == province_idx ? 'province_active': '' }}">
<text class="{{ item.select ? 'active_dot' : '' }}">{{item.name}}</text>
</view>
</scroll-view>
<scroll-view scroll-y enable-flex >
<view wx:for="{{ list[province_idx].childers }}" catchtap="city_fn" data-idx="{{index}}" wx:key='regionid'
class="{{ item.select ? 'city_active' : ''}}">
<text>{{item.name}}</text>
</view>
</scroll-view>
</view>
</view>
<!-- multiple -> false 单选 招聘-->
<view class="odd_box" catchtap="btn_fn" wx:if="{{ !multiple }}">
<view class="odd_box_header">
<text catchtap="cancel">取消</text>
<text catchtap="confirm">确定</text>
</view>
<view class="odd_container">
<picker-view style="width:100%; height: 100%" value="{{default_val}}" indicator-class='odd_indicator_class' bindchange='pickerChange'>
<picker-view-column >
<view wx:for="{{list}}" wx:key='index'>{{item.name}}</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{list[province_idx].childers}}" wx:key='index'>{{item.name}}</view>
</picker-view-column>
</picker-view>
</view>
</view>
</view>