From 1963bb4936c7947fdf6f8f1c8519d6267491a19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Thu, 18 Mar 2021 14:50:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E9=87=91=E8=BD=AC=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Views.Mobile/User/IndexInfo.cshtml | 70 +++++++++++++++++++++ Host/Views/User/Index.cshtml | 84 ++++++++++++++++++++++++- 2 files changed, 153 insertions(+), 1 deletion(-) diff --git a/Host/Views.Mobile/User/IndexInfo.cshtml b/Host/Views.Mobile/User/IndexInfo.cshtml index e780ad2..442b2f0 100644 --- a/Host/Views.Mobile/User/IndexInfo.cshtml +++ b/Host/Views.Mobile/User/IndexInfo.cshtml @@ -116,6 +116,7 @@ 余额 +
@@ -331,6 +332,34 @@
+
+
+ +
+

功能介绍

+

1、此功能主要为资金无法及时到账用户使用,通过不同账号之间类似支付宝转账的效果,进行资金转移!

+

2、输入要将资金转入的会员号以及金额,点击确认即可进行资金转移

+
+
+ + + + + + + + +
转入会员号:
转入资金:
+ +
+ + +
+
+

请截图此页面,进入支付宝扫码验证,请勿关闭此页面,验证完成后请返回此页面

+
+
+ @@ -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 diff --git a/Host/Views/User/Index.cshtml b/Host/Views/User/Index.cshtml index 0c95bb6..0b42be9 100644 --- a/Host/Views/User/Index.cshtml +++ b/Host/Views/User/Index.cshtml @@ -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 @@
+
+
+

功能介绍

+

1、此功能主要为资金无法及时到账用户使用,通过不同账号之间类似支付宝转账的效果,进行资金转移!

+

2、输入要将资金转入的会员号以及金额,点击确认即可进行资金转移

+
+ + +
+
+ + +
+ +

+ + +

+
+ +
+
+
@@ -316,7 +357,7 @@
-
余额
+
余额资金转移

提现

充值

¥@Model.UserModel.RestAmount
@@ -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){