<!--pages/givePage/givePage.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="surplus">剩余</text>
        <text class="bigWord">{{surplusNum}}</text>
        <text class="smaWord">张</text>
      </view>
      <view class="circleRig"></view>
    </view>
    <view class="giveFrind">
      <view class="giveView">赠送给好友</view>
      <view class="chooseNum">
        <view bindtap="subtractFn" class="subtractView">
          <image class="subtract" src="../images/subtract.png"></image>
        </view>
        <!-- <text class="textNum">{{buyNumber}}</text> -->
        <input class="inputNum" type="number" bindinput="getInputVal" value="{{buyNumber}}"></input>
        <image bindtap="addFn" class="textAdd" src="../images/add.png"></image>
      </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>

  <button class="shareBtn" bindtap="shareBtn">
    <image class="giveBtn" src="../images/giveBtn.jpg"></image>
  </button>

  <view class="maskView" wx:if="{{showMask}}">
    <view class="maskCont">
      <view class="yesSure">是否确认赠送</view>
      <view class="btnView">
        <view class="SureNo" catchtap="hideMask">取消</view>  
        <button class="SureYes" open-type="share">确认</button>  
      </view>
    </view>
  </view>
</view>
