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.
82 lines
2.7 KiB
82 lines
2.7 KiB
|
3 weeks ago
|
<slot bind:tap="handleShow"></slot>
|
||
|
|
|
||
|
|
<van-popup show="{{ show }}" position="bottom" round close-on-click-overlay bind:click-overlay="handleClose">
|
||
|
|
<view class="popup">
|
||
|
|
<van-icon catch:tap="handleClose" class="close" name="cross" />
|
||
|
|
<view class="p-header">
|
||
|
|
<view class="title">选择省份和地区</view>
|
||
|
|
<!-- <view class="tip">对方打开后自动定位此地区</view> -->
|
||
|
|
<view class="area">
|
||
|
|
<view class="item" bind:tap="handleProvince">
|
||
|
|
<view class="content">{{ProvinceName || '请选择省份'}}</view>
|
||
|
|
<image class="icon" src="{{imageUrl}}icon6.png?t={{Timestamp}}"></image>
|
||
|
|
</view>
|
||
|
|
<view class="item" bind:tap="handleCity">
|
||
|
|
<view class="content">{{CityName || '请选择城市'}}</view>
|
||
|
|
<image class="icon" src="{{imageUrl}}icon6.png?t={{Timestamp}}"></image>
|
||
|
|
</view>
|
||
|
|
<view class="btn" bind:tap="handleShare">确定</view>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<block wx:if="{{active===1}}">
|
||
|
|
<scroll-view
|
||
|
|
class="scroll"
|
||
|
|
scroll-y
|
||
|
|
scroll-with-animation
|
||
|
|
scroll-into-view="{{scrollIntoView1}}"
|
||
|
|
show-scrollbar="{{false}}"
|
||
|
|
>
|
||
|
|
<view
|
||
|
|
class="item {{item.value === CityId && 'active'}}"
|
||
|
|
id="{{'id'+item.value}}"
|
||
|
|
wx:for="{{range}}"
|
||
|
|
wx:key="index"
|
||
|
|
bind:tap="handleChangeCity"
|
||
|
|
data-code="{{item.value}}"
|
||
|
|
data-name="{{item.label}}"
|
||
|
|
>
|
||
|
|
<view class="left">{{item.label}}</view>
|
||
|
|
</view>
|
||
|
|
</scroll-view>
|
||
|
|
</block>
|
||
|
|
<block wx:else>
|
||
|
|
<view class="select">
|
||
|
|
<view
|
||
|
|
class="s-item {{word===index && 'active'}}"
|
||
|
|
wx:for="{{proList}}"
|
||
|
|
wx:key="index"
|
||
|
|
bind:tap="handleSelect"
|
||
|
|
data-id="{{index}}"
|
||
|
|
>
|
||
|
|
{{index}}
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<scroll-view
|
||
|
|
class="scroll"
|
||
|
|
scroll-y
|
||
|
|
scroll-into-view="{{scrollIntoView0}}"
|
||
|
|
scroll-with-animation
|
||
|
|
show-scrollbar="{{false}}"
|
||
|
|
>
|
||
|
|
<block wx:for="{{proList}}" wx:for-item="list" wx:for-index="key" wx:key="key">
|
||
|
|
<block wx:for="{{list}}" wx:key="index">
|
||
|
|
<view wx:if="{{index==0}}" id="{{key}}"></view>
|
||
|
|
<view
|
||
|
|
class="item {{item.code=== ProvinceId && 'active'}}"
|
||
|
|
id="{{'id'+item.code}}"
|
||
|
|
bind:tap="handleItem"
|
||
|
|
data-code="{{item.code}}"
|
||
|
|
data-name="{{item.name}}"
|
||
|
|
>
|
||
|
|
<view class="left">
|
||
|
|
<text class="word">{{index===0 ? key : ''}}</text>
|
||
|
|
{{item.name}}
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</block>
|
||
|
|
</block>
|
||
|
|
</scroll-view>
|
||
|
|
</block>
|
||
|
|
</view>
|
||
|
|
</van-popup>
|