<!--pages/handOutBonus/handOutBonus.wxml-->
<view class="common_box">
  <auth wx:if="{{!userInfo}}" bind:getAuth="getAuth"></auth>
  <view class="balance_header">可分享余额：¥ {{datas['share_bonus_rate'][0]['total']}}</view>
  <view class="balance_cell mt20">
    <view>红包个数</view>
    <view class="right_cell">
      <input class="balance_input" bindinput="bindKeyInput" data-type="count" type="number" maxlength="4" placeholder="填写个数" value="{{tempCount}}"/>
      <view>个</view>
    </view>
  </view>

  <view class="balance_cell mt60">
    <view class="align_center">
      <block wx:if="{{bonusType == 'pin'}}">
        总金额 <image class="icon_pin" src="../../image/bonus/icon_pin.png"></image>
      </block>
      <block wx:else>单个金额</block>
    </view>
    <view class="right_cell">
      <input class="balance_input" bindinput="bindKeyInput" data-type="money" type="digit" placeholder="填写金额" value="{{tempMoney}}"/>
      <view>元</view>
    </view>
  </view>

  <view class="bonus_cell_type" wx:if="{{bonusType == 'pin'}}">每人抽到的金额随机，<text
      class="col1e5992" catchtap="secBonusType" data-type="fixed">改为普通红包</text></view>
  <view class="bonus_cell_type" wx:else>群里每人收到固定金额，<text class="col1e5992" catchtap="secBonusType" data-type="pin">改为拼手气红包</text></view>


  <view class="balance_cell mt20" style="min-height: 100rpx;height: auto;">
    <view>留言</view>
    <view class="right_cell">
      <textarea maxlength="30" class="message_input" placeholder="" auto-height bindinput="bindKeyInput" bindinput="blessInput" bindfocus="blessFocus" bindblur="blessBlur" value="{{tempBless}}"/>
      </view>
  </view>

  <view class="bonus_total">¥<text class="ml10">{{total}}</text></view>
  <view class="share_btn {{btnFlag ? 'can_share' : ''}}" catchtap="checkBonus">发红包</view>
  <view class="f24 mb20 text_center col666">未领取的红包,将于24小时后发起退款</view>
 

  <view class="real_share_box {{canShare?'show_popup':''}}" catchtap="close"> </view>
  <view class="real_share_bg {{canShare?'show_animation':''}}">
    <view class="wx_share_box"> 
      <button open-type="share" class="wx_share_btn"></button>
      <image class="wx_share" src="../../image/person/shareView_wx.png"></image>
      <view class="f24 col666">微信</view>
    </view>
  </view>

</view>
