优化详情页功能及API接口参数

This commit is contained in:
wangqiao
2025-09-26 21:47:51 +08:00
parent 972bd2c8b8
commit 6c85256b96
4 changed files with 18 additions and 15 deletions

View File

@ -146,7 +146,7 @@
<div class="h-[20px]">
<img src="~/assets/images/user4.png" alt="fans" class="w-[80%] rounded-full vertical-top" />
</div>
<div class="relative top-[-3px] ml-[8px] text-[14px] text-[#666] font-normal">粉丝: {{ userInfo.fansCount || 0 }}</div>
<div class="relative top-[-3px] ml-[8px] text-[14px] text-[#666] font-normal">发帖数: {{ userInfo.postsNum || 0 }}</div>
</div>
</div>
@ -361,6 +361,7 @@
comments: value,
projectId: detail.value?.projectId,
drawId: detail.value?.id,
type: detail.value?.type,
}).then((res) => {
if (res.code === 0) {
ElMessage.success('举报成功')
@ -380,6 +381,7 @@
: await createContent({
projectId: detail.value?.projectId,
drawId: detail.value?.id,
type: detail.value?.type,
})
if (res.code === 0) {
ElMessage.success(`${detail.value?.favoriteId ? '取消' : '收藏'}成功`)