From 1fbb9bddb8f81c7a8fd2f6c66c652e3397858f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Mon, 29 Sep 2025 10:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E7=9A=84=E9=92=B1=E5=8C=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/user/wallet/index.css | 147 +++++++++++++++++++++++++++++++++ packages/user/wallet/index.vue | 106 ++++++++++++++++++++++++ pages.json | 7 ++ pages/user/index.vue | 9 +- 4 files changed, 266 insertions(+), 3 deletions(-) create mode 100644 packages/user/wallet/index.css create mode 100644 packages/user/wallet/index.vue diff --git a/packages/user/wallet/index.css b/packages/user/wallet/index.css new file mode 100644 index 00000000..56337b66 --- /dev/null +++ b/packages/user/wallet/index.css @@ -0,0 +1,147 @@ +page { + background-color: #f6f7fb; +} + +.header { + width: 750rpx; + padding-bottom: 20rpx; + background-color: #ffffff; +} + +.searchBox { + display: flex; + align-items: center; + z-index: 2; +} + +.searchBox_left { + box-sizing: border-box; + padding-left: 20rpx; + position: absolute; + left: 0; +} + +.searchBox_mid { + font-size: 32rpx; + color: #222222; + flex: 1; + text-align: center; +} + +/* 余额显示部分样式 */ +.balance-container { + width: 93%; + height: 250rpx; + background-color: #ffffff; + margin-bottom: 15rpx; + padding: 25rpx; +} + +.balance-content { + height: 100%; + display: flex; + position: relative; + align-items: center; + padding-left: 50rpx; + color: #894b11; + background: linear-gradient(to top right, #f6e2b7, #eab16a); + border-radius: 25rpx; +} + +.balance-title { + font-size: 45rpx; + font-weight: 500; + margin-bottom: 20rpx; +} + +.balance-amount { + font-size: 70rpx; + font-weight: 500; +} + +.balance-icon { + position: absolute; + right: 50rpx; + top: 50%; + transform: translateY(-50%); + width: 200rpx; + height: 200rpx; + border-radius: 20rpx; + display: flex; + align-items: center; + justify-content: center; +} + +.balance-icon image { + width: 200rpx; + height: 200rpx; +} + +/* 余额变动记录样式 */ +.records-container { + margin-top: 30rpx; + padding: 0 40rpx; + background-color: #ffffff; + padding: 25rpx; +} + +.records-title { + font-size: 36rpx; + font-weight: bold; + color: #222222; + margin-bottom: 30rpx; +} + +.records-list { + width: 100%; +} + +.record-item { + display: flex; + justify-content: space-between; + align-items: flex-start; + padding: 30rpx 0; + border-bottom: 1rpx solid #EEEEEE; +} + +.record-info { + flex: 1; +} + +.record-name { + font-size: 32rpx; + color: #222222; + margin-bottom: 10rpx; +} + +.record-time { + font-size: 26rpx; + color: #999999; +} + +.record-amount { + text-align: right; +} + +.amount-sign { + font-size: 28rpx; +} + +.amount-value { + font-size: 36rpx; + font-weight: bold; +} + +.positive { + color: #51c651; +} + +.negative { + color: #FF4444; +} + +.record-balance { + font-size: 26rpx; + color: #999999; + margin-top: 10rpx; +} \ No newline at end of file diff --git a/packages/user/wallet/index.vue b/packages/user/wallet/index.vue new file mode 100644 index 00000000..73f1f582 --- /dev/null +++ b/packages/user/wallet/index.vue @@ -0,0 +1,106 @@ + + + \ No newline at end of file diff --git a/pages.json b/pages.json index ea2deaa4..34b29fc1 100644 --- a/pages.json +++ b/pages.json @@ -435,6 +435,13 @@ { "path": "customerService/index", "style": {} + }, + { + "path": "wallet/index", + "style": { + "navigationBarBackgroundColor": "#fff", + "navigationStyle": "custom" + } } ] }, diff --git a/pages/user/index.vue b/pages/user/index.vue index 6eb28458..05ab2e3d 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -24,7 +24,7 @@ - + @@ -32,11 +32,11 @@ 0.00 繁华币 - + -