<view class='content'>
  <view class='content-box content-pad'>
    <view class='list-block' wx:if="{{userInfo.recomCode.length <= 0}}">
      <view class="item-content">
        <view class="item-inner">
          <view class="item-title">邀请码</view>
          <view class="item-input">
            <input type="number" name="code" bindinput='inputinvite' maxlength="6" value="{{invite}}"></input>
          </view>
        </view>
      </view>
    </view>
    <view class='referre-info' >
      <view class="font14 b">您的邀请人</view>
      <view class="head"><image src="{{info.avatar}}"></image></view>
      <view class="font16">{{info.nickname}}</view>
      <view class="mTop110" wx:if="{{userInfo.recomCode.length <= 0 && (info.roleType == 'sharer' || info.roleType == 'organ')}}">
        <text class="font20">领取<text class="subtitleColor font25">400</text>元现金券</text>
      </view>
    </view>
    <view class="center mTop20{{info.roleType == 'sharer' || info.roleType == 'organ' ? '' : ' buttons-row'}}" style="{{info.roleType == 'sharer' || info.roleType == 'organ' ? 'align-items:flex-end':''}}" wx:if="{{userInfo.recomCode.length <= 0}}">
      <button class="button button-radius button-big button-warn s-button" bindtap='submit'>确定领取</button>
      <!-- <view bindtap='back' class="mTop240 font14" wx:if="{{type != 'account' && (info.roleType == 'sharer' || info.roleType == 'organ')}}">不领跳过 </view> -->
    </view>
  </view>
</view>
<!-- <view class='modal' hidden='{{make}}'>
  <view class='modal-head relative'>
    <text>获得{{invitePrice}}元现金券</text>
    <image src='/images/invite_openwin.png'></image>
  </view>
  <view class='box'>
    <view class='box-overflow'>
      <view class='voucher-list white-bg' wx:for="{{vouchers}}" wx:key="*this">
        <view class='price'>
          <text class='font12'>￥</text>{{item.price}}
        </view>
        <view class='text'>满{{item.lowestPrice}}元可用，{{item.description}}</view>
      </view>
    </view>
    <view class='buttons'>
      <button class='button button-white button-radius' bindtap='back'>确定</button>
    </view>
  </view>
</view>
<view class='modal-bg' hidden='{{make}}'></view> -->
<caseCoupon show="{{make}}" invitePrice="{{invitePrice}}" vouchers="{{vouchers}}" bind:close="back"></caseCoupon>