资金转移
This commit is contained in:
@@ -116,6 +116,7 @@
|
||||
<span class="lineBar"></span>余额
|
||||
<button class="btnXq" onclick="$('#chargeBox').show()">充值</button>
|
||||
<button class="btnXq" id="cash_out_confirm" onclick="tixian()">提现</button>
|
||||
<button class="btnXq" onclick="$('#money-change').show()">资金转移</button>
|
||||
</div>
|
||||
<div class="model">
|
||||
<div class="item">
|
||||
@@ -331,6 +332,34 @@
|
||||
<div style="padding: 50px 100px;text-align: center;" id="qrcode"></div>
|
||||
</div>
|
||||
|
||||
<div class="layerTable" id="money-change" style="margin-right:10em;">
|
||||
<form id="id-cert">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<div style="margin: 0 3%;">
|
||||
<p>功能介绍</p>
|
||||
<p>1、此功能主要为资金无法及时到账用户使用,通过不同账号之间类似支付宝转账的效果,进行资金转移!</p>
|
||||
<p>2、输入要将资金转入的会员号以及金额,点击确认即可进行资金转移</p>
|
||||
</div>
|
||||
<br>
|
||||
<tr>
|
||||
<td>转入会员号:</td>
|
||||
<td><input type="text" style="width: 80%;" id="money-change-user" class="form-control" placeholder="请输入待转入会员号" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>转入资金:</td>
|
||||
<td><input type="text" style="width: 80%;" id="money-change-money" class="form-control" placeholder="请输入待转入金额" ></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="" style="text-align:center;">
|
||||
<button type="button" class="btnXq" onclick="$('#money-change').hide()">取消</button>
|
||||
<button type="button" class="btnXq" onclick="moneychange()">确认</button>
|
||||
</div>
|
||||
</form>
|
||||
<h1 id="verify-info" style="display:none;text-align: center;padding-top:100px;font-size:25px">请截图此页面,进入支付宝扫码验证,请勿关闭此页面,验证完成后请返回此页面</h1>
|
||||
<div style="padding: 50px 100px;text-align: center;" id="qrcode"></div>
|
||||
</div>
|
||||
|
||||
<!-- 支付弹窗 -->
|
||||
<div id="aliPayBox" style="display:none"></div>
|
||||
|
||||
@@ -557,6 +586,47 @@ var t1 = null;
|
||||
// });
|
||||
}
|
||||
|
||||
function moneychange(){
|
||||
let user = $('#money-change-user').val(),
|
||||
money = $('#money-change-money').val();
|
||||
|
||||
if (money<0) {
|
||||
alert('转移金额必须大于0!');
|
||||
return;
|
||||
}
|
||||
if(money > @Model.UserModel.RestAmount){
|
||||
alert("抱歉!您转移的额度大于余额,请重新输入金额!");
|
||||
return;
|
||||
}
|
||||
let data = {
|
||||
cookie:document.cookie,
|
||||
luser:@Model.UserModel.LoginCode,
|
||||
ruser:user,
|
||||
money:money,
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'http://juip.wyk/user/user/moneyChange',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(data),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == 10000) {
|
||||
alert('资金转移成功');
|
||||
window.location.href='/User/Index';
|
||||
}
|
||||
|
||||
if (res.Code == 20000) {
|
||||
alert('被转移用户不存在,如有问题请联系客服!');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function get_verify_res(){
|
||||
let data = {
|
||||
cookie:document.cookie
|
||||
|
||||
@@ -135,6 +135,24 @@
|
||||
padding: 30px;
|
||||
display: none;
|
||||
}
|
||||
.money-change {
|
||||
position: fixed;
|
||||
width: 600px;
|
||||
height: auto;
|
||||
left: 43%;
|
||||
top: 30%;
|
||||
margin-left: -200px;
|
||||
margin-top: -160px;
|
||||
z-index: 3;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0px 6px 8px 6px #ccc;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
padding: 30px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.chargeList form {
|
||||
width: 100%;
|
||||
@@ -264,6 +282,29 @@
|
||||
<div id="qrcode_s" style="text-align: center;padding-left: 200px;"></div>
|
||||
</div>
|
||||
|
||||
<div class="money-change">
|
||||
<form id="id-cert">
|
||||
<p>功能介绍</p>
|
||||
<p>1、此功能主要为资金无法及时到账用户使用,通过不同账号之间类似支付宝转账的效果,进行资金转移!</p>
|
||||
<p>2、输入要将资金转入的会员号以及金额,点击确认即可进行资金转移</p>
|
||||
<div class="form-group">
|
||||
<label>转入会员号:</label>
|
||||
<input type="text" id="money-change-user" class="form-control" placeholder="请输入待转入会员号" >
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>转入资金:</label>
|
||||
<input type="text" id="money-change-money" class="form-control" placeholder="请输入待转入金额" >
|
||||
</div>
|
||||
|
||||
<p class="text-center">
|
||||
<button type="button" class="btn btn-primary" onclick="moneychange()">确认</button>
|
||||
<button type="button" class="btn btn-danger quxiao" style="margin-left:20px;" onclick="$('.money-change').hide()">取消</button>
|
||||
</p>
|
||||
</form>
|
||||
<h3 id="verify-info" style="display:none;text-align: center;">请打开 支付宝 扫码进行认证</h3>
|
||||
<div id="qrcode_s" style="text-align: center;padding-left: 200px;"></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<div class="zhanghu">
|
||||
@@ -316,7 +357,7 @@
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="zhanghu">
|
||||
<div class="accout_tit"><span class="lineBar"></span>余额</div>
|
||||
<div class="accout_tit"><span class="lineBar"></span>余额<span onclick="$('.money-change').show()" style="float: right;color:blue;cursor:pointer;">资金转移</span></div>
|
||||
<p class="charge" onclick="tixian()" 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>
|
||||
@@ -670,6 +711,47 @@
|
||||
});
|
||||
}
|
||||
|
||||
function moneychange(){
|
||||
let user = $('#money-change-user').val(),
|
||||
money = $('#money-change-money').val();
|
||||
|
||||
if (money<0) {
|
||||
alert('转移金额必须大于0!');
|
||||
return;
|
||||
}
|
||||
if(money > @Model.UserModel.RestAmount){
|
||||
alert("抱歉!您转移的额度大于余额,请重新输入金额!");
|
||||
return;
|
||||
}
|
||||
let data = {
|
||||
cookie:document.cookie,
|
||||
luser:@Model.UserModel.LoginCode,
|
||||
ruser:user,
|
||||
money:money,
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'http://juip.wyk/user/user/moneyChange',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(data),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == 10000) {
|
||||
alert('资金转移成功');
|
||||
window.location.href='/User/Index';
|
||||
}
|
||||
|
||||
if (res.Code == 20000) {
|
||||
alert('被转移用户不存在,如有问题请联系客服!');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function tixian(){
|
||||
var r=confirm("因我司支付宝账户暂被冻结,用户提现功能也暂时受限,我司正与公安协调处理此事,您可用余额继续消费。如需继续提现,我司将在账户解冻后第一时间处理,钱一分都不会少,请您放心,感谢理解!\n\n提示:请勿相信外边传谣,聚IP将对用户负责到底,更不会出现跑路的情况!\n\n\n 是否确定继续提现?");
|
||||
if (r==true){
|
||||
|
||||
Reference in New Issue
Block a user