<view class="container" style='background:{{tickDiscount.ticketColor}}'>
  <view class="coupon-form" style='background:{{tickDiscount.ticketColor}}'>
    <view class='coupon-center'>
      <view class="image-view">
        <image class="image" src="{{tickDiscount.advImgUrl}}"></image>
      </view>
      <view class='title'>{{tickDiscount.storeName}}</view>
      <view class='title2'>{{tickDiscount.name}}</view>
      <view class='title-sub'>{{tickDiscount.tickDiscSubTitle==null?'-':tickDiscount.tickDiscSubTitle}}</view>
      <view class='btn' wx:if="{{isShare==0}}">
        <button class="r" style='background: {{tickDiscount.ticketColor}};border: 1px solid {{tickDiscount.ticketColor}};' bindtap="{{tickDiscount.isReceive==0?'getUserCoupon':''}}" data-tick-Id="{{tickDiscount.tickDiscId}}" data-store-Topic-Id="{{tickDiscount.storeTopicId}}">{{tickDiscount.isReceive==0?'领取优惠券'+isReceive:''}}{{tickDiscount.isReceive==1?'已领完':''}}</button>
      </view>
      <view class='btn' wx:if="{{isShare==2}}">
        <button class="r" style='background: {{tickDiscount.ticketColor}};border: 1px solid {{tickDiscount.ticketColor}};' bindtap='linkCoupon' data-tick-Id="{{tickDiscount.tickDiscId}}" data-store-Topic-Id="{{tickDiscount.storeTopicId}}">立即使用</button>
      </view>
      <view class='time'>有效期：{{tickDiscount.inValidTime}}</view>
    </view>
    <view class='tick-info' bindtap="linkCouponInfo" data-disc-Id="{{tickDiscount.tickDiscId}}" data-coupon-Id="{{tickDiscount.couponId}}">
      <view class='txte'>{{tickDiscount.tickDiscType=='00'?'代金券':''}}{{tickDiscount.tickDiscType=='01'?'折扣券':''}}{{tickDiscount.tickDiscType=='02'?'兑换券':''}}详情</view>
      <view class='txte2'> > </view>
    </view>
    <view class='tick-info' bindtap="linkMyCoupon">
      <view class='txte'>查看我的优惠券</view>
      <view class='txte2'> > </view>
    </view>
  </view>
</view>