xusd
7 days ago 998218675eb243d43912c203174a6b72b299c0f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!-- 非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>