<!--packageE/community/community.wxml-->
<view class="component-wrapper {{'component-'+component_id}}">
    <view>
        <van-tabs active="{{active}}" wx:if="{{!U_tabcontrol && (!datas.get_style || datas.get_style == 1)}}"
                    swipeable sticky="{{btnFlag}}"
                    bind:change="getClassificationBtn"
                    color="{{datas.title_active_color}}"
                    tab-class="tag">
            <van-tab title="最新" name="0" title-style="background: {{datas.tab_bg}};color:{{active=='0'?datas.title_active_color:datas.title_color}};">
                <view class="video_list" wx:if="{{newClassification}}">
                    <Waterfalls_flow datas="{{datas}}" goodsData="{{newClassification}}"></Waterfalls_flow>
                    <view wx:if="{{newClassification.length <= 0}}" class="blank">
                        <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
                    </view>
                </view>
            </van-tab>
            <van-tab title="附近" name="near" title-style="background: {{datas.tab_bg}};color:{{active=='near'?datas.title_active_color:datas.title_color}};" wx:if="{{datas.show_nearby}}">
                <view class="video_list" wx:if="{{nearbyClassification}}">
                    <Waterfalls_flow datas="{{datas}}" goodsData="{{nearbyClassification}}"></Waterfalls_flow>
                    <view wx:if="{{nearbyClassification.length <= 0}}" class="blank">
                        <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
                    </view>
                </view>
            </van-tab>
            <block wx:for="{{cate}}" wx:key="index">
                <van-tab title="{{item.name}}" name="{{item.id}}" title-style="background: {{datas.tab_bg}};color:{{active==item.id?datas.title_active_color:datas.title_color}};">
                    <block wx:if="{{cateList[index]&&cateList[index].length>0}}">
                        <Waterfalls_flow datas="{{datas}}" goodsData="{{cateList[index]}}"></Waterfalls_flow>
                        <view wx:if="{{cateList[index] <= 0}}" class="blank">
                            <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
                        </view>
                    </block>
                </van-tab>
            </block>
        </van-tabs>

        <block wx:if="{{U_tabcontrol && (!datas.get_style || datas.get_style == 1)}}">
            <view class="video_list" wx:if="{{newClassification}}">
                <Waterfalls_flow datas="{{datas}}" goodsData="{{newClassification}}"></Waterfalls_flow>
                <view wx:if="{{newClassification.length <= 0}}" class="blank">
                    <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
                </view>
            </view>
        </block>

        <block wx:if="{{datas.get_style == 2}}">
            <view class="video_list" wx:if="{{newClassification}}">
                <Waterfalls_flow datas="{{datas}}" goodsData="{{newClassification}}"></Waterfalls_flow>
                <view wx:if="{{newClassification.length <= 0}}" class="blank">
                    <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
                </view>
            </view>
        </block>

        <view wx:if="{{!plugin_active}}" style="background-color: {{datas ? datas.preview_color: ''}}">
            <view class="loadMore" wx:if="{{isLoadMore}}" catchtap="getMoreData">
                {{language['加载更多']}}
            </view>
            <view class="loadMore" wx:if="{{bottomShowBolIndex == index && !isLoadMore}}">
                {{language['没有更多了']}}~~
            </view>
        </view>
    </view>
</view>
