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 @@
余额
+
+
+
+
请截图此页面,进入支付宝扫码验证,请勿关闭此页面,验证完成后请返回此页面
+
+
+
@@ -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 @@
+