<!-- <view class='product' wx:if="{{showTopic}}" bindtap='gotoTopic'>
  <image src='{{cover}}' mode='widthFix'></image>
</view> -->

<view wx:if="{{obj.couponList.length>0||obj.isOnlyAd==1}}">
  <view class='product' bindtap='gotoTopic' data-id="{{obj.id}}" wx:if="{{obj.isOnlyAd==1}}">
    <image class="img" src='{{obj.cover}}' mode='scaleToFill'></image>
  </view>


  <view class="commBox" wx:if="{{obj.topicType!=1||(obj.topicType==1&&obj.isOnlyAd==0)}}">
    <view class="titleBox">
      <image class="titleImg" src="{{titleImgUrl}}" wx:if="{{!special}}"></image>
      <view class="specialTitle" wx:if="{{special}}">{{obj.name}}</view>
      <view class="more" bindtap="lookAll">查看更多优惠活动
        <image class="rup" src="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_icon_jt.png"></image>
      </view>
    </view>

    <view class="contBox">
      <view class="topImg" wx:if="{{obj.cover}}" bindtap="lookAll">
        <image class="img" src="{{obj.cover}}" mode='scaleToFill'></image>
      </view>
      <div class="itemBox" wx:if="{{obj.couponList&&obj.couponList.length>0}}">
        <view class="item"  wx:for="{{obj.couponList}}" wx:key="index" bindtap="goDetail" data-type="{{item.type}}" data-id="{{item.id}}" data-couponid="{{item.couponId}}">
          <view class="itemImg">
            <image class="img" src="{{item.coverImg}}" mode='scaleToFill'></image>
            <view class="sellout" wx:if="{{item.remainInventory==0}}">
              <image class="selloutImg" src="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_img_ysx.png"></image>
            </view>
            
          </view>
          <view class="titleNameBox">
            <view class="titleName">{{item.title}}</view>
          </view>
            
          <view class="priceBox">
            <view class="sellingBox f">
              <view class="fuhao">￥</view>
              <view class="int" wx:if="{{item.type!=50}}">{{item.salePriceStrQ?item.salePriceStrQ:item.salePriceStr}}</view>
              <view class="fuhao" wx:if="{{item.type!=50}}">{{item.salePriceStrH?'.'+item.salePriceStrH:''}}</view>
              
              <view class="int" wx:if="{{item.type==50}}">{{item.creditPrice}}</view>
              <view class="fuhao" wx:if="{{item.type==50}}"> 积分</view>
            </view>
            <view class="originalBox r">
              <view class="origina">￥{{item.priceStr}}</view>
            </view>
          </view>
          <view class="countBox" wx:if="{{isShowCount}}">
            <view class="countText f">{{setIntervalLsit[index].textTime}}</view>
            <view class="countDate r">{{setIntervalLsit[index].vaFlag?'活动已结束':setIntervalLsit[index].valueText}}</view>
          </view>
        </view>
        <view class="item moreItem" bindtap="lookAll">
          <view class="noDataImg">
            <image class="img" src="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_img_zwlp.png"></image>
          </view>
          <view class="noDataText">查看更多优惠活动</view>
        </view>
      </div>
    </view>
  </view>

</view>