<!--packageD/getCoupon/getCoupon.wxml-->
<view id="get_content">
  <view class="coupon_info">
    <view class="banner">
      <image src="{{banner}}" ></image>
    </view>
    <!-- 领取 -->
    <view class="coupon_get" wx:if="{{status == 'YES'}}">
      <view class="coupon_a ul">
        <view class="sun_name li">
          <!-- <view class="sum span">{{coupon.coupon_method == 1?{{language['money']}}{{coupon.deduct}}:{{coupon.discount}}折}}</view> -->
          <view class="name span">{{coupon.name}}</view>
        </view>
        <view class="limit_time li">
          <view class="limit span">满{{coupon.enough}}立减</view>
          <view class="time span">有效期：{{coupon.time_start}}-{{coupon.time_end}}</view>
        </view>
      </view>
      <view class="coupon_b p">{{coupon.api_limit}}</view>
      <view class="left_circle"></view>
      <view class="right_circle"></view>
    </view>
    <!-- 不可领和已抢光 -->
    <view class="coupon_noget" wx:if="{{status == 'RT'}}">
      <view class="state">
        <view class="left_line"></view>
        <view class="text p">{{msg}}</view>
        <view class="right_line"></view>
      </view>
    </view>
    <view class="into_user p">{{status == "YES"?"红包已放入账号"+name:"领券账号"+name}}{{status == "YES"?name:''}}</view>
    <button type="button" class="get_btn" catchtap="goHome">{{status == "YES"?"立即使用":"看看其它活动"}}</button>
  </view>
  <view class="get_list">
    <view class="pack_number p">还剩{{max_num}}个红包</view>
    <view class="red_pack">
      <!-- <van-pull-refresh v-model="isLoading" @refresh="getMoreRecord" :disabled="isAllLoaded"> -->
        <view class="list" wx:for="{{record_arr}}" wx:key='i'>
          <view class="user">
            <image src="item.receive_member.avatar"></image>
          </view>
          <view class="user_info ul">
            <view class="name li">
              <view class="name_a span">{{item.receive_member.nickname}}</view>
              <view class="name_b span">{{item.remark}}</view>
            </view>
            <view class="time li">{{item.created_at}}</view>
          </view>
        </view>
      <!-- </van-pull-refresh> -->
    </view>
  </view>
</view>
