<!-- 非tabbar页面引入 -->
|
<!-- 页面内容 -->
|
<slot wx:if="{{ loginVisible }}" />
|
<view style="display:none" wx:else>
|
<slot />
|
</view>
|
<!-- iphonex底部安全距离 -->
|
<view class="adaptation" wx:if="{{ safeBottom }}" />
|
<!-- 统一下拉底层弹出层 两种样式 -->
|
<block hidden="{{ popup.visible }}">
|
<van-popup bind:close="_handleClosePopup" position="bottom" show="{{ popup.visible }}" wx:if="{{ !popup.noPicker }}" z-index="999">
|
<van-picker
|
bind:cancel="_handleClosePopup"
|
bind:change="_handleChangePicker"
|
bind:confirm="_handleConfirmPicker"
|
column-class="my-van-picker-column"
|
columns="{{ popup.selectData || [] }}"
|
show-toolbar
|
title="{{ popup.title || '请选择' }}"
|
value-key="label"
|
/>
|
</van-popup>
|
<van-popup
|
bind:close="_handleClosePopup"
|
closeable
|
position="bottom"
|
show="{{ popup.visible }}"
|
title="{{ popup.title || '请选择' }}"
|
wx:else
|
z-index="999"
|
>
|
<scroll-view scroll-y="{{true}}" style="max-height: 800rpx;padding-top: 16rpx;">
|
<view bind:tap="_handleConfirmPicker" data-index="{{ index }}" data-value="{{ item }}" class="popup-item {{ index === popupIndex ? 'popup-item-active' : '' }}" wx:for="{{ popup.selectData }}" wx:key="index">
|
<view class="popup-item-content">{{ item.label }}</view>
|
<van-icon name="success" size="16" wx:if="{{ index === popupIndex }}" />
|
</view>
|
</scroll-view>
|
</van-popup>
|
</block>
|