<view class="top_banner flex-row">
  <view class="top_banner_item flex-column" bindtap="gotoFree">
    <view class="t_b_i_title">免费券包</view>
    <view class="t_b_i_border {{type==1?'active':''}}"></view>
  </view>

  <view class="top_banner_item flex-column" bindtap="gotoPay">
    <view class="t_b_i_title">特惠券包</view>
    <view class="t_b_i_border {{type==2?'active':''}}"></view>
  </view>
  
</view>


<view class="coupon_item flex-row" wx:for="{{list}}" wx:key="unique">
    <image src="{{item.coverImg}}" class="coupon_item_img"></image>
    <view class="coupon_item_right flex-column">
    <view class="flex-column">
      <view class="coupon_name over-ellipsis-two">{{item.name}}</view>
      <view class="coupon_num" wx:if="{{item.cashCouponNum > 0 && item.discountCouponNum > 0}}">含{{item.cashCouponNum}}张代金券、{{item.discountCouponNum}}张折扣券</view>
      <view class="coupon_num" wx:if="{{item.cashCouponNum ==0 && item.discountCouponNum > 0}}">含{{item.discountCouponNum}}张折扣券</view>
      <view class="coupon_num" wx:if="{{item.cashCouponNum > 0 && item.discountCouponNum == 0}}">含{{item.cashCouponNum}}张代金券</view>
      <view class="coupon_num" wx:if="{{item.cashCouponNum ==0 && item.discountCouponNum ==0}}"></view>
     
    </view>
      <view class="coupon_i_r_bottom flex-row">
        <view class="coupon_price">价值 ￥{{item.formatShowPrice}}</view>
        <view class="coupon_buy" bindtap="goCouponDetail" data-id="{{item.activityId}}" wx:if="{{item.isPay!=0}}">{{item.formatPrice}}元抢</view>
        <view class="coupon_buy" bindtap="goCouponDetail" data-id="{{item.activityId}}" wx:else>免费领取</view>
      </view>
    </view>
  </view>

  <!-- <view class="coupon_item flex-row">
    <image src="https://dy.shpr.top/welfareGo/index_top.png" class="coupon_item_img"></image>
    <view class="coupon_item_right flex-column">
    <view class="flex-column">
      <view class="coupon_name over-ellipsis-two">圣诞优惠券包</view>
      <view class="coupon_num">含3张代金券、3张折扣券</view>
    </view>
      <view class="coupon_i_r_bottom flex-row">
        <view class="coupon_price">价值 ￥99</view>
        <view class="coupon_buy" bindtap="goCouponDetail">99.99元抢</view>
      </view>
    </view>
  </view> -->
