<!--pages/integralMallDetail/integralMallDetail.axml-->
<view class="page-integral-detail">
  <view class="coupon-wrap">
    <view class="coupon-list">
      <view class="coupon-img">
        <image a:if="{{integralMallDetail.thumbnail}}" src="{{integralMallDetail.thumbnail}}"></image>
        <image a:else src="/assets/imgs/qr-code.png"></image>
      </view>
      <view class="coupon-info">
        <view class="coupon-name fs-28">{{integralMallDetail.point}}积分</view>
        <view class="coupon-desc fs-28">{{integralMallDetail.couponName}}</view>
      </view>
      <view class="coupon-code fs-24" onTap="exchange">立即兑换</view>
    </view>
    <view class="integral-detail">
      <view
        class="integral-list"
        a:for="{{integralMallDetail.desc}}"
        a:key="{{index}}"
      >
        <text class="integral-title">{{item.label}}</text>
        <text class="integral-desc wpl">{{item.value}}</text>
      </view>
    </view>
    <!-- <view class='integral-detail' wx:if="{{integralMallDetail.desc}}">
			<image src='{{integralMallDetail.desc}}' mode="widthFix" style="width: 100%;"></image>
		 <button type='primary' class="redeem-now" bindtap='exchange'>立即兑换</button>
		</view> -->
  </view>
</view>
<view class="position-bottom">
  <button
    type="primary"
    class="redeem-now"
    onTap="exchange"
  >立即兑换</button>
</view>
<exchange-coupon-modal
  exchangeId="{{integralMallDetail.id}}"
  exchangePoint="{{integralMallDetail.point}}"
  isExchange="{{isExchange}}"
/>