fix(fe): 修切换条头像撑大 chip;我的页菜单只留设置
- pet-switch 头像 flex:none 锁死 52rpx,真机上图片固有尺寸不再撑大 chip - 我的毛孩子去掉「+添加」(首页切换条可加) - 菜单区只留「设置」,档案/计划/多宠都从首页和宠物卡进 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,5 +3,7 @@
|
|||||||
}
|
}
|
||||||
.pet-switch .pet-chip{margin-right:20rpx}
|
.pet-switch .pet-chip{margin-right:20rpx}
|
||||||
.pet-switch .pet-chip:last-child{margin-right:0}
|
.pet-switch .pet-chip:last-child{margin-right:0}
|
||||||
.mini-avatar{overflow:hidden}
|
/* flex 子项默认 min-width:auto,图片的固有尺寸(320×240)会把 chip 撑大,
|
||||||
.mini-avatar-img{width:100%;height:100%;display:block}
|
真机比模拟器更明显。flex:none 锁死成 app.wxss 里定的 52rpx 见方 */
|
||||||
|
.mini-avatar{overflow:hidden;flex:none}
|
||||||
|
.mini-avatar-img{width:52rpx;height:52rpx;display:block}
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
<view class="card">
|
<view class="card">
|
||||||
<view class="section-head">
|
<view class="section-head">
|
||||||
<view class="sh-title">我的毛孩子</view>
|
<view class="sh-title">我的毛孩子</view>
|
||||||
<view class="link" bindtap="onAddPet">+ 添加</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view wx:for="{{pets}}" wx:key="id" class="pet-row" data-id="{{item.id}}" bindtap="onPickPet">
|
<view wx:for="{{pets}}" wx:key="id" class="pet-row" data-id="{{item.id}}" bindtap="onPickPet">
|
||||||
<view class="pet-emoji">
|
<view class="pet-emoji">
|
||||||
@@ -30,21 +29,8 @@
|
|||||||
<view wx:if="{{!pets.length}}" class="empty">还没有毛孩子,先建一份档案</view>
|
<view wx:if="{{!pets.length}}" class="empty">还没有毛孩子,先建一份档案</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 常用入口。设置类的都收进设置页了,这里只留高频的 -->
|
<!-- 档案/计划/多宠都从首页和宠物卡进,这里只留设置 -->
|
||||||
<view class="profile-list">
|
<view class="profile-list">
|
||||||
<view class="profile-row" bindtap="goPetForm">
|
|
||||||
<view class="pr-ic"><pt-icon name="user" size="{{34}}"></pt-icon></view>
|
|
||||||
<text class="pr-label">宠物档案</text><view class="pr-arrow"><pt-icon name="next" size="{{28}}"></pt-icon></view>
|
|
||||||
</view>
|
|
||||||
<view class="profile-row" bindtap="goPlan">
|
|
||||||
<view class="pr-ic"><pt-icon name="plan" size="{{34}}"></pt-icon></view>
|
|
||||||
<text class="pr-label">养护计划</text><view class="pr-arrow"><pt-icon name="next" size="{{28}}"></pt-icon></view>
|
|
||||||
</view>
|
|
||||||
<view class="profile-row" data-type="managePets" bindtap="openSheet">
|
|
||||||
<view class="pr-ic"><pt-icon name="community" size="{{34}}"></pt-icon></view>
|
|
||||||
<text class="pr-label">多宠物管理</text><text class="pr-val">{{card.stats.pet_count || 0}} 只</text>
|
|
||||||
<view class="pr-arrow"><pt-icon name="next" size="{{28}}"></pt-icon></view>
|
|
||||||
</view>
|
|
||||||
<view class="profile-row" bindtap="goSettings">
|
<view class="profile-row" bindtap="goSettings">
|
||||||
<view class="pr-ic"><pt-icon name="settings" size="{{34}}"></pt-icon></view>
|
<view class="pr-ic"><pt-icon name="settings" size="{{34}}"></pt-icon></view>
|
||||||
<text class="pr-label">设置</text><view class="pr-arrow"><pt-icon name="next" size="{{28}}"></pt-icon></view>
|
<text class="pr-label">设置</text><view class="pr-arrow"><pt-icon name="next" size="{{28}}"></pt-icon></view>
|
||||||
|
|||||||
Reference in New Issue
Block a user