<!--pages/TicketDetails/TicketDetails.wxml-->
<view class="all">
  <view class="contTop">
    <view class="imgView">
      <image mode="aspectFill" class="ticketImg" src="{{ticketUser.coupon_img_large}}"></image>
      <image class="tooth" src="../images/tooth.png"></image>
    </view>
    <view class="buyNum">
      <view class="circleLeft"></view>
      <view class="ticketName">{{ticketUser.coupon_type}}</view>
      <view class="line"></view>
      <view class="lineRig">
        <text class="bigWord">{{ticketUser.num}}</text>
        <text class="smaWord">张</text>
      </view>
      <view class="circleRig"></view>
    </view>
  </view>

  <view class="botAll">
    <text class="title">使用说明</text>
    <view>
      <view class="timeLimit">
        <image src="../images/circle.png"></image>
        <text>使用期限</text>
      </view>
      <view class="specify">{{ticketUser.duration}}</view>
    </view>
    <view>
      <view class="timeLimit">
        <image src="../images/circle.png"></image>
        <text>使用条件</text>
      </view>
      <view class="specify">{{ticketUser.coupon_condition_desc}}</view>
    </view>
    <view>
      <view class="timeLimit">
        <image src="../images/circle.png"></image>
        <text>适用门店</text>
      </view>
      <view class="specify">{{ticketUser.coupon_allow_shop}}</view>
    </view>
  </view>

  <view class="lookView">
    <button wx:if="{{!yesCode}}" plain="true" size="mini" class="lookCode" bindtap="showCode">点击查看二维码</button>
    <image wx:else class="codeImg" src="{{codePicUrl}}"></image>
  </view>
  <!-- <scroll-view class="scrollY" scroll-y="true">
    <view class="history" wx:for="{{ticketStateArr}}">
      <view class="historyLeft">
        <image class="historyTicketBg" src="../images/historyTicketBg.png"></image>
        <view class="ticketCode">券码：{{item.coupon_sell_id}}</view>
      </view>
      <view class="tickName">{{item.coupon_type}}</view>
      <view class="tickType" wx:if="{{item.coupon_state==1}}">未使用</view>
      <view class="tickType" wx:if="{{item.coupon_state==2}}">已使用</view>
      <view class="tickType" wx:if="{{item.coupon_state==3}}">锁定</view>
    </view>
   </scroll-view> -->
</view>