信达小程序
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.

88 lines
3.1 KiB

1 month ago
<image class="aside-share" src="{{imageUrl}}za-images/icon3.png?t={{Timestamp}}" bindtap="handleShow"></image>
<van-popup show="{{ show }}" position="bottom" round close-on-click-overlay bind:click-overlay="handleClose">
<view class="popup">
<van-icon bind: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}}za-images/icon6.png?t={{Timestamp}}"></image>
</view>
<view class="item" bind:tap="handleCity">
<view class="content">{{CityName || '请选择城市'}}</view>
<image class="icon" src="{{imageUrl}}za-images/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>
<image wx:if="{{item.value === CityId}}" class="icon" src="{{imageUrl}}za-images/icon7.png?t={{Timestamp}}"></image>
</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>
<image
wx:if="{{item.code=== ProvinceId}}"
class="icon"
src="{{imageUrl}}za-images/icon7.png?t={{Timestamp}}"
></image>
</view>
</block>
</block>
</scroll-view>
</block>
</view>
</van-popup>