This commit is contained in:
wanyongkang
2020-10-21 21:02:06 +08:00
parent 2dab4e4c21
commit 7c5a57226b
5 changed files with 31 additions and 7 deletions

View File

@@ -102,7 +102,7 @@
.cash-out {
position: fixed;
width: 400px;
height: 320px;
height: 400px;
left: 50%;
top: 50%;
margin-left: -200px;
@@ -207,6 +207,10 @@
<label>提现支付宝账号(目前仅支持支付宝)</label>
<input type="text" id="alipay-account" class="form-control" placeholder="请输入支付宝账号" >
</div>
<div class="form-group">
<label>支付宝真实姓名</label>
<input type="text" id="real-name" class="form-control" placeholder="请输入与支付宝关联的真实姓名" >
</div>
<p class="text-center">
<button type="button" class="btn btn-primary" onclick="cash_out()">确认提现</button>
@@ -268,7 +272,7 @@
<div class="col-lg-3">
<div class="zhanghu">
<div class="accout_tit"><span class="lineBar"></span>余额</div>
@* <p class="charge" onclick="$('.cash-out').show()" style="float:left;font-size:25px;"><a>提现</a></p> *@
<p class="charge" onclick="$('.cash-out').show()" style="float:left;font-size:25px;"><a>提现</a></p>
<p class="charge" onclick="$('.chargeList').show()" style="font-size:25px;"><a>充值</a></p>
<div class="money" style="padding: 20px 30px;">¥<span>@Model.UserModel.RestAmount</span></div>
<p class="grayText text-center">可通过淘宝充值,或联系管理员充值</p>
@@ -472,6 +476,7 @@
function cash_out() {
let cash_out_money = $('#cash-out-money').val(),
reason = $('#cash-out-reason').val(),
real_name = $('#real-name').val(),
alipay_account = $('#alipay-account').val();
if(cash_out_money > @Model.UserModel.RestAmount){
alert("抱歉!您提现的额度大于余额,请重新输入提现金额!");
@@ -481,6 +486,10 @@
alert("抱歉!请重新输入提现金额!");
return;
}
if(real_name.length <= 0){
alert("抱歉!请重新输入姓名!");
return;
}
//
let reg = /^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*\@@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/;
if(alipay_account.length <= 0 || alipay_account.match(reg) == null){
@@ -492,6 +501,7 @@
cash_out_money: cash_out_money,
reason: reason,
alipay_account: alipay_account,
real_name: real_name,
cookie:document.cookie
}
$.ajax({
@@ -505,7 +515,6 @@
},
crossDomain: true,
success: function (res) {
console.log(res);
if (res.Code == 10000) {
$('.cash-out').hide();
alert('提现请求发送成功,我们会在一到两个工作日进行处理,请注意查看资金明细。');