From 212595647815b2f08152abebd5bd1363631ff379 Mon Sep 17 00:00:00 2001 From: hajimi Date: Mon, 3 Aug 2026 03:47:22 +0800 Subject: [PATCH] style: fill user center viewport --- uniapp/src/pages/user/user.vue | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/uniapp/src/pages/user/user.vue b/uniapp/src/pages/user/user.vue index 3a7c706..4406c7e 100644 --- a/uniapp/src/pages/user/user.vue +++ b/uniapp/src/pages/user/user.vue @@ -253,6 +253,8 @@ const handleMenuTap = (item: any) => { .user-page { height: 100vh; overflow: hidden; + display: flex; + flex-direction: column; background: #fff; color: #111827; padding-bottom: 0; @@ -401,10 +403,15 @@ const handleMenuTap = (item: any) => { } .user-content { + flex: 1; + min-height: 0; padding: 0 24rpx; + display: flex; + flex-direction: column; } .user-section { + flex-shrink: 0; margin-bottom: 12rpx; padding: 14rpx 10rpx 10rpx; border-radius: 16rpx; @@ -422,7 +429,21 @@ const handleMenuTap = (item: any) => { } .user-section:last-child { + flex: 1; + min-height: 0; margin-bottom: 0; + display: flex; + flex-direction: column; +} + +.user-section:last-child .user-list { + flex: 1; + display: flex; + flex-direction: column; +} + +.user-section:last-child .user-list__item { + flex: 1; } .user-benefits {