addressPicker.wxml
2.36 KB
<view class='content' hidden="{{!editeAddressPage.isShow}}">
<view class="wx-mask" id="wx-mask">
<view class="cancelButtonView" catchtap="cancelButton"></view>
<view class="picker-view">
<view class="header">
<text class='headerText'>选择地区</text>
</view>
<view class="fliter">
<view class="fliterItemView" wx:if='{{editeAddressPage.currentLevel >=0}}' style="margin-left: 30rpx;" catchtap="didTouchFliter" data-index="0">
<text class="'fliterItem' {{fliterSelectIndex == 0 ? 'selected' : ''}}">{{editeAddressPage.level0Select ? editeAddressPage.level0Select.caption : '请选择'}}</text>
</view>
<view class="fliterItemView" wx:if='{{editeAddressPage.currentLevel >=1}}' catchtap="didTouchFliter" data-index="1">
<text class="'fliterItem' {{fliterSelectIndex == 1 ? 'selected' : ''}}">{{editeAddressPage.level1Select ? editeAddressPage.level1Select.caption : '请选择'}}</text>
</view>
<view class="fliterItemView" wx:if='{{editeAddressPage.currentLevel >=2}}' catchtap="didTouchFliter" data-index="2">
<text class="'fliterItem' {{fliterSelectIndex == 2 ? 'selected' : ''}}">{{editeAddressPage.level2Select ? editeAddressPage.level2Select.caption : '请选择'}}</text>
</view>
<view class="fliterItemView" wx:if='{{editeAddressPage.currentLevel >=3}}' style="margin-right: 30rpx;" catchtap="didTouchFliter" data-index="3">
<text class="'fliterItem' {{fliterSelectIndex == 3 ? 'selected' : ''}}">{{editeAddressPage.level3Select ? editeAddressPage.level3Select.caption : '请选择'}}</text>
</view>
</view>
<scroll-view class='scrollView' scroll-y style="height: 624rpx;">
<block wx:for="{{editeAddressPage['address_'+ fliterSelectIndex]}}" wx:key='{{index}}'>
<view class='cell' catchtap="didTouchCell" data-fliter-select-index="{{fliterSelectIndex}}" data-row-index="{{index}}">
<text class="'title' {{item.caption == editeAddressPage['level' + fliterSelectIndex + 'Select'].caption ? 'selected' : ''}}">{{item.caption}}</text>
<image wx:if="{{item.caption == editeAddressPage['level' + fliterSelectIndex + 'Select'].caption}}" class='selectIcon' src='../../../../assets/images/choose@3x.png'></image>
</view>
</block>
</scroll-view>
</view>
</view>
</view>