0
0
Files
Babyclass/resources/views/withdraw/create.blade.php##
2020-08-04 10:17:22 +08:00

124 lines
3.8 KiB
Plaintext

@extends('layouts.app')
@section('footer')
@endsection
@section('content')
<section class="padding_btm" >
<!-- 账户总额 Start -->
<div class="accounts-top" style="padding: 2rem 0">
<div class="bi-top-num">
{{ number_format(Auth::user()->account->cash, 2) }}
</div>
<div class="bi-top-name">
账户余额
</div>
<div class="cash_record" data-href="{{ route('withdraw.index') }}">
提现记录
</div>
</div>
<!-- 账户总额 End -->
<!-- 提现表单 Start -->
<form action=" {{ route('withdraw.store') }} " method="get" accept-charset="utf-8">
<div class="formbox">
<div class="formbox-label">
提现金额
</div>
<div class="formbox-input">
<input type="number" name="money" value="" placeholder="输入提现金额" class="formbox-input-text">元
</div>
</div>
<div class="formbox">
<div class="formbox-label">
姓名
</div>
<div class="formbox-input">
<input type="text" name="payee" value="{{ Auth::user()->info->payee ?? '' }}" placeholder="收款人姓名">
</div>
</div>
<div class="formbox">
<div class="formbox-label">
银行卡号
</div>
<div class="formbox-input">
<input type="number" name="bank_no" value="{{ Auth::user()->info->bank_no ?? '' }}" placeholder="收款账号">
</div>
</div>
<div class="formbox">
<div class="formbox-label">
银行名称
</div>
<div class="formbox-radio">
<select name="bank_name" class="select1">
<option value="">请选择银行</option>
@foreach($banks as $bank)
<option value="{{ $bank->title }}" @if(Auth::user()->info->bank_name == $bank->title) selected @endif>{{ $bank->title }}</option>
@endforeach
</select>
<i class="cash_sel_i icon-caret-down"></i>
</div>
</div>
<div class="formbox">
<div class="formbox-label">
开户行
</div>
<div class="formbox-input">
<input type="text" name="bank_address" value="{{ Auth::user()->info->bank_address ?? '' }}" placeholder="开户行">
</div>
</div>
<div class="formbox">
<div class="formbox-label">
备注
</div>
<div class="formbox-input">
<textarea class="textarea" name="remark" rows="3" placeholder="输入备注" style="padding:.5rem 0"></textarea>
</div>
</div>
<div class="button_btm">
@csrf
<input type="hidden" name="openid" value="{{ $openid }}">
<input type="hidden" name="way" value="Bankcard">
<button type="button" class="btn ajax-post">申请提现</button>
</div>
</form>
<!-- 提现表单 End -->
</section>
@endsection
@section('script')
<script type="text/javascript">
$("#way").change(function(data){
var way = $(this).val();
if(way == 'WenxinNo'){
$("#wechat").show();
$("#alipay").hide();
$("#bankcard").hide();
}
if(way == 'Alipay'){
$("#alipay").show();
$("#wechat").hide();
$("#bankcard").hide();
}
if(way == 'Bankcard'){
$("#alipay").hide();
$("#wechat").hide();
$("#bankcard").show();
}
if(way == 'Wechat'){
$("#alipay").hide();
$("#wechat").hide();
$("#bankcard").hide();
}
});
/*提现说明*/
$(".take_notice").click(function (e) {
$(".take_pop").show();
});
$(".take_close").click(function (e) {
$(".take_pop").hide();
});
</script>
@endsection