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

<view tt:if="{{obj.couponList.length>0||obj.isOnlyAd==1}}" class="{{obj.isOnlyAd==1?'':'BoxX'}}">
    <view class='product' bindtap='gotoTopic' data-id="{{obj.id}}" tt:if="{{obj.isOnlyAd==1}}">
      <image src='{{obj.cover}}' mode='scaleToFill'></image>
    </view>
  
  
    <view class="commBox" tt:if="{{obj.topicType!=1||(obj.topicType==1&&obj.isOnlyAd==0)}}">
      <view class="titleBox">
        <image class="titleImg" src="{{titleImgUrl}}" tt:if="{{!special}}"></image>
        <view class="specialTitle" tt: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" tt:if="{{obj.cover}}" bindtap="lookAll">
          <image src="{{obj.cover}}" mode='scaleToFill'></image>
        </view>

        <div class="itemBox" tt:if="{{obj.couponList&&obj.couponList.length>0}}">
          <view class="item"  tt:for="{{obj.couponList}}" tt:key="index" bindtap="goDetail" data-type="{{item.type}}" data-id="{{item.id}}" data-couponid="{{item.couponId}}">
            <view class="itemImg">
              <image src="{{item.coverImg}}" mode='scaleToFill'></image>
              <view class="sellout" tt: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" tt:if="{{item.type!=50}}">{{item.salePriceStrQ?item.salePriceStrQ:item.salePriceStr}}</view>
                <view class="fuhao" tt:if="{{item.type!=50}}">{{item.salePriceStrH?'.'+item.salePriceStrH:''}}</view>
                
                <view class="int" tt:if="{{item.type==50}}">{{item.creditPrice}}</view>
                <view class="fuhao" tt:if="{{item.type==50}}"> 积分</view>
              </view>
              <view class="originalBox r">
                <view class="origina">¥{{item.priceStr}}</view>
              </view>
            </view> -->

            <view class="priceBox">
              <view class="sellingBox f">
                <view class="fuhaoX" tt:if="{{item.type!=50}}" >¥{{item.salePriceStr?item.salePriceStr:""}}</view>
                
                <view class="fuhaoX" tt:if="{{item.type==50}}"> {{item.creditPrice}}积分</view>
              </view>

              <view class="originalBox r" tt:if="{{item.type!=50}}">
                <view class="r btn" >马上抢</view>
              </view>
              <view class="originalBox f" tt:if="{{item.type==50}}">
                <view class="originaX">¥{{item.priceStr}}</view>
              </view>
            </view>
            <view class="jifengBtn" tt:if="{{item.type==50}}">
              立即兑换
            </view>

            
            <view class="countBox" tt: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 src="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_img_zwlp.png"></image>
            </view>
            <view class="noDataText">查看更多优惠活动</view>
          </view>
        </div>
      </view>
    </view>
  
  </view>