From 4ce104f7e8380b90ddade555fa8b7c81dfb60a8d Mon Sep 17 00:00:00 2001 From: yml Date: Mon, 16 Nov 2026 18:35:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(wallet):=20=E4=BC=98=E5=8C=96=E6=8F=90?= =?UTF-8?q?=E7=8E=B0=E4=B8=8E=E7=A7=BB=E5=8A=A8=E8=B4=A6=E6=88=B7=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + .../features/auth/views/MobileProfileView.css | 9 +- .../features/auth/views/MobileProfileView.vue | 40 +-- .../wallet/views/MobileWithdrawalView.css | 185 +++++----- .../wallet/views/MobileWithdrawalView.vue | 2 +- .../features/wallet/views/WithdrawalView.vue | 320 ++++++++++++++---- 6 files changed, 400 insertions(+), 158 deletions(-) diff --git a/.gitignore b/.gitignore index bd655bde..6643a9ac 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,5 @@ artifacts/ frontend/coverage/ .zcode/ .workbuddy/ + +bakup/ diff --git a/frontend/src/features/auth/views/MobileProfileView.css b/frontend/src/features/auth/views/MobileProfileView.css index cf5be604..0cb9484d 100644 --- a/frontend/src/features/auth/views/MobileProfileView.css +++ b/frontend/src/features/auth/views/MobileProfileView.css @@ -995,17 +995,18 @@ display: flex; align-items: center; justify-content: space-between; + flex-wrap: wrap; gap: 8px; - margin-top: 12px; - padding-top: 10px; - border-top: 1px solid #eeeeec; + margin-top: 5px; + padding-top: 0; + border-top: 0; } .hero-level-pill, .hero-benefits-btn { display: inline-flex; align-items: center; - min-height: 28px; + min-height: 22px; border: 0; background: transparent; } diff --git a/frontend/src/features/auth/views/MobileProfileView.vue b/frontend/src/features/auth/views/MobileProfileView.vue index f81f559e..6d2e9214 100644 --- a/frontend/src/features/auth/views/MobileProfileView.vue +++ b/frontend/src/features/auth/views/MobileProfileView.vue @@ -519,28 +519,28 @@ function resolveAvatarURL(url: string | undefined | null) {

ID: {{ displayId }} · {{ maskedPhone }}

+
+ +
+ 所属商城 + {{ siteStore.siteName || '官方商城' }} +
+ +
-
- -
- 所属商城 - {{ siteStore.siteName || '官方商城' }} -
- -
diff --git a/frontend/src/features/wallet/views/MobileWithdrawalView.css b/frontend/src/features/wallet/views/MobileWithdrawalView.css index 4526822f..9777ac86 100644 --- a/frontend/src/features/wallet/views/MobileWithdrawalView.css +++ b/frontend/src/features/wallet/views/MobileWithdrawalView.css @@ -1,28 +1,40 @@ .mobile-withdrawal { - --van-primary-color: #ff6a00; - --van-button-primary-background: #ff6a00; - --van-button-primary-border-color: #ff6a00; - --van-radio-checked-icon-color: #ff6a00; - --van-checkbox-checked-icon-color: #ff6a00; - --van-tag-warning-color: #ff6a00; - min-height: 100vh; - padding: 12px 14px 28px; - background: #fff7ed; + --van-primary-color: #a95522; + --van-button-primary-background: #a95522; + --van-button-primary-border-color: #a95522; + --van-radio-checked-icon-color: #a95522; + --van-checkbox-checked-icon-color: #a95522; + --van-tag-warning-color: #8b6238; + min-height: 100dvh; + padding: 0 12px 24px; + background: #f4f4f2; } .page-header { + position: sticky; + top: 0; + z-index: 50; display: grid; - grid-template-columns: 40px 1fr 40px; + grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; - height: 44px; - margin-bottom: 12px; + height: 52px; + margin: 0 -12px 12px; + padding: 0 10px; + border-bottom: 1px solid #ececea; + background: rgba(255, 255, 255, 0.96); + box-shadow: 0 1px 8px rgba(26, 28, 31, 0.03); + backdrop-filter: blur(12px); } .page-header h1 { margin: 0; + overflow: hidden; text-align: center; font-size: 17px; - color: #101828; + font-weight: 700; + color: #24282d; + text-overflow: ellipsis; + white-space: nowrap; } .back-btn, @@ -32,10 +44,10 @@ justify-content: center; width: 36px; height: 36px; - border: 0; - border-radius: 18px; - background: #fff; - color: #1f2937; + border: 1px solid #ececea; + border-radius: 8px; + background: #f7f7f5; + color: #4f555b; } .refresh-btn { @@ -44,12 +56,13 @@ .balance-panel { display: grid; - gap: 6px; - padding: 18px; + gap: 5px; + padding: 16px; + border: 1px solid #e5e4e1; border-radius: 8px; - background: linear-gradient(135deg, #ff8a1f 0%, #ff5a00 100%); - color: #fff; - box-shadow: 0 14px 28px rgba(255, 106, 0, 0.22); + background: #ffffff; + color: #252a31; + box-shadow: 0 4px 14px rgba(28, 31, 35, 0.035); } .site-account-tip { @@ -58,30 +71,35 @@ width: fit-content; padding: 2px 8px; border-radius: 4px; - background: rgba(255, 255, 255, 0.25); - color: #fff; - font-size: 11px; - font-weight: 500; - letter-spacing: 0.5px; + border: 1px solid #ead8cb; + background: #f8f1eb; + color: #96542f; + font-size: 10px; + font-weight: 600; + letter-spacing: 0; } .balance-panel span, .balance-panel small { - color: rgba(255, 255, 255, 0.72); + color: #858a90; font-size: 12px; } .balance-panel strong { - font-size: 31px; + color: #9c542b; + font-size: 32px; + font-weight: 700; line-height: 1.1; } .withdraw-card, .records-card { - margin-top: 12px; + margin-top: 10px; padding: 14px; + border: 1px solid #e5e4e1; border-radius: 8px; - background: #fff; + background: #ffffff; + box-shadow: 0 4px 14px rgba(28, 31, 35, 0.03); } .section-title { @@ -94,8 +112,8 @@ .section-title h2 { margin: 0; - font-size: 16px; - color: #101828; + font-size: 15px; + color: #252a31; } .section-title button { @@ -104,8 +122,8 @@ gap: 4px; border: 0; background: transparent; - color: #ff6a00; - font-size: 13px; + color: #9c6746; + font-size: 12px; } .section-title button:disabled { @@ -126,9 +144,9 @@ .empty-state { display: grid; justify-items: center; - gap: 10px; - padding: 24px 0; - color: #98a2b3; + gap: 9px; + padding: 18px 0; + color: #92979c; } .empty-state p { @@ -145,14 +163,14 @@ display: grid; gap: 8px; padding: 10px; - border: 1px solid #eaecf0; + border: 1px solid #e8e7e4; border-radius: 8px; - background: #fff; + background: #ffffff; } .account-option.active { - border-color: #ff6a00; - background: #fff7ed; + border-color: #d6b39a; + background: #fcf8f5; } .account-select { @@ -175,8 +193,8 @@ width: 34px; height: 34px; border-radius: 8px; - background: #fff3e8; - color: #ff6a00; + background: #f7f1eb; + color: #a65b31; } .account-main { @@ -187,7 +205,7 @@ .account-main strong { overflow: hidden; - color: #101828; + color: #252a31; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; @@ -195,7 +213,7 @@ .account-main small { overflow: hidden; - color: #667085; + color: #858a90; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; @@ -206,18 +224,18 @@ justify-content: flex-end; gap: 8px; padding-top: 8px; - border-top: 1px solid #f2f4f7; + border-top: 1px solid #eeeeec; } .account-actions button { border: 0; background: transparent; - color: #ff6a00; + color: #8b6a55; font-size: 12px; } .account-actions button.danger { - color: #b42318; + color: #985858; } .account-actions button:disabled { @@ -236,24 +254,24 @@ justify-content: space-between; gap: 10px; margin: 10px 0; - color: #667085; + color: #7c8187; font-size: 12px; } .amount-meta button { border: 0; background: transparent; - color: #ff6a00; + color: #9c6746; } .amount-preview { padding: 10px 12px; border-radius: 8px; - background: #f8fafc; + background: #f8f8f6; } .amount-preview strong { - color: #ff6a00; + color: #9c542b; font-size: 18px; } @@ -268,7 +286,7 @@ .record-item { padding: 12px; - border: 1px solid #eaecf0; + border: 1px solid #e8e7e4; border-radius: 8px; background: #fff; } @@ -283,13 +301,13 @@ .record-top strong { display: block; - color: #101828; + color: #252a31; font-size: 18px; } .record-top small, .record-meta { - color: #98a2b3; + color: #92979c; font-size: 12px; } @@ -299,17 +317,31 @@ .record-remark { margin: 10px 0 0; - color: #b42318; + color: #985858; font-size: 12px; } .cancel-btn { margin-top: 10px; padding: 6px 10px; - border: 1px solid #fecdca; - border-radius: 999px; - background: #fff; - color: #b42318; + border: 1px solid #e6d0d0; + border-radius: 6px; + background: #ffffff; + color: #985858; + font-size: 12px; +} + +.records-card :deep(.van-empty) { + padding: 18px 0; +} + +.records-card :deep(.van-empty__image) { + width: 82px; + height: 82px; +} + +.records-card :deep(.van-empty__description) { + color: #92979c; font-size: 12px; } @@ -358,8 +390,8 @@ height: 17px; padding: 0 6px; border-radius: 999px; - background: #fff7ed; - color: #c2410c; + background: #f7f1eb; + color: #96542f; font-size: 11px; font-weight: 700; line-height: 1; @@ -367,7 +399,7 @@ .type-tip { margin: 0 0 12px; - color: #8a5a13; + color: #876b52; font-size: 12px; line-height: 1.5; } @@ -376,8 +408,9 @@ margin: 12px 0; padding: 10px 12px; border-radius: 8px; - background: #fffbeb; - color: #92400e; + border: 1px solid #e9e4de; + background: #f8f7f5; + color: #74685e; font-size: 12px; line-height: 1.6; } @@ -389,16 +422,16 @@ align-items: center; margin: 12px 0; padding: 10px; - border: 1px solid #fed7aa; - border-radius: 10px; - background: #fff7ed; - color: #92400e; + border: 1px solid #e7ddd5; + border-radius: 8px; + background: #faf8f6; + color: #74685e; } .receive-qr-tip strong { display: block; margin-bottom: 5px; - color: #c2410c; + color: #8d5c3d; font-size: 13px; } @@ -411,7 +444,7 @@ .receive-qr-tip img { display: block; width: 108px; - border: 1px solid #fde6c8; + border: 1px solid #e6ddd5; border-radius: 8px; background: #ffffff; } @@ -448,11 +481,11 @@ overflow: hidden; aspect-ratio: 1; border-radius: 8px; - background: #fff7ed; + background: #f8f6f3; } .certificate-item { - border: 1px solid #fed7aa; + border: 1px solid #e6ddd5; } .certificate-item img, @@ -485,8 +518,8 @@ align-items: center; justify-content: center; gap: 6px; - border: 1px dashed #ff9f43; - color: #ff6a00; + border: 1px dashed #c9a58c; + color: #9c6746; font-size: 12px; } diff --git a/frontend/src/features/wallet/views/MobileWithdrawalView.vue b/frontend/src/features/wallet/views/MobileWithdrawalView.vue index 3ed7e50b..89520664 100644 --- a/frontend/src/features/wallet/views/MobileWithdrawalView.vue +++ b/frontend/src/features/wallet/views/MobileWithdrawalView.vue @@ -647,7 +647,7 @@ function statusType(status: string): 'primary' | 'success' | 'danger' | 'warning :disabled="uploadingCertificate" @change="handleCertificateUpload" /> - + {{ uploadingCertificate ? '上传中' : '上传图片' }} diff --git a/frontend/src/features/wallet/views/WithdrawalView.vue b/frontend/src/features/wallet/views/WithdrawalView.vue index a3a8d35b..e5cea465 100644 --- a/frontend/src/features/wallet/views/WithdrawalView.vue +++ b/frontend/src/features/wallet/views/WithdrawalView.vue @@ -173,6 +173,7 @@ function accountTypeLabel(type: string) {