优化详情页功能及API接口参数
This commit is contained in:
@ -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 ? '取消' : '收藏'}成功`)
|
||||
|
||||
Reference in New Issue
Block a user