fix(companion): 去除合成虚拟大神的假评分/价格/服务(改为诚实档案)

- getCompanionById 对非真实大神档案不再虚构 rating/orderCount/price/voice/服务包,状态为休息中、审核未申请,并返回 isCompanion=false

- 小程序大神详情页对非大神档案隐藏服务与预约入口,显示'该用户尚未认证为大神';移除页面假默认值

- 新增回归护栏 companion-profile-honesty.spec.ts(82 套件/619 用例全绿)
这个提交包含在:
xcbyy
2026-10-19 09:19:15 +08:00
父节点 f1f8952e97
当前提交 85e00e296f
共有 4 个文件被更改,包括 152 次插入 和 52 次删除

查看文件

@@ -70,8 +70,8 @@
<text class="bio-text">{{ expert.bio }}</text>
</view>
<!-- 服务项目选择 -->
<view class="section-card">
<!-- 服务项目选择(仅真实大神展示) -->
<view class="section-card" v-if="isCompanion">
<view class="sec-title">服务项目</view>
<view class="service-list">
<view
@@ -176,11 +176,16 @@
<image class="action-svg" :src="ICONS.shield" mode="aspectFit" />
<text class="action-text">举报</text>
</view>
<view class="price-summary">
<text class="summary-label">当前选定:</text>
<text class="summary-price">¥{{ currentSelectedService ? currentSelectedService.price : expert.price }}</text>
<template v-if="isCompanion">
<view class="price-summary">
<text class="summary-label">当前选定:</text>
<text class="summary-price">¥{{ currentSelectedService ? currentSelectedService.price : expert.price }}</text>
</view>
<button class="btn-book btn-active" @click="goToOrder">立即预约</button>
</template>
<view v-else class="price-summary">
<text class="summary-label">该用户尚未认证为大神,暂不可预约</text>
</view>
<button class="btn-book btn-active" @click="goToOrder">立即预约</button>
</view>
<!-- 举报不良行为弹窗 -->
@@ -297,23 +302,25 @@ const expert = ref({
nickname: '同城陪伴师',
avatar: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=300',
gender: 'female',
levelTag: '平台认证',
levelTag: '',
game: '同城陪伴',
rankTag: '专业级',
city: '北京市 · 朝阳/海淀',
rating: 5.0,
orderCount: 86,
isOnline: true,
bio: '专业同城生活陪伴,健康阳光公开。',
voiceDuration: 15,
price: 68,
services: buildDefaultServices('同城陪伴', 68),
rankTag: '',
city: '',
rating: 0,
orderCount: 0,
isOnline: false,
bio: '',
voiceDuration: 0,
price: 0,
services: [],
photos: [
'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400',
'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=400'
],
reviews: []
});
// 是否为真实大神档案(非合成的普通用户资料)
const isCompanion = computed(() => expert.value.isCompanion !== false);
const selectedServiceId = ref('srv_1');
const isPlayingVoice = ref(false);
let currentExpertTargetId = null;