Files
sundynix-pets/pets-fe/pages/pets/pets.wxml
T
Blizzard c2b51f96e0
ci-cd / verify (push) Successful in 6s
ci-cd / deploy (push) Skipped
Fix capsule-aligned navigation and refresh mini program typography
2026-10-04 10:30:17 +08:00

44 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<page-layout id="page-layout" title="我的毛孩子">
<view class="screen">
<view class="family">
<view>
<text>每一位家人,都值得被好好照顾</text>
<strong>每一只都有自己的故事</strong>
</view>
<image src="/assets/corgi-family-five.png" mode="aspectFit" />
</view>
<view class="row">
<text class="section-title">宠物档案 · {{pets.length}}</text>
<text class="add" bindtap="add">+ 添加</text>
</view>
<view
wx:for="{{pets}}"
wx:key="id"
class="card pet"
data-id="{{item.id}}"
bindtap="edit"
>
<view class="pet-avatar">
<image
wx:if="{{item.avatar_url}}"
src="{{item.avatar_url}}"
mode="aspectFill"
/>
<app-icon wx:else size="70" />
</view>
<view class="pet-info">
<strong>{{item.name}}</strong>
<text>
{{item.breed||'小可爱'}} ·
{{item.gender==='male'?'男孩':item.gender==='female'?'女孩':'未知'}}
</text>
<text>体重 {{item.weight_kg||'—'}} kg</text>
</view>
<text class="arrow">›</text>
</view>
<view wx:if="{{!pets.length}}" class="empty">给第一只狗狗建个档案吧 </view>
<button class="primary add-button" bindtap="add">+ 新建宠物档案</button>
</view>
</page-layout>
<tab-bar current="/pages/pets/pets" />