<!--packageI/warehouseFarm/warehouseFarmGiftDetail/warehouseFarmGiftDetail.wxml-->
<view id="warehouse-farm-giftDetail">
  <view class="bg">
    <view class="member-info">
      <image class="avatar" src="{{info.avatar || ''}}" alt="" />
      <view class="nickname">{{ info.nickname || "" }}</view>
      发起的礼包
    </view>
  </view>

  <view class="list-item">
    <image class="good-img" src="{{goods.thumb}}" alt="" />
    <view class="item-right">
      <view class="title">{{ goods.title }}</view>
      <view class="good-info">
        <view class="stock">库存：{{ goods.nums }}</view>
      </view>
    </view>
  </view>

  <view style="padding: 0.5rem 0.875rem 0;text-align: left;color: #999;" wx:if="{{mode != 'creat'}}">{{ receive_detail }}</view>

  <view class="recipient" wx:if="{{received_info}}">
    <view class="member" wx:for="{{received_info}}">
      <image class="avatar" src="{{item.has_one_member.avatar}}" alt="" />
      <view class="member-nickname">
        <view class="nickname">{{ item.has_one_member.nickname }}</view>
        <view class="time">{{ item.updated_at }}</view>
      </view>
      <view class="status">已领取 X{{ item.nums }}</view>
    </view>
  </view>

  <view class="share-box set-pc-style" wx:if="{{!isReceived}}">
    <van-button type="primary" round block color="#ff464c" open-type='share'>分享</van-button>
  </view>

  <view class="collection-record" wx:if="{{mode == 'give'}}" catchtap="tuUrl">查看我的领取记录</view>
</view>