<!-- packageH/credit_value/give/give.wxml -->
<scoped-panel class="form-panel">
  <view class="form">
    <view class="form-item">
      <view class="form-item_label">库存信用值：</view>
      <view class="form-item_content">{{ stock }}</view>
    </view>
    <view class="form-item search-member">
      <view class="form-item_label">会员ID：</view>
      <view class="form-item_content">
        <input type="number" placeholder="请输入受赠人ID" bind:input="inputMemberId" bindconfirm="getMemberInfo" />
        <text selectable="false" space="false" decode="false" bind:tap="getMemberInfo">搜索</text>
      </view>
      <view style="width:100%;" wx:if="{{ memberInfo }}">
        <image class="search-member_avatar" src="{{ memberInfo.avatar }}"></image>
        <view selectable="false" space="false" decode="false">
          {{ memberInfo.nickname }}
        </view>
      </view>
    </view>
    <view class="form-item give-count-input">
      <view class="form-item_label">库存信用值：</view>
      <view class="form-item_bottom-content">
        <text class="five-count-unit">￥</text>
        <input type="digit" placeholder="0.00" bind:input="inputGiftValue" />
      </view>
    </view>
  </view>
  <van-button round size="large" type="primary " color="#f14e4e" custom-style="margin-top:90rpx;height:75rpx" bind:tap="displayInputPassPopup">
    确认赠送
  </van-button>
  <view class="input-pass-popup" hidden="{{ hiddenInputPassPopup }}">
    <image class="input-pass_decoration" src="/image/credit_value_popup_decoration.png" mode="widthFix"></image>
    <view class="input-pass_title" hover-class="none" hover-stop-propagation="false">
      请输入密码
    </view>
    <view class="pass-form">
      <input type="text" password class="pass-form-input" placeholder="请输入您的提现密码" bindinput="inputPayPassword" />
      <view class="pass-form-prompt">请确认id无误，赠送后无法撤回</view>
      <van-button class="pass-form-confirm" color="#f14e4e" size="large" round custom-style="height:75rpx" bind:tap="confirmGiveGift">
        确定
      </van-button>
    </view>
    <navigator url="/packageA/member/balance_password/balance_password" class="forget-pass" hover-class="none" hover-stop-propagation="false">
      忘记密码
    </navigator>
  </view>
  <van-overlay show="{{ !hiddenInputPassPopup }}" z-index="2" bind:click="displayInputPassPopup"></van-overlay>
</scoped-panel>