<!--pages/receiveTicket/receiveTicket.wxml-->
<view class="viewAll" wx:if="{{showAll}}">
  <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">{{userPhone}}</view>
      <view class="giveTo">赠送给您</view>
      <view class="giveNum">
        <text class="textNum">{{ticketNum}}</text>
        <text class="text">张</text>
      </view>
      <view wx:if="{{type==1}}" class="ticketType">{{ticketUser.original_price}}元代金券</view>
      <view wx:if="{{type==2}}" class="ticketType">{{ticketUser.coupon_name_detail}}</view>
    </view>
    <view class="line"></view>
    <view class="contBot">
      <view class="picView">
       <image class="receiveTicket" src="{{ticketUser.coupon_img_small}}"></image>
      </view>
      <view class="ticketRig">
        <view class="ticket-title">{{ticketUser.coupon_name_detail}}</view>
        <view class="ticket-desc">{{ticketUser.coupon_memo}}</view>
        <view class="ticket-name">
          <view class="ticket-name-left">
            <view wx:if="{{type==1}}" class="yelloword">{{ticketUser.original_price}}元代金券</view>
            <view wx:if="{{type==2}}" class="yelloword">券价：{{ticketUser.coupon_price}}元</view>
            <view class="validity">有效期：{{ticketUser.duration}}</view>
          </view>
        </view>
      </view>
    </view>
    <image bindtap="getTicketFn" class="getTicket" src="../images/getTicket.png"></image>
  </view>

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

