4c9fbc4a88
- 养宠天数原来按建档日算,重新建档会被重置成 1(和首页「第869天」矛盾); 改成按最早那只的到家日算(无到家日退建档日),和首页口径一致 - 「我的」页 profile-head 传 hideWall,藏掉社交宠物墙(下面「我的毛孩子」 卡更详细,重复了);宠物墙只在别人访问/预览时出现,受「展示我的毛孩子」 开关控制,语义更对(那开关本来就是给别人看的) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
48 lines
2.2 KiB
Plaintext
48 lines
2.2 KiB
Plaintext
<nav-bar title="我的"></nav-bar>
|
||
|
||
<scroll-view class="page-scroll" scroll-y="{{true}}" enhanced="{{true}}" show-scrollbar="{{false}}">
|
||
<view class="page-body tab-nofab">
|
||
<!-- 和「宠友主页」同一个组件。自己看到的就是别人看到的,装扮才有意义 -->
|
||
<profile-head card="{{card}}" hide-wall="{{true}}" bind:relations="goRelations"
|
||
bind:decorate="goDecorate" bind:pet="onPickPet"></profile-head>
|
||
|
||
<view class="btn btn-ghost btn-block me-preview" bindtap="previewPublic">
|
||
<pt-icon name="user" size="{{30}}"></pt-icon>看看别人眼里的我
|
||
</view>
|
||
|
||
<!-- 我的毛孩子 -->
|
||
<view class="card">
|
||
<view class="section-head">
|
||
<view class="sh-title">我的毛孩子</view>
|
||
</view>
|
||
<view wx:for="{{pets}}" wx:key="id" class="pet-row" data-id="{{item.id}}" bindtap="onPickPet">
|
||
<view class="pet-emoji">
|
||
<image wx:if="{{item.avatar_url}}" class="pet-emoji-img" src="{{item.avatar_url}}" mode="aspectFill"></image>
|
||
<block wx:else>{{item.emoji}}</block>
|
||
</view>
|
||
<view class="pet-info">
|
||
<view class="tt-b">{{item.name}}</view>
|
||
<view class="tt-p">{{item.age}}|{{item.weight}}|{{item.stage}}</view>
|
||
</view>
|
||
<view class="pr-arrow"><pt-icon name="next" size="{{28}}"></pt-icon></view>
|
||
</view>
|
||
<view wx:if="{{!pets.length}}" class="empty">还没有毛孩子,先建一份档案</view>
|
||
</view>
|
||
|
||
<!-- 档案/计划/多宠都从首页和宠物卡进,这里留「我的帖子」+ 设置 -->
|
||
<view class="profile-list">
|
||
<view class="profile-row" bindtap="goMyPosts">
|
||
<view class="pr-ic"><pt-icon name="community" size="{{34}}"></pt-icon></view>
|
||
<text class="pr-label">我的帖子</text><text class="pr-val">看审核状态</text>
|
||
<view class="pr-arrow"><pt-icon name="next" size="{{28}}"></pt-icon></view>
|
||
</view>
|
||
<view class="profile-row" bindtap="goSettings">
|
||
<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>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</scroll-view>
|
||
|
||
<bottom-sheet show="{{sheetShow}}" type="{{sheetType}}" bind:close="closeSheet"></bottom-sheet>
|