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

@@ -112,7 +112,7 @@
<div class="accout_tit">
<span class="lineBar"></span>余额
<button class="btnXq" onclick="$('#chargeBox').show()">充值</button>
@* <button class="btnXq" onclick="$('#cash-out').show()">提现</button> *@
<button class="btnXq" onclick="$('#cash-out').show()">提现</button>
</div>
<div class="model">
<div class="item">
@@ -284,6 +284,10 @@
<td>提现支付宝账号:</td>
<td><input type="number" id="alipay-account" class="inputBox" placeholder="请输入支付宝账号"/></td>
</tr>
<tr>
<td>支付宝真实姓名</td>
<td><input type="number" id="alipay-account" class="inputBox" placeholder="请输入与支付宝关联的真实姓名"/></td>
</tr>
</table>
<div class="" style="text-align:center;">
@@ -385,6 +389,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("抱歉!您提现的额度大于余额,请重新输入提现金额!");
@@ -394,6 +399,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){
@@ -405,6 +414,7 @@
cash_out_money: cash_out_money,
reason: reason,
alipay_account: alipay_account,
real_name: real_name,
cookie:document.cookie
}
$.ajax({