f417962453
- 删除页面:community(社区)、comments(评论)、user(他人主页)、relations(关注/粉丝) - app.json 去掉四个页面注册与社区 tab;tabBar 只剩 首页/报告/我的 - bottom-sheet 移除发帖(createPost)与评论(comments)整块 UI 及对应 JS/数据/常量 - profile-head 移除帖子/关注/粉丝社交数与关注按钮 - mine 去掉「我的帖子」「别人眼里的我」及关注/粉丝跳转 - api.js 移除 posts/comments/follow/relations 等社区接口(保留 userCard 供我的页头部) 说明:后端社区接口未动(微信审核只看小程序包,前端已无任何引用); 完整社区代码保留在 feat/dev 分支与 git 历史。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
44 lines
1.8 KiB
Plaintext
44 lines
1.8 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}}" hide-social="{{true}}"
|
||
bind:decorate="goDecorate" bind:pet="onPickPet"></profile-head>
|
||
|
||
<view class="me-actions">
|
||
<view class="btn btn-ghost me-act" bindtap="goDecorate">
|
||
<pt-icon name="edit" size="{{28}}"></pt-icon>装扮主页
|
||
</view>
|
||
</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="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>
|