<!-- 背景图片 -->
<view class="bgc">
  <!-- 体验券 -->
  <view class="coupon">
    <view class="coupon-top">
      <view class="coupon-title">好友体验券</view>
      <view class="coupon-desp">{{couponInfo.name}}</view>
    </view>
    <view class="coupon-bottom">
      <view class="coupon-bottom-item">7天有效</view>
      <view class="coupon-bottom-item">免费测肤</view>
      <view class="coupon-bottom-item">专业护肤</view>
    </view>
  </view>
</view>
<!-- 送一次按钮 -->
<!-- <button class="send" bindtap="onShareFriends" open-type="{{sendCoupon!=1||couponInfo.times==0?'':'share'}}">
  送一次项目给好友
</button> -->
<button class="send" bindtap="onShareFriends" wx:if="{{sendCoupon==1&&timesLevel!=0}}" open-type="share">
  送一次项目给好友
</button>
<button class="send" bindtap="onShareFriends" wx:else>
  送一次项目给好友
</button>
<!-- 活动说明 -->
<view class="actExplain">
  <view class="actExplain-title">
    <view></view>
    <text>活动说明</text>
    <view></view>
  </view>
  <view class="actExplain-content">
    <view style="margin-top: 40rpx;">1、本活动为会员专享活动</view>
    <view>2、可以赠送给好友一次 </view>
    <view style="margin-top: 10rpx; margin-left: 36rpx;"><text>{{couponInfo.name}}</text></view>
    <view>3、获得补水项目要在7天内使用，过期不补</view>
    <view>4、活动期间不限邀请次数</view>
    <view>5、最多可邀请 <text class="sendCoupenTimes">{{couponInfo.times}}</text> 位朋友体验项目</view>
  </view>
</view>
<!-- 赠送记录 -->
<view class="sendRecord">
  <view class="sendRecord-title">
    <view></view>
    <text>赠送记录</text>
    <view></view>
  </view>
  <view class="sendRecord-subfield">
    <view>用户昵称</view>
    <view>邀请时间</view>
    <view>领取状态</view>
  </view>
  <scroll-view class="sendRecord-content" scroll-y lower-threshold="100" bindscrolltolower="scrollToLower">
    <view class="sendRecord-content-item" wx:for="{{couponRecord}}" wx:key="index">
      <image src="{{item.avatar_url}}" class="item-image"></image>
      <view class="item-name">{{item.nickname}}</view>
      <view class="item-time">{{item.create_time}}</view>
      <view class="item-status">{{item.receiver_status==0?'待领取':item.receiver_status==1?'领取':item.receiver_status==2?'已使用':item.receiver_status==2?'已过期':''}}</view>
    </view>
  </scroll-view>
</view>