mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2025-10-16 10:08:00 +08:00
重构了boss系统,添加了逻辑
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html xmlns="http://www.w3.org/1999/html">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>管理后台</title>
|
||||
@@ -36,8 +36,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<span class="explain">账户余额:用户充值成功后立马相加,提款成功后相减的结果。结算金额:用户充值成功过一段时间后相加,出款成功后相减的结果。</span>
|
||||
<span class="explain">可用金额 = (结算金额 - 冻结金额 - 押款金额 - 正在出款金额)</span>
|
||||
<span class="explain" style="color: red;">账户余额:用户充值成功后立马相加,提款成功后相减的结果。</span>
|
||||
<span class="explain" style="color: red;">待结算金额:用户充值后,还没有加到可结算金中。</span>
|
||||
<span class="explain" style="color: red;">结算金额: 可以提现的金额 = (账户余额 - 待结算金额 - 押款金额 - 冻结金额 - 正在出款金额)</span>
|
||||
|
||||
</div>
|
||||
<div class="menu-table">
|
||||
<table>
|
||||
@@ -52,7 +54,7 @@
|
||||
<th>押款金额</th>
|
||||
<th>冻结金额</th>
|
||||
<th>正在出款的金额</th>
|
||||
<th>可用金额</th>
|
||||
{{/* <th>可用金额</th>*/}}
|
||||
<th>账户状态</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
@@ -121,13 +123,15 @@
|
||||
let tmp = "<tr>" + "<th>" + (res.StartIndex+i+1) + "</th>" +
|
||||
"<th>" + v.AccountUid + "</th>" + "<th>" + v.AccountName + "</th>" + "<th>" + v.Balance + "</th>" +
|
||||
"<th>" + v.SettleAmount + "</th>" + "<th>" + v.WaitAmount + "</th>" + "<th>" + v.LoanAmount + "</th>" +
|
||||
"<th>" + v.FreezeAmount + "</th>" +"<th>" + v.PayforAmount + "</th>" +
|
||||
"<th>" + (v.SettleAmount-v.FreezeAmount-v.PayforAmount-v.LoanAmount) + "</th>" + "<th>" + v.Status + "</th>";
|
||||
"<th>" + v.FreezeAmount + "</th>" +"<th>" + v.PayforAmount + "</th>" + "<th>" + v.Status + "</th>";
|
||||
tmp = tmp.replace("unactive", "冻结").replace("active", "激活");
|
||||
tmp = tmp + "<th>" + '<div class="btn-group" role="group" aria-label="...">' +
|
||||
'<button type="button" value="' + v.AccountUid +'" class="btn btn-default" onclick="updateAccountStatus(this.value);">'+ "激活|冻结" +'</button>' +
|
||||
'<button type="button" value="' + v.AccountUid +'" class="btn btn-default" onclick="deleteAccount(this.value);"><span class="glyphicon glyphicon-trash"></span></button>' +
|
||||
'</div>' + "</th>" + "</tr>";
|
||||
if (v.Status === "unactive") {
|
||||
tmp = tmp.replace("<tr>", "<tr style='color: red;'>");
|
||||
}
|
||||
str = str + tmp;
|
||||
}
|
||||
|
||||
|
@@ -308,6 +308,7 @@
|
||||
alert("处理失败");
|
||||
} else {
|
||||
ajaxAgentList(getAgentCutPageValues());
|
||||
alert("操作成功")
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@@ -174,7 +174,7 @@
|
||||
<div class="self-nav">
|
||||
|
||||
</div>
|
||||
<nav class="navbar-inverse navbar-fixed-top" id="navbar-inverse">
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top" id="navbar-inverse">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="#">聚合支付管理系统</a>
|
||||
@@ -183,7 +183,8 @@
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user"></span>你好!管理员 <span class="caret"></span></a>
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="glyphicon glyphicon-user"></span>你好!管理员 <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#" style="text-align: center;" data-toggle="modal" data-target="#logoutModal"> <i class="glyphicon glyphicon-cog change-password"></i> 更改密码</a>
|
||||
|
@@ -243,15 +243,15 @@
|
||||
<span>支付类型:</span>
|
||||
<select id="pay-type" style="top: 31px;">
|
||||
<option value="none">请选择</option>
|
||||
<option value="WEIXIN-SCAN">微信扫码</option>
|
||||
<option value="WEIXIN-H5">微信H5</option>
|
||||
<option value="WEIXIN-SYT">微信收银台</option>
|
||||
<option value="ALI-SCAN">支付宝扫码</option>
|
||||
<option value="ALI-H5">支付宝H5</option>
|
||||
<option value="ALI-SYT">支付宝收银台</option>
|
||||
<option value="QQ-SCAN">QQ扫码</option>
|
||||
<option value="QQ-H5">QQ-H5</option>
|
||||
<option value="QQ-SYT">QQ收银台</option>
|
||||
<option value="WEIXIN_SCAN">微信扫码</option>
|
||||
<option value="WEIXIN_H5">微信H5</option>
|
||||
<option value="WEIXIN_SYT">微信收银台</option>
|
||||
<option value="ALI_SCAN">支付宝扫码</option>
|
||||
<option value="ALI_H5">支付宝H5</option>
|
||||
<option value="ALI_SYT">支付宝收银台</option>
|
||||
<option value="QQ_SCAN">QQ扫码</option>
|
||||
<option value="QQ_H5">QQ-H5</option>
|
||||
<option value="QQ_SYT">QQ收银台</option>
|
||||
<option value="UNION_SCAN">银联扫码</option>
|
||||
<option value="UNION_H5">银联H5</option>
|
||||
<option value="UNION_PC_WAP">银联pc-web</option>
|
||||
@@ -645,7 +645,13 @@
|
||||
let str = "";
|
||||
for (let i = 0; i < res.MerchantList.length; i ++) {
|
||||
let v = res.MerchantList[i];
|
||||
let tmp = "<tr>" + "<th>" + (res.StartIndex+i+1) + "</th>" +
|
||||
let t = "";
|
||||
if (v.Status === "unactive") {
|
||||
t = "<tr style=\"color: red;\">";
|
||||
} else {
|
||||
t = "<tr>";
|
||||
}
|
||||
let tmp = t + "<th>" + (res.StartIndex+i+1) + "</th>" +
|
||||
"<th>" + v.MerchantUid + "</th>" + "<th>" + v.MerchantName + "</th>" + "<th>" + v.MerchantKey + "</th>" +
|
||||
"<th>" + v.MerchantSecret + "</th>" + "<th>" + v.LoginAccount + "</th>" + "<th>" + v.Status + "</th>";
|
||||
|
||||
@@ -693,6 +699,7 @@
|
||||
alert("更新失败")
|
||||
} else {
|
||||
showMerchantAjax(getMerchantCutPageValues());
|
||||
alert("操作成功")
|
||||
}
|
||||
},
|
||||
|
||||
|
@@ -302,12 +302,19 @@
|
||||
let str = "";
|
||||
for (let i = 0; i < res.OperatorList.length; i ++) {
|
||||
let v = res.OperatorList[i];
|
||||
let tmp = "<tr>" + "<th>" + (res.StartIndex+i+1) + "</th>" +
|
||||
let t = "";
|
||||
let h = "";
|
||||
if (v.Status === "unactive") {
|
||||
t = "<tr style=\"color: red;\">";
|
||||
} else {
|
||||
t = "<tr>";
|
||||
}
|
||||
let tmp = t + "<th>" + (res.StartIndex+i+1) + "</th>" +
|
||||
"<th>" + v.UserId + "</th>" + "<th>" + v.RoleName + "</th>" + "<th>" + v.Nick + "</th>" +
|
||||
"<th>" + v.Remark + "</th>" + "<th>" + v.Status + "</th>" +
|
||||
"<th>" + v.CreateTime + "</th>";
|
||||
|
||||
tmp = tmp + "<th>" + '<div class="btn-group" role="group" aria-label="...">' +
|
||||
tmp = tmp + "<th>" + '<div class="btn-group" role="group" aria-label="...">' +
|
||||
'<button type="button" value="' + v.UserId +'" class="btn btn-default" onclick="editOperator(this.value);"><span class="glyphicon glyphicon-pencil"></span></button>' +
|
||||
'<button type="button" value="' + v.UserId +'" class="btn btn-default" onclick="freezeOperator(this.value);"><span>冻结</span></button>' +
|
||||
'<button type="button" value="' + v.UserId +'" class="btn btn-default" onclick="unfreezeOperator(this.value);"><span>解冻</span></button>' +
|
||||
|
@@ -364,13 +364,13 @@
|
||||
"solveType":"freeze_amount"
|
||||
},
|
||||
success: function (res) {
|
||||
if (res.Code == 404) {
|
||||
if (res.Code === 404) {
|
||||
window.parent.location = "/login.html";
|
||||
return
|
||||
} else if (res.Code == 200) {
|
||||
alert("冻结成功");
|
||||
} else if (res.Msg === "success") {
|
||||
alert("处理成功");
|
||||
} else {
|
||||
alert("冻结失败")
|
||||
alert("可能订单未完成支付,不能进行此项操作!")
|
||||
}
|
||||
AjaxOrderList(getOrderSearchValues());
|
||||
},
|
||||
@@ -507,10 +507,14 @@
|
||||
"bankOrderId":bankOrderid
|
||||
},
|
||||
success: function (res) {
|
||||
if (res.Code == 404) {
|
||||
if (res.Code === 404) {
|
||||
window.parent.location = "/login.html";
|
||||
} else {
|
||||
alert(res.Msg);
|
||||
if (res.Msg === "success") {
|
||||
alert("处理成功!")
|
||||
} else {
|
||||
alert("处理失败!")
|
||||
}
|
||||
AjaxOrderList(getOrderSearchValues());
|
||||
}
|
||||
},
|
||||
|
@@ -209,7 +209,7 @@
|
||||
"bankOrderId":bankOrderId
|
||||
},
|
||||
success: function (res) {
|
||||
if (res.Code == 404) {
|
||||
if (res.Code === 404) {
|
||||
window.parent.location = "/login.html";
|
||||
} else {
|
||||
alert(res.Msg);
|
||||
@@ -228,7 +228,7 @@
|
||||
"bankOrderId":bankOrderId
|
||||
},
|
||||
success: function (res) {
|
||||
if (res.Code == 404) {
|
||||
if (res.Code === 404) {
|
||||
window.parent.location = "/login.html";
|
||||
} else {
|
||||
alert(res.Msg);
|
||||
@@ -310,9 +310,9 @@
|
||||
"resultType":resultType
|
||||
},
|
||||
success: function (res) {
|
||||
if (res.Code == 404) {
|
||||
if (res.Code === 404) {
|
||||
window.parent.location = "/login.html";
|
||||
} else if (res.Code == -1){
|
||||
} else if (res.Code === -1){
|
||||
alert(res.Msg);
|
||||
} else {
|
||||
$("#result-cannel").trigger('click');
|
||||
|
@@ -329,7 +329,13 @@
|
||||
let str = "";
|
||||
for (let i = 0; i < res.RoadInfoList.length; i ++) {
|
||||
let v = res.RoadInfoList[i];
|
||||
let tmp = "<tr>" + "<th>" + (res.StartIndex+i+1) + "</th>" +
|
||||
let t = "";
|
||||
if (v.Status === "unactive") {
|
||||
t = "<tr style=\"color: red;\">"
|
||||
} else {
|
||||
t = "<tr>";
|
||||
}
|
||||
let tmp = t + "<th>" + (res.StartIndex+i+1) + "</th>" +
|
||||
"<th>" + v.RoadName + "</th>" + "<th>" + v.ProductName + "</th>" + "<th>" + v.PayType + "</th>" +
|
||||
"<th>" + v.BasicFee + "</th>" + "<th>" + v.Status + "</th>" + "<th>" + v.TotalLimit + "</th>" +
|
||||
"<th>" + v.TodayLimit + "</th>" + "<th>" + v.SingleMinLimit + "-" + v.SingleMaxLimit + "</th>" +
|
||||
|
@@ -243,7 +243,7 @@
|
||||
"<th>" + v.RoleName + "</th>" + "<th>" + v.RoleUid + "</th>" +
|
||||
"<th>" + v.Remark + "</th>" + "<th>" + v.CreateTime + "</th>";
|
||||
tmp = tmp + "<th>" + '<div class="btn-group" role="group" aria-label="...">' +
|
||||
'<button type="button" value="' + v.RoleUid +'" class="btn btn-default" onclick="editRole(this.value);"><span class="glyphicon glyphicon-pencil"></span></button>' +
|
||||
// '<button type="button" value="' + v.RoleUid +'" class="btn btn-default" onclick="editRole(this.value);"><span class="glyphicon glyphicon-pencil"></span></button>' +
|
||||
'<button type="button" value="' + v.RoleUid +'" class="btn btn-default" onclick="deleteRole(this.value);"><span class="glyphicon glyphicon-trash"></span></button>' +
|
||||
'</div>' + "</th>" + "</tr>";
|
||||
str = str + tmp;
|
||||
|
@@ -131,7 +131,26 @@
|
||||
$("#operate-result").html(res.Msg);
|
||||
} else {
|
||||
randResult(res);
|
||||
alert("操作成功,请仔细检查商户的资金状态");
|
||||
alert("当前用户的信息如下......");
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
alert("系统异常,请稍后再试")
|
||||
}
|
||||
});
|
||||
}
|
||||
function getAccount() {
|
||||
let dataJSON = getValues();
|
||||
$.ajax({
|
||||
url:"/get/one/account",
|
||||
data: dataJSON,
|
||||
success: function (res) {
|
||||
if (res.Code == 404) {
|
||||
window.parent.location = "/login.html";
|
||||
} else if (res.Code == -1) {
|
||||
$("#operate-result").html(res.Msg);
|
||||
} else {
|
||||
randResult(res);
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
@@ -141,9 +160,14 @@
|
||||
}
|
||||
$("#select-self-name").change(function () {
|
||||
clearResult();
|
||||
let accountUid = $("#select-self-name").val();
|
||||
if (accountUid === "" || accountUid.length <= 0) {
|
||||
return false;
|
||||
}
|
||||
getAccount();
|
||||
});
|
||||
$("#select-self-type").click(function () {
|
||||
clearResult();
|
||||
// clearResult();
|
||||
});
|
||||
function setAccount() {
|
||||
$.ajax({
|
||||
|
Reference in New Issue
Block a user