From 2d7d81e1b68f33f7163d6b17aa7e022c14bb1f28 Mon Sep 17 00:00:00 2001 From: Sun_sun <469361609@qq.com> Date: Mon, 8 Sep 2025 11:41:26 +0800 Subject: [PATCH] =?UTF-8?q?2025-09-08=20=E8=BD=AC=E8=B4=A6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=AE=8C=E6=88=90=20=E5=85=B6=E4=BB=96=E9=83=A8?= =?UTF-8?q?=E5=88=86=E4=BF=AE=E6=94=B9=20=E5=8E=BB=E6=8E=89=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E8=B5=84=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/Layout.vue | 8 +- src/utils/config.js | 2 +- src/views/Dashboard.vue | 7 +- src/views/Transfers.vue | 232 +++++++++++++++++++++------------------- src/views/Users.vue | 4 - 5 files changed, 131 insertions(+), 122 deletions(-) diff --git a/src/layout/Layout.vue b/src/layout/Layout.vue index 7437a1d..c28ce55 100644 --- a/src/layout/Layout.vue +++ b/src/layout/Layout.vue @@ -87,7 +87,7 @@ 数据库监控 --> - + 个人资料 @@ -149,15 +149,15 @@ - + 个人资料 - + 修改密码 - + 退出登录 diff --git a/src/utils/config.js b/src/utils/config.js index 21a8b68..959bbeb 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -35,7 +35,7 @@ export const getImageUrl = (imagePath) => { // 如果图片路径以/uploads开头,直接返回原路径 if (imagePath.startsWith('/uploads')) { // console.log('Image starts with /uploads, returning original path:', imagePath) - return `${imagePath}` + return `${cleanBaseURL}/jurongquan${imagePath}` } // 在开发环境下,也需要根据路径前缀处理 diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 7a5444b..6ed14e5 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -167,8 +167,8 @@ - {{ user.username }} - {{ user.phone }} + {{ maskPhoneNumber(user.username) }} + {{ maskPhoneNumber(user.phone) }} {{ formatTime(user.created_at) }} @@ -202,7 +202,7 @@ +{{ commission.commission_amount }} - {{ commission.username+'('+commission.real_name+')' }} + {{ maskPhoneNumber(commission.username) + '('+ maskPhoneNumber(commission.real_name) +')' }} {{ formatTime(commission.created_at) }} @@ -246,6 +246,7 @@ import { LegendComponent, GridComponent } from 'echarts/components' +import {maskPhoneNumber} from "../utils/public_method"; // 注册 ECharts 组件 use([ diff --git a/src/views/Transfers.vue b/src/views/Transfers.vue index 4c10b3d..7b70029 100644 --- a/src/views/Transfers.vue +++ b/src/views/Transfers.vue @@ -9,44 +9,64 @@ - + - - - - - - + + + + + + + + + + + + + + + + + - + + + 搜索 - + + + 重置 @@ -61,10 +81,12 @@ - + + + - {{ transferStats.totalAmount || 0 }} + {{ transferStats.total_amount || 0 }} 总转账金额 @@ -74,10 +96,12 @@ - + + + - {{ transferStats.totalCount || 0 }} + {{ transferStats.total_transfers || 0 }} 总转账笔数 @@ -87,11 +111,13 @@ - + + + - {{ transferStats.inAmount || 0 }} - 转入金额 + {{ transferStats.today_amount || 0 }} + 今日账金额 @@ -100,11 +126,13 @@ - + + + - {{ transferStats.outAmount || 0 }} - 转出金额 + {{ transferStats.today_transfers || 0 }} + 今日账笔数 @@ -116,46 +144,41 @@ - - + + - {{scope.row.from_real_name + '('+ maskPhoneNumber(scope.row.from_phone) +')->' + scope.row.to_real_name + '('+maskPhoneNumber(scope.row.to_phone)+')' }} + {{ + scope.row.from_real_name + '(' + maskPhoneNumber(scope.row.from_phone) + ')->' + scope.row.to_real_name + '(' + maskPhoneNumber(scope.row.to_phone) + ')' + }} - - - - - - - - - - - + + + + + + + + + + + - - {{ row.type === 'in' ? '+' : '-' }}{{ row.amount }} + + + {{ row.amount }} - - + - {{ formatIsoToCustom(row.created_at) }} - - - - - - {{ getStatusText(row.status) }} - + {{ row.created_at }} @@ -163,13 +186,13 @@ @@ -178,8 +201,8 @@ diff --git a/src/views/Users.vue b/src/views/Users.vue index 1c6c70d..8797b4b 100644 --- a/src/views/Users.vue +++ b/src/views/Users.vue @@ -327,10 +327,6 @@ const handleSearch = () => { const handleReset = () => { Object.assign(searchForm, { keyword: '', - status: '', - city: '', - district: '', - sort: 'created_at_desc' }) pagination.page = 1 fetchUsers()