Files
orico-association/unpackage/dist/dev/mp-weixin/pages/component/modal/region.wxml
2026-03-25 15:53:37 +08:00

1 line
2.9 KiB
Plaintext

<view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="component-modal-region" catchtap="__e"><uni-popup class="vue-ref" vue-id="ae999df6-1" type="bottom" safe-area="{{false}}" data-ref="popupModal" data-event-opts="{{[['^change',[['onChange']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-box" style="{{'--theme-color:'+(themeColor)+';'}}"><view class="popup-header"><view class="title">地区选择</view><image class="close" src="/static/close.png" mode="aspectFit" data-event-opts="{{[['tap',[['onClose',['$event']]]]]}}" bindtap="__e"></image></view><view class="popup-content flex-direction-column"><view class="contetnt-select flex"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="select-item flex" bindtap="__e"><view class="item-title">省:</view><view class="item-value">{{selectProvince||"请选择"}}</view></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="select-item flex" bindtap="__e"><view class="item-title">市:</view><view class="item-value">{{selectCity||"请选择"}}</view></view><view class="select-item flex"><view class="item-title">区/县:</view><block wx:if="{{selectCity}}"><view class="item-value">{{selectArea||"全部"}}</view></block><block wx:else><view class="item-value">请选择</view></block></view></view><scroll-view class="contetnt-city flex-item" scroll-y="{{true}}"><view class="city-list"><block wx:if="{{$root.g0}}"><block><block wx:for="{{provinceList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeProvince',['$0','$1'],[[['provinceList','',index,'id']],[['provinceList','',index,'name']]]]]]]}}" class="list-item" bindtap="__e">{{item.name}}</view></block></block></block><block wx:if="{{$root.g1}}"><block><block wx:for="{{cityList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeCity',['$0','$1'],[[['cityList','',index,'id']],[['cityList','',index,'name']]]]]]]}}" class="list-item" bindtap="__e">{{item.name}}</view></block></block></block><block wx:if="{{$root.g2}}"><block><view data-event-opts="{{[['tap',[['changeArea',['']]]]]}}" class="{{['list-item',(selectArea=='')?'active':'']}}" bindtap="__e">全部</view><block wx:for="{{areaList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeArea',['$0'],[[['areaList','',index,'name']]]]]]]}}" class="{{['list-item',(selectArea==item.name)?'active':'']}}" bindtap="__e">{{item.name}}</view></block></block></block></view><block wx:if="{{$root.g3}}"><view class="city-empty">暂无相关数据</view></block></scroll-view></view><view class="popup-btn"><view data-event-opts="{{[['tap',[['onReset',['$event']]]]]}}" class="btn" bindtap="__e">重置</view><view data-event-opts="{{[['tap',[['onConfirm',['$event']]]]]}}" class="btn confirm" bindtap="__e">确认</view></view></view></uni-popup></view>