feat: 新增关注列表与个人主页接口,新增用户主页与支付结果页面

这个提交包含在:
2026-10-23 18:49:30 +08:00
父节点 1b78c8359f
当前提交 c2b2f03202
共有 19 个文件被更改,包括 3922 次插入 和 3980 次删除

查看文件

@@ -118,8 +118,8 @@
</view>
</view>
<!-- 发布者专区 -->
<view class="fc-card detail__publisher">
<!-- 发布者专区(普通个人发布时展示个人档案,商家发布由下方官方门店卡片承载,避免信息重复) -->
<view v-if="!isMerchantPost" class="fc-card detail__publisher" @click="goUserDetail">
<image
v-if="post.publisher && post.publisher.avatar"
class="detail__avatar detail__avatar--img"
@@ -135,10 +135,10 @@
<text v-if="post.publisher && post.publisher.verified" class="detail__verified">已认证</text>
</view>
<text class="detail__publisher-sub">
{{ post.publisher && post.publisher.isMerchant ? '商家用户' : '个人用户' }} · {{ timeText }}发布
个人用户 · {{ timeText }}发布
</text>
</view>
<view v-if="!isSelf" class="detail__follow" :class="{ 'detail__follow--active': followed }" @click="toggleFollow">
<view v-if="!isSelf" class="detail__follow" :class="{ 'detail__follow--active': followed }" @click.stop="toggleFollow">
<text>{{ followed ? '已关注' : '+ 关注' }}</text>
</view>
</view>
@@ -1004,6 +1004,16 @@ export default {
/**
* 导航或复制地址
*/
/**
* 跳转至个人用户公开主页
*/
goUserDetail() {
const uid = (this.post.publisher && this.post.publisher.id) || this.post.userId || this.post.user_id
if (!uid) return
uni.navigateTo({
url: '/pages/user/detail?id=' + uid,
})
},
/**
* 跳转至商家店铺详情主页
*/