提现处理
This commit is contained in:
@@ -112,7 +112,7 @@
|
|||||||
<div class="accout_tit">
|
<div class="accout_tit">
|
||||||
<span class="lineBar"></span>余额
|
<span class="lineBar"></span>余额
|
||||||
<button class="btnXq" onclick="$('#chargeBox').show()">充值</button>
|
<button class="btnXq" onclick="$('#chargeBox').show()">充值</button>
|
||||||
<button class="btnXq" onclick="$('#cash-out').show()">提现</button>
|
<button class="btnXq" id="cash_out_confirm" onclick="$('#cash-out').show()">提现</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="model">
|
<div class="model">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
@@ -387,6 +387,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function cash_out() {
|
function cash_out() {
|
||||||
|
|
||||||
let cash_out_money = $('#cash-out-money').val(),
|
let cash_out_money = $('#cash-out-money').val(),
|
||||||
reason = $('#cash-out-reason').val(),
|
reason = $('#cash-out-reason').val(),
|
||||||
real_name = $('#real-name').val(),
|
real_name = $('#real-name').val(),
|
||||||
@@ -399,16 +400,14 @@
|
|||||||
alert("抱歉!请重新输入提现金额!");
|
alert("抱歉!请重新输入提现金额!");
|
||||||
return;
|
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})$/;
|
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){
|
if(alipay_account.length <= 0 || alipay_account.match(reg) == null){
|
||||||
alert("抱歉!请重新输入支付宝账号!");
|
alert("抱歉!请重新输入支付宝账号!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$('#cash_out_confirm').addClass('disabled');
|
||||||
|
$('#cash_out_confirm').prop('disabled', true);
|
||||||
|
|
||||||
let cashOutData = {
|
let cashOutData = {
|
||||||
cash_out_money: cash_out_money,
|
cash_out_money: cash_out_money,
|
||||||
|
|||||||
@@ -213,7 +213,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
<button type="button" class="btn btn-primary" onclick="cash_out()">确认提现</button>
|
<button type="button" class="btn btn-primary" id="cash_out_confirm" onclick="cash_out()">确认提现</button>
|
||||||
<button type="button" class="btn btn-danger quxiao" style="margin-left:20px;" onclick="$('.cash-out').hide()">取消</button>
|
<button type="button" class="btn btn-danger quxiao" style="margin-left:20px;" onclick="$('.cash-out').hide()">取消</button>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
@@ -474,6 +474,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function cash_out() {
|
function cash_out() {
|
||||||
|
|
||||||
let cash_out_money = $('#cash-out-money').val(),
|
let cash_out_money = $('#cash-out-money').val(),
|
||||||
reason = $('#cash-out-reason').val(),
|
reason = $('#cash-out-reason').val(),
|
||||||
real_name = $('#real-name').val(),
|
real_name = $('#real-name').val(),
|
||||||
@@ -496,7 +497,8 @@
|
|||||||
alert("抱歉!请重新输入支付宝账号!");
|
alert("抱歉!请重新输入支付宝账号!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$('#cash_out_confirm').addClass('disabled');
|
||||||
|
$('#cash_out_confirm').prop('disabled', true);
|
||||||
let cashOutData = {
|
let cashOutData = {
|
||||||
cash_out_money: cash_out_money,
|
cash_out_money: cash_out_money,
|
||||||
reason: reason,
|
reason: reason,
|
||||||
|
|||||||
Reference in New Issue
Block a user