From e2ce56680a017a257a759200d9d654e56c5b8f05 Mon Sep 17 00:00:00 2001 From: Blizzard Date: Thu, 30 Jul 2026 17:20:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(fe):=20=E4=BF=AE=E5=88=87=E6=8D=A2=E6=9D=A1?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E6=92=91=E5=A4=A7=20chip=EF=BC=9B=E6=88=91?= =?UTF-8?q?=E7=9A=84=E9=A1=B5=E8=8F=9C=E5=8D=95=E5=8F=AA=E7=95=99=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pet-switch 头像 flex:none 锁死 52rpx,真机上图片固有尺寸不再撑大 chip - 我的毛孩子去掉「+添加」(首页切换条可加) - 菜单区只留「设置」,档案/计划/多宠都从首页和宠物卡进 Co-Authored-By: Claude Opus 5 --- pets-fe/components/pet-switch/pet-switch.wxss | 6 ++++-- pets-fe/pages/mine/mine.wxml | 16 +--------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/pets-fe/components/pet-switch/pet-switch.wxss b/pets-fe/components/pet-switch/pet-switch.wxss index 7614a6e..1340857 100644 --- a/pets-fe/components/pet-switch/pet-switch.wxss +++ b/pets-fe/components/pet-switch/pet-switch.wxss @@ -3,5 +3,7 @@ } .pet-switch .pet-chip{margin-right:20rpx} .pet-switch .pet-chip:last-child{margin-right:0} -.mini-avatar{overflow:hidden} -.mini-avatar-img{width:100%;height:100%;display:block} +/* flex 子项默认 min-width:auto,图片的固有尺寸(320×240)会把 chip 撑大, + 真机比模拟器更明显。flex:none 锁死成 app.wxss 里定的 52rpx 见方 */ +.mini-avatar{overflow:hidden;flex:none} +.mini-avatar-img{width:52rpx;height:52rpx;display:block} diff --git a/pets-fe/pages/mine/mine.wxml b/pets-fe/pages/mine/mine.wxml index 6b29be9..ea1d2ad 100644 --- a/pets-fe/pages/mine/mine.wxml +++ b/pets-fe/pages/mine/mine.wxml @@ -14,7 +14,6 @@ 我的毛孩子 - + 添加 @@ -30,21 +29,8 @@ 还没有毛孩子,先建一份档案 - + - - - 宠物档案 - - - - 养护计划 - - - - 多宠物管理{{card.stats.pet_count || 0}} 只 - - 设置