add totalConsumed

This commit is contained in:
Timi
2026-08-22 11:51:48 +08:00
parent bb7c9312b8
commit de06660108
2 changed files with 5 additions and 5 deletions
+4 -5
View File
@@ -48,6 +48,7 @@
<t-cell-group v-if="customer && account" title="积分统计" theme="card">
<t-cell title="累计获得" :note="formatPoints(account.totalEarned)" />
<t-cell title="累计消耗" :note="formatPoints(account.totalConsumed)" />
<t-cell title="累计撤销" :note="formatPoints(account.totalRevoked)" />
<t-cell title="人工调整" :note="formatSignedPoints(account.totalAdjusted)" />
</t-cell-group>
@@ -318,16 +319,14 @@ onMounted(async () => {
}
}
.account-card {
color: #FFF;
margin: 0 1rem;
padding: 1rem;
background: rgba(255, 255, 255, .92);
box-shadow: var(--td-shadow-1);
border-radius: 1.4rem;
}
.account-card {
color: #FFF;
background: linear-gradient(135deg, #0f766e, #0f4c5c);
.header {
@@ -337,7 +336,7 @@ onMounted(async () => {
.balance {
gap: 1rem;
margin: .5rem 0;
margin: 2rem 0 1rem 0;
display: flex;
align-items: center;
justify-content: end;
+1
View File
@@ -43,6 +43,7 @@ export type PointAccount = {
customerId?: string;
balance?: number;
totalEarned?: number;
totalConsumed?: number;
totalRevoked?: number;
totalAdjusted?: number;
version?: number;