<view class="container">
  <view class='goods-view'>
    <view class='goods-store'>{{storeName}}中网跨境电商</view>
    <view class='goods-shop' bindtap="toIndexPage">进入店铺 > </view>
  </view>
</view>

<view class='goods-view2'>
  <view class='goods-store2'>该优惠券适用于以下商品</view>
  <view class='goods-shop2'>共{{goodsCount}}件 </view>
</view>

<view class="sort">
  <view class="sort-box" bindtap="hideSwitchAttrPop">
    <view class="item {{currentSortType == 'default' ? 'active' : ''}}" bindtap="openSortFilter" id="defaultSort">
      <text class="txt">综合</text>
    </view>
    <view class="item by-price {{currentSortType == 'price' ? 'active' : ''}} {{currentSortOrder == 'asc'  ? 'asc' : 'desc'}}" bindtap="openSortFilter" id="priceSort">
      <text class="txt">价格</text>
    </view>
    <view class="item {{currentSortType == 'category' ? 'active' : ''}}" bindtap="openSortFilter" id="categoryFilter">
      <text class="txt">分类</text>
    </view>
  </view>
  <view class="sort-box-category" wx-if="{{categoryFilter}}" bindtap="hideSwitchAttrPop">
    <view class="item {{item.checked ? 'active' : ''}}" wx:for="{{filterCategory}}" wx:key="cate-{{item.id}}" data-category-index="{{index}}" bindtap="selectCategory">{{item.name}}</view>
  </view>
</view>

<view class="no-coupon" wx:if="{{goodsList.length == 0}}">
  <view class="c">
    <view class="title-box">
      暂无商品
    </view>
  </view>
</view>
<view class="cate-item" bindtap="hideSwitchAttrPop" wx:if="{{goodsList.length > 0}}">
  <view class="b">
    <block wx:for="{{goodsList}}" wx:for-index="iindex" wx:for-item="iitem" wx:key="unique">
      <view class="item {{iindex % 2 == 0 ? 'item-b' : '' }}">
        <navigator url="../../goods/goods?id={{iitem.id}}&&storeId={{iitem.storeId}}">
          <image class="img" src="{{iitem.list_pic_url}}" ></image>
          <text class="name">{{iitem.name}}</text>
        </navigator>

        <view class="price">￥{{iitem.retail_price}}
          <!-- <image class="cart" src="/static/images/cart.png" data-goods-id="{{iitem.id}}" data-retail-price="{{iitem.retail_price}}" bindtap='addCart' background-size="cover"></image> -->
        </view>
      </view>
    </block>
  </view>
</view>
<!--
<view wx:if="{{openAttr && goodsList.length > 0}}" class="attr-pop">
  <view class="attr-close" bindtap="switchAttrPop">X</view>
  <view class="img-info">
    <image class="img" src="{{goodsVo.list_pic_url}}"></image>
    <view class="info">
      <view class="c">
        <view class="p">价格：￥{{retailPrice}}</view>
        <view class="a" wx:if="{{productList.length>0}}">已选择：{{checkedSpecText}}</view>
        <view class="a">库存{{stockNum}}件</view>
      </view>
    </view>
  </view>
 
  <view class="spec-con">
    <view class="spec-item" wx:for="{{specificationList}}" wx:key="{{item.specification_id}}" wx:for-index="itemIndex">
      <view class="name">{{item.name}}</view>
      <view class="values">
        <view class="value {{vitem.checked ? 'selected' : ''}}" bindtap="clickSkuValue" wx:for="{{item.valueList}}" wx:for-item="vitem" wx:key="{{vitem.id}}" data-index="{{itemIndex}}" data-value-id="{{vitem.id}}" data-name-id="{{vitem.specification_id}}">{{vitem.value}}</view>
      </view>
    </view>
      
    <view class="number-item">
      <view class="name">数量</view>
      <view class="selnum">
        <view class="cut" bindtap="cutNumber">-</view>
        <input value="{{number}}" class="number" disabled="true" type="number" />
        <view class="{{number+cartNumber>= stockNum? 'addEnabel':'add'}}" bindtap="{{number+cartNumber>= stockNum ? '':'addNumber'}}">+</view>
      </view>
    </view>
    <view class="bottom-btn">
      <view class="r" bindtap="addToCart">加入购物车</view>
    </view> 
  </view>
</view>-->
  
