- {{ Number(user.totalRechargeGold) / 100 }}
+ {{ Number(user.totalRechargeGold / 100) }}
- {{ Number(user.totalRechargeGold) / 100 }}
+ {{ Number(user.totalRechargeGold/100) }}
@@ -1122,11 +1122,11 @@ onMounted(async function () {
-
+
diff --git a/gold-system/src/views/recharge/adminRecharge.vue b/gold-system/src/views/recharge/adminRecharge.vue
index 81cdab9..8637122 100644
--- a/gold-system/src/views/recharge/adminRecharge.vue
+++ b/gold-system/src/views/recharge/adminRecharge.vue
@@ -85,14 +85,25 @@ const delObj = ref({});
// 方法
// 合计数存储
-const totalData = ref({
- totalmoney: 0,
- totalRcoin: 0,
- totalFcoin: 0,
-});
+const trueGold = ref(0);
+const trueRGold = ref(0);
+const trueFGold = ref(0);
+//全部
const totalmoney = ref(0);
const totalRcoin = ref(0);
const totalFcoin = ref(0);
+//待审核
+const pendingGold = ref(0);
+const pendingRGold = ref(0);
+const pendingFGold = ref(0);
+// 已通过金币数
+const approvedGold = ref(0);
+const approvedRGold = ref(0);
+const approvedFGold = ref(0);
+// 已驳回金币数
+const rejectedGold = ref(0);
+const rejectedRGold = ref(0);
+const rejectedFGold = ref(0);
// 搜索===========================================================================
// 搜索方法
const get = async function (val) {
@@ -148,18 +159,37 @@ const get = async function (val) {
totalmoney.value = 0;
totalRcoin.value = 0;
totalFcoin.value = 0;
- } else {
- // 做一个判断,如果result2.data[i].flag="待审核",那么 totalData.value = result2.data[i],否则就赋值为0
- for (let i = 0; i < result2.data.length; i++) {
- if (result2.data[i].flag == "已通过") {
- totalData.value = result2.data[i];
- totalmoney.value = totalData.value.sumRaudit1 || 0;
- totalRcoin.value = totalData.value.sumRaudit1 || 0;
- totalFcoin.value = totalData.value.sumRaudit2 || 0;
- break;
+ }
+ if (result2.data) {
+ result2.data.forEach((item) => {
+ switch (item.flag) {
+ case "待审核":
+ // 若 item.raudit 为空则赋值为 0
+ // 若 item.sumRaudit 为空则赋值为 0
+ pendingGold.value = item.sumRaudit || 0;
+ pendingRGold.value = item.sumRaudit1 || 0;
+ pendingFGold.value = item.sumRaudit2 || 0;
+ break;
+ case "已通过":
+ approvedGold.value = item.sumRaudit || 0;
+ approvedRGold.value = item.sumRaudit1 || 0;
+ approvedFGold.value = item.sumRaudit2 || 0;
+ break;
+ case "已驳回":
+ rejectedGold.value = item.sumRaudit || 0;
+ rejectedRGold.value = item.sumRaudit1 || 0;
+ rejectedFGold.value = item.sumRaudit2 || 0;
+ break;
}
- }
+ });
}
+ trueGold.value =
+ pendingGold.value + approvedGold.value + rejectedGold.value;
+ trueRGold.value =
+ pendingRGold.value + approvedRGold.value + rejectedRGold.value;
+ trueFGold.value =
+ pendingFGold.value + approvedFGold.value + rejectedFGold.value;
+
// 将响应结果存储到响应式数据中
console.log("请求成功", result);
// 存储表格数据
@@ -249,25 +279,35 @@ const adminAll = function () {
get();
};
//待审核充值明细
-const adminWait = function () {
+const adminWait = async function () {
rechargeVo.value.status = 0;
getObj.value.pageNum = 1;
- get();
+ await get();
console.log("adminWait");
+
+ trueGold.value = pendingGold.value;
+ trueRGold.value = pendingRGold.value;
+ trueFGold.value = pendingFGold.value;
};
//已通过充值明细
-const adminPass = function () {
+const adminPass = async function () {
rechargeVo.value.status = 1;
getObj.value.pageNum = 1;
- get();
+ await get();
+ trueGold.value = approvedGold.value;
+ trueRGold.value = approvedRGold.value;
+ trueFGold.value = approvedFGold.value;
console.log("adminPass");
};
//已驳回充值明细
-const adminReject = function () {
+const adminReject = async function () {
rechargeVo.value.status = 2;
getObj.value.pageNum = 1;
- get();
+ await get();
console.log("adminReject");
+ trueGold.value = rejectedGold.value;
+ trueRGold.value = rejectedRGold.value;
+ trueFGold.value = rejectedFGold.value;
};
//点击标签页
const handleClick = function (tab, event) {
@@ -506,9 +546,9 @@ const handleSortChange = (column) => {
- 充值金额:{{ totalmoney }}新币,永久金币:{{
- totalRcoin
- }}金币,免费金币:{{ totalFcoin }}金币
+ 充值金额:{{ trueRGold }}新币,永久金币:{{
+ trueRGold
+ }}金币,免费金币:{{ trueFGold }}金币
diff --git a/gold-system/src/views/recharge/allRecharge.vue b/gold-system/src/views/recharge/allRecharge.vue
index d16e7cb..589a14a 100644
--- a/gold-system/src/views/recharge/allRecharge.vue
+++ b/gold-system/src/views/recharge/allRecharge.vue
@@ -70,14 +70,26 @@ const getPayWay = async function () {
// 方法
// 合计数存储
-const totalData = ref({
- totalmoney: 0,
- totalRcoin: 0,
- totalFcoin: 0,
-});
+// 合计数存储
+const trueGold = ref(0);
+const trueRGold = ref(0);
+const trueFGold = ref(0);
+//全部
const totalmoney = ref(0);
const totalRcoin = ref(0);
const totalFcoin = ref(0);
+//待审核
+const pendingGold = ref(0);
+const pendingRGold = ref(0);
+const pendingFGold = ref(0);
+// 已通过金币数
+const approvedGold = ref(0);
+const approvedRGold = ref(0);
+const approvedFGold = ref(0);
+// 已驳回金币数
+const rejectedGold = ref(0);
+const rejectedRGold = ref(0);
+const rejectedFGold = ref(0);
// 搜索==============================================================
// 搜索方法
const get = async function (val) {
@@ -134,18 +146,36 @@ const get = async function (val) {
totalmoney.value = 0;
totalRcoin.value = 0;
totalFcoin.value = 0;
- } else {
- // 做一个判断,如果result2.data[i].flag="待审核",那么 totalData.value = result2.data[i],否则就赋值为0
- for (let i = 0; i < result2.data.length; i++) {
- if (result2.data[i].flag == "已通过") {
- totalData.value = result2.data[i];
- totalmoney.value = totalData.value.sumRaudit1;
- totalRcoin.value = totalData.value.sumRaudit1;
- totalFcoin.value = totalData.value.sumRaudit2;
- break;
+ }
+ if (result2.data) {
+ result2.data.forEach((item) => {
+ switch (item.flag) {
+ case "待审核":
+ // 若 item.raudit 为空则赋值为 0
+ // 若 item.sumRaudit 为空则赋值为 0
+ pendingGold.value = item.sumRaudit || 0;
+ pendingRGold.value = item.sumRaudit1 || 0;
+ pendingFGold.value = item.sumRaudit2 || 0;
+ break;
+ case "已通过":
+ approvedGold.value = item.sumRaudit || 0;
+ approvedRGold.value = item.sumRaudit1 || 0;
+ approvedFGold.value = item.sumRaudit2 || 0;
+ break;
+ case "已驳回":
+ rejectedGold.value = item.sumRaudit || 0;
+ rejectedRGold.value = item.sumRaudit1 || 0;
+ rejectedFGold.value = item.sumRaudit2 || 0;
+ break;
}
- }
+ });
}
+ trueGold.value =
+ pendingGold.value + approvedGold.value + rejectedGold.value;
+ trueRGold.value =
+ pendingRGold.value + approvedRGold.value + rejectedRGold.value;
+ trueFGold.value =
+ pendingFGold.value + approvedFGold.value + rejectedFGold.value;
// 将响应结果存储到响应式数据中
console.log("请求成功", result);
@@ -236,24 +266,33 @@ const adminAll = function () {
get();
};
//待审核充值明细
-const adminWait = function () {
+const adminWait = async function () {
rechargeVo.value.status = 0;
getObj.value.pageNum = 1;
- get();
+ await get();
console.log("adminWait");
+ trueGold.value = pendingGold.value;
+ trueRGold.value = pendingRGold.value;
+ trueFGold.value = pendingFGold.value;
};
//已通过充值明细
-const adminPass = function () {
+const adminPass = async function () {
rechargeVo.value.status = 1;
getObj.value.pageNum = 1;
- get();
+ await get();
console.log("adminPass");
+ trueGold.value = approvedGold.value;
+ trueRGold.value = approvedRGold.value;
+ trueFGold.value = approvedFGold.value;
};
//已驳回充值明细
-const adminReject = function () {
+const adminReject = async function () {
rechargeVo.value.status = 2;
getObj.value.pageNum = 1;
- get();
+ await get();
+ trueGold.value = rejectedGold.value;
+ trueRGold.value = rejectedRGold.value;
+ trueFGold.value = rejectedFGold.value;
console.log("adminReject");
};
//点击标签页
@@ -473,8 +512,8 @@ const handleSortChange = (column) => {
- 充值金额:{{ totalmoney / 100 }}新币,永久金币:{{
- totalRcoin / 100
+ 充值金额:{{ trueRGold / 100 }}新币,永久金币:{{
+ trueRGold / 100
}}金币,免费金币:{{ totalFcoin / 100 }}金币
diff --git a/gold-system/src/views/refund/addRefund.vue b/gold-system/src/views/refund/addRefund.vue
index 9f339a2..bde75bd 100644
--- a/gold-system/src/views/refund/addRefund.vue
+++ b/gold-system/src/views/refund/addRefund.vue
@@ -414,7 +414,7 @@ onMounted(async function () {
- {{ Number(user.totalRechargeGold) / 100 }}
+ {{ Number(user.totalRechargeGold / 100) }}
@@ -471,11 +471,11 @@ onMounted(async function () {
-
+
diff --git a/gold-system/src/views/usergold/index.vue b/gold-system/src/views/usergold/index.vue
index 122d47e..56fd828 100644
--- a/gold-system/src/views/usergold/index.vue
+++ b/gold-system/src/views/usergold/index.vue
@@ -254,8 +254,8 @@ const json_fields = (row) => {
row.jwcode, // 姓名
row.area, // 精网号
row.platform, // 所属地区
- row.count, // 平台信息
- row.updateType, // 更新数量
+ row.consumePlatform, // 平台信息
+ row.gold, // 更新数量
row.rechargeCoin, // 免费金币
row.freeCoin, // 永久金币
row.taskCoin, // 任务金币