<!--pages/couponDetail/couponDetail.axml-->
<view class="page-integral-detail">
  <view class="coupon-wrap">
    <view class="coupon-list">
      <image class="coupon-bg" src="/assets/imgs/coupon-bg.png"/>
      <view class="coupon-img">
        <image a:if="{{couponDetail.couponDetail.style.takeCouponBgimg}}" src="{{couponDetail.couponDetail.style.takeCouponBgimg}}"></image>
        <image a:else src="/assets/imgs/qr-code.png"></image>
      </view>
      <view class="coupon-info">
        <view class="coupon-name fs-28">{{couponDetail.couponSetting.title}}</view>
        <view class="coupon-desc fs-28">{{couponDetail.coupon.startTime}} 至 {{couponDetail.coupon.endTime}}</view>
      </view>
      <view class="coupon-code fs-24" onTap="handelPresentCouponCode">出示券码</view>
    </view>
    <view class="integral-detail">
      <!-- <view class='integral-list'>
        <text class='integral-title'>优惠详情</text>
        <text class='integral-desc'>{{couponDetail.couponSetting.notice}}</text>
      </view> -->
      <view
        class="integral-list"
        a:for="{{couponDetail.couponSetting.notice}}"
        a:key="{{index}}"
      >
        <text class="integral-title">{{item.label}}</text>
        <text class="integral-desc wpl">{{item.value}}</text>
      </view>
    </view>
    <!--<button type='primary' class="redeem-now" bindtap="handelPresentCouponCode">出示券码</button>-->
  </view>
</view>
<view class="position-bottom">
  <button
    type="primary"
    class="redeem-now"
    onTap="handelPresentCouponCode"
  >出示券码</button>
</view>