From 815d1cb2379b42cdcd07b3b6789acdbba0031858 Mon Sep 17 00:00:00 2001
From: hzj <1304805162@qq.com>
Date: Mon, 29 Sep 2025 14:06:07 +0800
Subject: [PATCH] =?UTF-8?q?feat(=E9=87=91=E5=B8=81=E8=B5=A0=E9=80=81?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95=E9=A1=B5):=20=E6=9B=B4=E6=8D=A2=E5=B1=95?=
=?UTF-8?q?=E7=A4=BAid?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/SellerRecordsView.vue | 43 ++++++++++++++++++---------------
1 file changed, 24 insertions(+), 19 deletions(-)
diff --git a/src/views/SellerRecordsView.vue b/src/views/SellerRecordsView.vue
index ad8be2d..1916348 100644
--- a/src/views/SellerRecordsView.vue
+++ b/src/views/SellerRecordsView.vue
@@ -9,24 +9,24 @@
-
+
{{ record.userName.charAt(0) }}
{{ record.userName }}
-
ID: {{ record.userId }}
+
ID: {{ record.account }}
{{ record.time }}
- {{ record.amount }} coins
- {{ getTransactionType(record.type, record.origin) }}
+ {{ record.amount }} coins
+ {{
+ getTransactionType(record.type, record.origin)
+ }}
@@ -44,8 +44,8 @@
import { ref, onMounted } from 'vue'
import MobileHeader from '../components/MobileHeader.vue'
import { getFreightWaterFlow } from '../api/wallet.js'
-import {formatUTCTime} from "@/utils/utcFormat.js";
-import {getUserId} from "@/utils/userStore.js";
+import { formatUTCTime } from '@/utils/utcFormat.js'
+import { getUserId } from '@/utils/userStore.js'
const loading = ref(false)
const records = ref([])
@@ -84,8 +84,9 @@ const fetchRecords = async () => {
if (response && response.status && response.body) {
// 处理返回的数据
- records.value = response.body.map(item => ({
+ records.value = response.body.map((item) => ({
id: item.id,
+ account: item.account,
userId: item.acceptUserId,
userName: `User${item.acceptUserId.toString().slice(-6)}...`, // 显示最后6位
amount: getAmountDisplay(item.type, item.quantity),
@@ -95,7 +96,7 @@ const fetchRecords = async () => {
balance: item.balance,
origin: item.origin,
remark: item.remark,
- rechargeType: item.rechargeType
+ rechargeType: item.rechargeType,
}))
} else {
records.value = []
@@ -138,15 +139,19 @@ onMounted(async () => {
width: 32px;
height: 32px;
border: 3px solid #f3f3f3;
- border-top: 3px solid #F59E0B;
+ border-top: 3px solid #f59e0b;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 16px;
}
@keyframes spin {
- 0% { transform: rotate(0deg); }
- 100% { transform: rotate(360deg); }
+ 0% {
+ transform: rotate(0deg);
+ }
+ 100% {
+ transform: rotate(360deg);
+ }
}
.loading-state p {
@@ -165,7 +170,7 @@ onMounted(async () => {
background-color: white;
padding: 16px;
border-radius: 12px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: space-between;
@@ -181,7 +186,7 @@ onMounted(async () => {
width: 50px;
height: 50px;
border-radius: 25px;
- background-color: #9CA3AF;
+ background-color: #9ca3af;
display: flex;
align-items: center;
justify-content: center;
@@ -225,11 +230,11 @@ onMounted(async () => {
}
.coins-amount.positive {
- color: #10B981; /* 绿色表示进货/入账 */
+ color: #10b981; /* 绿色表示进货/入账 */
}
.coins-amount.negative {
- color: #EF4444; /* 红色表示出货/出账 */
+ color: #ef4444; /* 红色表示出货/出账 */
}
.transaction-type {