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

<view class="all">
  <view class="lookTicket">
    <view class="lookTicketTop" bindtap="lookMyTicket">
      <image style="width:49rpx;height:30rpx" src="../images/ticketIcon.png"></image>
      <view class="ticketWord">{{myText}}</view>
      <image style="width:34rpx;height:19rpx;transform:rotate({{mydeg}}deg)" src="../images/arrows.png"></image>
    </view>
    <scroll-view class="scroll" scroll-y  bindscrolltolower="getBot" style="width:100%;"  wx:if="{{myTicketArrows}}">
      <view class="ticketAll" wx:for="{{dataList}}">
        <view class="ticketleft">
          <image src="{{item.coupon_img_small}}"></image>
        </view>
        <view class="ticketRig">
          <view class="ticket-title">{{item.coupon_name_detail}}</view>
          <view class="ticket-desc">{{item.coupon_memo}}</view>
          <view class="validity">有效期：{{item.duration}}</view>
          <view class="line"></view>
          <view class="giveFriend">
            <text data-id="{{item.coupon_sell_id}}" bindtap="giveTicket">赠送好友</text>
            <image src="../images/giveFriend.png"></image>
          </view>
        </view>
        <view class="circle circle1"></view>
        <view class="circle circle2"></view>
      </view>
    </scroll-view>
  </view>

  <view class="lookTicket">
    <view class="line" style="margin:40rpx 0;background:#CCCCCC"></view>
    <view class="lookTicketTop"  bindtap="lookHistory">
      <image style="width:30rpx;height:30rpx" src="../images/historyIcon.png"></image>
      <view class="ticketWord" style="margin-right:360rpx">{{myHistory}}</view>
      <image style="width:34rpx;height:19rpx;transform:rotate({{historydeg}}deg)" src="../images/arrows.png"></image>
    </view>
    <scroll-view class="scroll" scroll-y bindscrolltolower="lower" style="width:100%;" wx:if="{{historyTicketArrows}}">
      <view class="historyCont" wx:for="{{dataList2}}">
        <text class="ticketCode">券码：{{item.coupon_code}}</text>
        <text class="ticketName">{{item.coupon_name_detail}}</text>
        <text class="ticketName" style="color:#EB6100">已使用</text>
      </view>
    </scroll-view>
  </view>
</view>
