<!--pages/index/writeoffPage/writeoffPage.ttml-->
<view class='write0ffPage'>
  <view class='detail_msg'>
    <view>
      <view>
        <image src='{{couponOrderDetail.coverImg}}' mode='aspectFill'></image>    
      </view>
      <view>
        <text>{{couponOrderDetail.title}}</text>
        <text>有效期至：{{couponOrderDetail.expiredTime}}</text>
        <text tt:if="{{couponOrderDetail.type == 8&&couponOrderDetail.couponPrice == couponOrderDetail.price}}">￥{{couponOrderDetail.couponPrice/100}}</text>
        <text tt:if="{{couponOrderDetail.type == 8&&couponOrderDetail.couponPrice != couponOrderDetail.price}}">￥{{couponOrderDetail.salePrice/100}}</text>
      </view>
    </view>
    <view>
      <text>领券时间</text>
      <text>{{couponOrderDetail.createDate}}</text>
    </view>
    <view>
      <text>券码</text>
      <text>{{couponOrderDetail.id}}</text>
    </view>
  </view>
  <view class='detail_info'>
    <view bindtap='rule'>
      <text>活动规则</text>
      <text class='iconfont icon-left'></text>
    </view>
     <view>
      <text tt:if="{{couponOrderDetail.type == 8}}">原价</text>
      <text tt:if="{{couponOrderDetail.type != 8}}">券面额</text>
      <text>{{couponOrderDetail.price/100}}元</text>
    </view>
     <view>
      <text tt:if="{{couponOrderDetail.type != 8}}">券售价</text>
      <text tt:if="{{couponOrderDetail.type == 8}}">底价</text>
      <text><text style='color:#ff3434;'>{{couponOrderDetail.couponPrice/100}}</text>元</text>
    </view>
     <view>
      <text>券状态</text>
      <text>{{statusText}}</text>
    </view>
  </view>
  <view class='status'>
    <image mode='widthFix' src='{{statusImg}}'></image>
  </view>
  <button class='user' bindtap='user' tt:if='{{flag}}' hover-class='active'>使用</button>
  <button class='user' bindtap='reBuck' hover-class='active' tt:else>返回首页</button>
</view>