<!--pages/allGoods/allGoods.wxml-->
<view class="shop-container">

  <!-- 店铺信息 -->
  <view class="shop" bindtap="toShopInfo">
    <view class="shopInfo">
      <view class="shopLogo">
        <image src="{{shopInfo.shopLogo}}"></image>
      </view>
      <view class="shopTitle">
        <view class="shopName">{{shopInfo.shopName}}</view>
        <view class="shopDesc">{{shopInfo.intro}}</view>
      </view>
    </view>
  </view>


    <!-- 搜索框 && 排序tab -->
    <view class="head-bg">
      <view class='bg-sear'>
        <view class="{{topFlag? 'navtop' : ''}}">
          <view class='section' bindtap='toShopSearchPage' data-shopid="{{shopInfo.shopId}}">
            <image class='search-img' src='../../images/icon/search.png'></image>
            <text class='placeholder'>搜索</text>
          </view>

          <view class='tab-tit'>
            <text bindtap='onStsTap' data-sort="0" class="{{sort==0 || currentTab?'on':''}}">默认</text>
            <text bindtap='onStsTap' data-sort="1" class="{{sort==1?'on':''}}">销量</text>
            <text bindtap='onStsTap' data-sort="2" class="{{sort==2?'on':''}}">价格</text>
          </view>
        </view>
      </view>
    </view>
  <!-- 商品列表 -->
  <view class='prodlist-item-cont'>
    <block wx:for="{{shopProdList}}" wx:for-item="prod" wx:key="prodId">
      <!-- <view class='prod-items' bindtap='toProdPage' data-prodid="{{prod.prodId}}">
        <view class='hot-imagecont'>
          <image src='{{prod.pic}}' class='hotsaleimg'></image>
        </view>
        <view class='hot-text'>
          <view class='hotprod-text'>{{prod.prodName}}</view>
          <view class='prod-info'>{{prod.brief}}</view>
          <view class='prod-text-info'>
            <view class='price'>
              <text class='symbol'>￥</text>
              <text class='big-num'>{{prod.price}}</text>
            </view>
            <image src='../../images/tabbar/basket-sel.png' class='basket-img'></image>
          </view>
        </view>
      </view> -->
      <prod-item prod="{{prod}}"></prod-item>
    </block>
  
  </view>
  <view class="tips" wx:if="{{isAll}}">已加载所有商品</view>
  <shop-tabbar style="position:fixed;bottom:0;width:100%;left:0;right:0;" currentTab="1"></shop-tabbar>
</view>