forked from nsjcy/frontEnd/nsjcy

LAPTOP-RI7D261L\Mr Ke
2020-02-13 a2789abb73725738127b03d95c95081b66954916
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
<wux-popup position="bottom" visible="{{ visible }}" safeArea="bottom" bind:close="onPopupClose">
    <view class="wux-class {{ classes.wrap }}">
        <view class="{{ classes.hd }}">
            <view class="{{ classes.title }}" wx:if="{{ title }}">{{ title }}</view>
            <view class="{{ classes.menus }}" wx:if="{{ activeOptions.length }}">
                <block wx:for="{{ activeOptions }}" wx:key="">
                    <view class="{{ classes.menu }} {{ activeIndex === index ? prefixCls + '__menu--active' : '' }}" data-menu-index="{{ index }}" bindtap="onMenuClick">{{ item[fieldNames['label']] }}</view>
                </block>
            </view>
        </view>
        <view class="{{ classes.bd }}" style="{{ bodyStyle }}">
            <block wx:for="{{ showOptions }}" wx:for-item="option" wx:for-index="optionIndex" wx:key="">
                <view class="{{ classes.inner }}">
                    <scroll-view scroll-y class="wux-scroll-view-class {{ classes.scrollView }}">
                        <view class="{{ classes.option }}">
                            <block wx:for="{{ option }}" wx:key="">
                                <view
                                    class="{{ classes.item }} {{ activeValue[optionIndex] === item[fieldNames['value']] ? prefixCls + '__item--active' : '' }} {{ item.disabled ? prefixCls + '__item--disabled' : '' }}"
                                    data-option-index="{{ optionIndex }}"
                                    data-item="{{ item }}"
                                    bindtap="onItemSelect"
                                >
                                    <text>{{ item[fieldNames['label']] }}</text>
                                    <icon class="{{ classes.icon }}" type="success_no_circle" size="16" color="#ef473a" wx:if="{{ activeValue[optionIndex] === item[fieldNames['value']] }}" />
                                </view>
                            </block>
                        </view>
                    </scroll-view>
                </view>
            </block>
        </view>
    </view>
</wux-popup>