From d454b7cab993ade636c17df9fad4432bb9129678 Mon Sep 17 00:00:00 2001 From: H1d3rOne Date: Sun, 8 Mar 2026 04:37:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dvip-tag=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除绝对定位,改为flex布局 - vip-tag作为user-name-row的子元素正常显示 - 用户名和会员标签顶端对齐 --- xuan-deduct-uniapp/src/pages/mine/mine.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/xuan-deduct-uniapp/src/pages/mine/mine.vue b/xuan-deduct-uniapp/src/pages/mine/mine.vue index 484d06b..4372cbe 100644 --- a/xuan-deduct-uniapp/src/pages/mine/mine.vue +++ b/xuan-deduct-uniapp/src/pages/mine/mine.vue @@ -163,11 +163,10 @@ page { } .user-name-row { - display: inline-flex; + display: flex; align-items: flex-start; justify-content: center; - position: relative; - padding-right: 80rpx; + margin-bottom: 8rpx; } .username { @@ -178,9 +177,7 @@ page { } .vip-tag { - position: absolute; - top: 0; - right: 0; + margin-left: 8rpx; padding: 1rpx 8rpx; border-radius: 12rpx; line-height: 1.2; @@ -207,7 +204,7 @@ page { } .vip-tag-text { - font-size: 18rpx; + font-size: 16rpx; font-weight: 500; color: #ffffff; }