<!--pages/receiveTicket/receiveTicket.wxml-->

<image class="getBg" src="../images/getBg.png"></image>
<view class="all" wx:if="{{yesGet}}">
  <view class="content">
    <view class="userName">你的好友{{ticketUser.nickname}}</view>
    <view class="userPhone">{{ticketUser.user_phone}}</view>
    <view class="giveTo">赠送给您</view>
    <view class="giveNum">
      <text class="textNum">{{ticketUser.count}}</text>
      <text class="text">张</text>
    </view>
    <view class="ticketType">{{ticketUser.coupon_type}}</view>
    <view class="line"></view>
  </view>
  <view class="contBot">
    <view class="picView">
      <image class="smallTicket" src="{{ticketUser.coupon_img_small}}"></image>
    </view>
    <view class="textView">
      <text class="nameText">{{ticketUser.coupon_name}}</text>
      <text class="timeText">{{ticketUser.coupon_memo}}</text>
      <text class="timeText">(有效期：{{ticketUser.end_date}}）</text>
    </view>
  </view>
  <image bindtap="getTicketFn" class="getTicket" src="../images/getTicket.png"></image>
</view>

<view wx:if="{{!yesGet}}">
  <view class="ticketState">{{titleWord}}</view>
  <view class="question">如有疑问请联系</view>
  <view class="wx">{{ticketUser.nickname}}</view>
  <view class="phone">{{ticketUser.user_phone}}</view>
  <image bindtap="backIndex" class="sureTicket" src="../images/sureTicket.png"></image>
</view>
