<template>
	<view>
		<car-common   ref="common"  ></car-common>
		<u-navbar   title="余额提现" :is-back="true" >
				<view class="slot-wrap"></view>	
		</u-navbar>
		<view class="von-card-row von-tx">
			<!-- <view class="flex-spal">
				余额变动记录
				<text class="icon iconfont icon-ico_listarrow"></text>
			</view> -->
			<view class="von-sp-list">
				<h5 class="flex-sp"><label>提现至</label>{{myAccount.account.bankName}}({{show(myAccount.account.bankNumber)}})</h5>
				<view class="von-sp-text">
					<view class="">申请提现金额(元)</view>
					<view class="von-tx-input flex-spal">
						<label>￥</label>
						<u-input placeholder="请输入提现金额" type="number" :max="myAccount.withdrawalAmount" v-model="txAmount"></u-input>
					</view>
				</view>
				<h5 class="flex-sp">可提现余额¥{{myAccount.withdrawalAmount}}<navigator class="blue" @click="txAmount=myAccount.withdrawalAmount">全部提现</navigator></h5>
			</view>
			<u-button type="primary" style="background-color: #9DC6FF;" @click="myerror"  v-if="!txbool">次日到账，确认提现</u-button>
			
			<u-button type="primary" style="background-color: #9DC6FF;"  @click="myerror2"  v-if="txbool&&!txAmount">次日到账，确认提现</u-button>
			
			<u-button type="primary"  @click="getWithdrawalSubmit" v-if="txbool&&txAmount" >次日到账，确认提现</u-button>
			<view class="von-tx-text">
				<p>提现说明：</p>
				<p >1.每周{{showday(myAccount.date)}}可申请将账户内资金提现至银行卡；</p>
				<p>2.由于银行清算，提现申请将于次日内到账。如遇高峰期，可能延时到账，请耐心等待。</p>
			</view>
		</view> 
	</view>
</template>

<script>
	import api from './out.js'
	export default api;
</script>

<style>
page{
			background-color:#eee;
		}
</style>
