<!-- pages/member/balance/supplier_withdrawals/supplier_withdrawals.wxml -->
<wxs module="util">
  var inOf = function(type) { 
		if (type == 1) {
        return "icon-balance_h";
      } else if (type == 2) {
        return "icon-balance_i";
      }else if(type == 3){
        return "icon-balance_j";
      } else {
        return "icon-balance_g";
      }
	};
  module.exports.inOf = inOf;
</wxs>
<view class="balance_recharge">
		<view class="content">
				<view class="ul transfer_info">
						<view class="li info_a">
								<text class="span">当前{{ balanceLang }}：</text>
								<text class="span">{{ balance }}{{language['元']}}</text>
						</view>
				</view>
				<view class="transfer_sum">
						<view class="span">{{ supplier ? (poundage_name?poundage_name:"手续费") : "提现金额" }}</view>
						<view class="sum">
              <view wx:if="{{!supplier}}" style="display: flex">
              <text>{{language['money']}}</text><input type="number"  style='align-self: center;' value="{{info_form.balance_money}}" placeholder="{{0.00}}" bindinput="balanceMoneyinp" />
              </view>
              <view wx:if="{{supplier}}" style="display: flex">
                <text wx:if="{{service_type == 0}}">{{language['money']}}</text><input type="number" style='align-self: center;' disabled value="{{service_money}}" bind:change="suChange" />
                <text wx:if="{{service_type == 1}}">%</text>
              </view>
						</view>
						<view class="span">{{ poundage }}</view>
				</view>
				<view class="recharge_way">
						<view class="h1">提现到</view>
						<view class="ul choose_box">
								<view class="li" data-num="1" wx:if="{{withdrawToWechat}}" catchtap="confirm">
										<icon class="iconfont icon-balance_i"></icon>
										微信
								</view>
								<veiw class="li" wx:if="{{withdrawToAlipay}}" data-num="2" catchtap="confirm">
										<icon class="iconfont icon-balance_j"></icon>
										支付宝充值
								</veiw>
								<veiw class="li" wx:if="{{withdrawToManual}}" data-num="3" catchtap="confirm">
										<icon class="iconfont icon-balance_e"></icon>
										手动提现
								</veiw>
								<veiw wx:if="{{eupshow}}" data-num="4" catchtap="confirm">
										<icon class="iconfont icon-balance_g"></icon>
										EUP提出
								</veiw>
								<veiw wx:if="{{hxShow}}" catchtap="confirm" data-num="5">
										<icon class="iconfont icon-balance_f"></icon>
										银行卡
								</veiw>
								<view class="li" data-index="{{index}}" catchtap="towithdrawalHj" wx:for="{{withdrawType}}" wx:for-item="type" wx:key="index">
										<icon class="iconfont {{index==1||type=='汇聚提现'?'icon-balance_h':(index==2?'icon-balance_i':util.inOf(index))}}"></icon>
										{{ type }}
								</view>
						</view>
				</view>
		</view>
		<van-popup show="{{show2}}" position="bottom" bind:close="show1CloseBtn">
				<view class="withdrawal_box">
						<van-icon name="arrow-left" style="display: inline-block;text-align: left; font-size: 24px;float: left;line-height: 2.875rem; height: 2.875rem;padding-left: 10px;" catchtap="backTap" />
						<view class="h2" style="text-align:center;">提现</view>
						<view class="recharge_way" style="font-size:24px;">
								<view style="display: flex;align-items: center;justify-content: space-between;width:100%;padding-left:40rpx;" catchtap="gotoList">
										<view class="h2" style="text-align: left;">{{ checkObj.bankName }}</view>
										<van-icon name="arrow" style="font-size:24px;margin-right:40rpx;" />
								</view>
								<view class="choose_box ul">
										<view class="li" style="display:flex;justify-content: space-between;font-size:14px;">
												<view class="span">提现金额({{language['元']}})</view>
												<view class="span">{{cost_money}}</view>
										</view>
										<view class="li" style="display:flex;justify-content: space-between;">
												<view class="span">{{(poundage_name?poundage_name:"手续费")}}({{language['元']}})</view>
												<view class="span">{{poundageHj}}</view>
										</view>
										<view class="li" style="display:flex;justify-content: space-between;">
												<view class="span">实际到账({{language['元']}})</view>
												<view class="span">{{actual_amount}}</view>
										</view>
								</view>
						</view>
						<button type="button" class="btn custom_color" catchtap="suppierGotiem">确认提现</button>
				</view>
		</van-popup>
		<van-popup show="{{show3}}" custom-style="height:45%;overflow-y:scroll;" position="bottom" bind:close="show1CloseBtn">
				<view class="withdrawal_box">
						<van-icon name="arrow-left" style="display: inline-block;text-align: left; font-size: 24px;float: left;line-height: 2.875rem; height: 2.875rem;padding-left: 10px;" catchtap="backGo" />
						<view class="h2" style="text-align:center;display:inline-block;margin-left:235rpx;">
								银行卡列表
						</view>
						<icon class="iconfont icon-close11" style="display: inline-block; float: right;line-height: 2.875rem; height: 2.875rem;padding-right: 10px;" catchtap="show1CloseBtn"></icon>
						<view class="recharge_way">
								<view class="choose_box ul">
										<view style="font-size:32rpx;display:flex;align-items:center;justify-content:space-between;width:95%;margin:10px 0px 10px 10px;" wx:for="{{withList}}" wx:key="item" data-item="{{item}}" catchtap="checkOut">
												<view>
														<view class="span">{{ item.bankName }}</view>
												</view>
												<van-checkbox value="{{item.check}}" checked-color="#f45054" bind:change="onChange"></van-checkbox>
										</view>
								</view>
						</view>
				</view>
		</van-popup>
</view>
