<view class="container">
  <view class='goods-view-image' bindtap="hideSwitchCampPop">
    <image lazy-load="true" class="imagess" src="{{campMinus.advImgUrl}}" mode="aspectFill"></image>
  </view>
  <view class='goods-view'>
    <view class='goods-store'>活动规则</view>
    <view class='goods-shop' bindtap="selectCampMinus">查看活动规则 > </view>
  </view>
  <view class='goods-view' bindtap="hideSwitchCampPop">
    <view class='goods-store'>{{storeName}}</view>
    <view class='goods-shop' bindtap="toIndexPage">进入店铺 > </view>
  </view>
  <view class='goods-view' bindtap="hideSwitchCampPop">
    <view class='goods-time'>距结束 
      <text class='time_data'>{{campMinus.dateformat.day}}</text>天
      <text class='time_data'>{{campMinus.dateformat.hr}}</text>时
      <text class='time_data'>{{campMinus.dateformat.min}}</text>分
      <text class='time_data'>{{campMinus.dateformat.sec}}</text>秒</view>
  </view>
</view>
<view class='goods-view2' bindtap="hideSwitchCampPop">
  <view class='goods-store2'>该活动适用于以下商品</view>
  <view class='goods-shop2'>共{{goodsCount}}件 </view>
</view>

<view class="sort">
  <view class="sort-box" bindtap="hideSwitchCampPop">
    <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="hideSwitchCampPop">
    <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}}" bindtap="hideSwitchCampPop">
  <view class="c" bindtap="hideSwitchCampPop">
    <view class="title-box">
      暂无商品
    </view>
  </view>
</view>
<view class="cate-item" bindtap="hideSwitchCampPop" 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>
<!-- 查看活动规则弹框start -->
<view wx:if="{{openCampAttr}}" class="attr-pop">
  <view class="attr-title">活动规则</view>
  <view class="ticket-img-info">
    <view style="margin-top: 16rpx;height:50rpx;width:687.5rpx;">
      <view class="camp-title">
        <view style='float:left;font-size:24rpx'>活动时间：</view>
        <view class="camp-title-text">{{campMinus.inValidTime}}</view>
      </view>
      <view class="camp-title">
        <view style='float:left;font-size:24rpx'>优惠内容：</view>
        <view class="camp-title-text">{{campMinus.advDesc}}</view>
      </view>
      <view class="camp-title">
        <view style='float:left;font-size:24rpx'>使用商品：</view>
        <view class="camp-title-text">{{campMinus.applyType=='00'?'全部商品':''}}{{campMinus.applyType=='01'?'部分商品':''}}{{campMinus.applyType=='02'?'部分商品':''}}，详见活动页</view>
      </view>
      <view class="camp-title">
        <view style='float:left;font-size:24rpx'>优惠叠加：</view>
        <view style='width:500rpx' class="camp-title-text">不与会员折扣、优惠券/码、限时折扣、特权价同时使用</view>
      </view>
    </view>
  </view>
</view>
<!-- 查看活动规则end -->
<view class="btns">
  <view class="save" bindtap="toIndexPage">进店逛逛</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">库存{{goodsVo.goodsBizType==00 && goodsVo.isStockShare==1?goodsVo.goods_number:goodsVo.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>-->