资金转移
This commit is contained in:
@@ -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