From 066e41fb05c1a8aab2460f00f480bd4f74cac2c5 Mon Sep 17 00:00:00 2001 From: zry <18990852002@163.com> Date: Thu, 26 Jun 2025 17:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=B4=A6=E6=88=B7=E9=87=91?= =?UTF-8?q?=E5=B8=81=E7=AE=A1=E7=90=86=E5=AE=8C=E6=88=90=EF=BC=8C=E5=89=A9?= =?UTF-8?q?=E4=BD=99=E5=AF=BC=E5=87=BA=E5=90=8E=E7=BB=AD=E5=9C=A8=E5=81=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 +- src/router/index.js | 2 + src/util/request.js | 4 +- src/views/usergold/clientCountBalance.vue | 551 ++++++++++++++++++- src/views/usergold/clientCountDetail.vue | 873 ++++++++++++++++-------------- 5 files changed, 1033 insertions(+), 400 deletions(-) diff --git a/.env.development b/.env.development index b87c5db..b17f756 100644 --- a/.env.development +++ b/.env.development @@ -2,4 +2,5 @@ # VITE_API_BASE='http://192.168.8.94:8080/' # VITE_API_BASE='https://hwjb.homilychart.com/gold_htms_dev' # VITE_API_BASE='http://54.251.137.151:10704/' -VITE_API_BASE='http://192.168.8.225:8080/' +# VITE_API_BASE='http://192.168.8.225:8080/' +VITE_API_BASE='http://192.168.8.94:8080/' diff --git a/src/router/index.js b/src/router/index.js index 8716011..222fbd7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -19,6 +19,7 @@ const router = createRouter({ { path: '/refundAudit', name: "refundAudit", component: () => import("../views/audit/refundAudit.vue") }, // 金币消耗 { path: '/coinConsume', name: "coinConsume", component: () => import("../views/consume/coinConsume.vue"), + redirect: '/coinConsume/add',// 重定向到新增页面 children: [ // 金币新增消耗 { path: 'add', name: "addCoinConsume", component: () => import("../views/consume/addCoinConsume.vue") }, @@ -40,6 +41,7 @@ const router = createRouter({ { path: '/beanRefund', name: "beanRefund", component: () => import("../views/refund/beanRefund.vue") }, // 客户账户明细 { path: '/usergold', name: "usergold", component: () => import("../views/usergold/clientCount.vue"), + redirect: '/usergold/detail',// 重定向到客户账户明细页面 children: [ // 金币明细 { path: 'detail', name: "clientCountDetail", component: () => import("../views/usergold/clientCountDetail.vue") }, diff --git a/src/util/request.js b/src/util/request.js index 15579ed..541b9f3 100644 --- a/src/util/request.js +++ b/src/util/request.js @@ -1,13 +1,13 @@ import axios from 'axios' // 创建axios实例 const service = axios.create({ - baseURL: import.meta.env.VITE_API_BASE, + baseURL: import.meta.env.VITE_API_BASE,//.env.development timeout: 10000, headers: { 'Content-Type': 'application/json' }, // 设置请求头,指定请求体的格式为 JSON - // 设置默认请求方法为 POST 这行对应的代码搁哪呢? + // 设置默认请求方法为 POST 这行对应的代码搁哪呢? util/http.js自己看 }) // 请求拦截器 diff --git a/src/views/usergold/clientCountBalance.vue b/src/views/usergold/clientCountBalance.vue index d6c0e69..ea656c5 100644 --- a/src/views/usergold/clientCountBalance.vue +++ b/src/views/usergold/clientCountBalance.vue @@ -1,3 +1,550 @@ + + \ No newline at end of file + + + +
+
+ 精网号: + +
+
+ 所属地区: + + + +
+ + + + 查询 + 导出Excel +
+ +
+
+
+ + + +
+ 金币总数:{{ Math.abs(goldtotal) }} + 永久金币:{{ Math.abs(permanentGold) }} + 免费金币:{{ Math.abs(freeGold) }} + 任务金币:{{ Math.abs(taskGold) }} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+
+ + + + + diff --git a/src/views/usergold/clientCountDetail.vue b/src/views/usergold/clientCountDetail.vue index 7256755..8897266 100644 --- a/src/views/usergold/clientCountDetail.vue +++ b/src/views/usergold/clientCountDetail.vue @@ -1,4 +1,4 @@ - + @@ -501,51 +585,34 @@ onMounted(async function () {
- - - - - + - -
导出信息
- - + + -
+ 例如,在代码中,我们可能错误地在模板中使用了goldDetail.value,但实际上应该直接使用goldDetail。 --> + - + - 取消导出 - + --> @@ -588,7 +655,7 @@ onMounted(async function () {
精网号: 平台信息:
- +
数量更新类型: 所属地区: +
+ 金币总数:{{ Math.abs(sumGoldTotal) }} + 永久金币:{{ Math.abs( permanentGold) }} + 免费金币:{{ Math.abs(totalFreeGold) }} + 任务金币:{{ Math.abs(taskGold) }} +
@@ -707,20 +781,20 @@ onMounted(async function () { label="精网号" width="120" /> - + - + - - + - + - +