<!--packageA/member/supplier/SupplierIndex/SupplierIndex.wxml-->
<block wx:if="{{is_open}}">
    <view class="searchBox">
        <view class="search">
            <icon class="iconfont icon-all_search_2"></icon>
            <input type="text" placeholder="搜索店铺名称" value="{{keyword}}" bindinput="tapinp" bindconfirm="tapConfirm" bindblur="tapConfirm" />
        </view>
    </view>
    <view class="banner" wx:if="{{info.banners}}">
        <swiper id="swiperBanner">
            <block wx:for="{{info.banners}}" wx:key="index" wx:if="{{item.img}}">
                <swiper-item>
                    <image src="{{item.img}}" mode="scaleToFill" catchtap='goUrl' data-url="{{item.min_url}}"></image>
                </swiper-item>
            </block>
        </swiper>
    </view>
    <view class="viewbox">
        <block wx:for="{{listData}}" wx:key="index" wx:if="{{listData.length > 0}}">
            <view class="list">
                <view class="list_top">
                    <view class="list_top_left">
                        <view class="list_top_left_icon">
                            <view class="iconbox" style="background-color: {{!item.logo?'#fadc5d':'#fff'}};">
                                <image src="{{item.logo}}" wx:if="{{item.logo}}"></image>
                                <icon class="iconfont icon-dianpu" wx:if="{{!item.logo}}"></icon>
                            </view>
                            <view class="shop">
                                <view class="shopName">{{item.store_name ? item.store_name : ''}}</view>
                                <view class="shopTotal">热销 <text>{{item.goods_count?item.goods_count:'0'}}</text> 件</view>
                            </view>
                        </view>
                        <view class="list_top_right_btn" data-id="{{item.supplier_id}}" catchtap="goShop">进入店铺</view>
                    </view>
                </view>
                <view class="lis">
                    <view class="lis_shop" wx:for="{{item.has_many_goods}}" wx:key="index" wx:for-item="datas" wx:key-item="{{ind}}">
                        <view class="img">
                            <image src="{{datas.has_one_goods.thumb}}"></image>
                        </view>
                        <view class="title">{{datas.has_one_goods.title}}</view>
                        <view class="price" wx:if="{{datas.has_one_goods.has_option == 1 && datas.has_one_goods.min_price}}">{{language['money']}}{{datas.has_one_goods.min_price}}</view>
                        <view class="price" wx:else>{{language['money']}}{{datas.has_one_goods.price}}</view>
                    </view>
                </view>
            </view>
        </block>

    </view>
</block>


<kFoot exshow="{{true}}" wx:if="{{kFootshow}}"></kFoot>
<shopfoot bindtabrshow="tabrshowbtn"></shopfoot>