优化工具箱详情页评论功能及API接口
This commit is contained in:
@ -13,8 +13,8 @@
|
||||
>
|
||||
<div class="text-[20px] text-[#333333] font-normal"> {{ detail?.title }}</div>
|
||||
<div class="flex items-center">
|
||||
<img :src="detail?.ownedUserIdInfo?.avatar" alt="" srcset="" class="h-[30px] w-[30px] rd-[50%]" />
|
||||
<span class="ml-[12px] color-[#999999]">by {{ detail?.ownedUserIdInfo?.nickName }}</span>
|
||||
<img :src="detail?.ownedUserAvatar" alt="" srcset="" class="h-[30px] w-[30px] rd-[50%]" />
|
||||
<span class="ml-[8px] color-[#999999]">by {{ detail?.ownedUserName }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -81,10 +81,10 @@
|
||||
</div>
|
||||
|
||||
<!-- 评论 -->
|
||||
<!-- <CommentSection :relation-id="detail!.id" :project-id="detail!.projectId" /> -->
|
||||
<CommentSection :relation-id="detail!.id" />
|
||||
</div>
|
||||
<div class="ml-[22px]">
|
||||
<div class="box-border min-h-[269px] w-[397px] border border-[#EEEEEE] rounded-[12px] border-solid bg-[#FFFFFF] pa-[22px]">
|
||||
<div class="box-border min-h-[180px] w-[397px] border border-[#EEEEEE] rounded-[12px] border-solid bg-[#FFFFFF] pa-[22px]">
|
||||
<div class="mb-[10px]">工具ID: {{ detail?.no }}</div>
|
||||
<!-- <div class="mb-[10px]">文件大小:{{ detail?.filesInfo?.fileSize || 0 }} </div> -->
|
||||
<!-- <div class="mb-10px">图纸版本:{{ detail.editionsName }} </div> -->
|
||||
@ -167,10 +167,10 @@
|
||||
import CardPicture from '~/components/kl-card-picture/index.vue'
|
||||
import { getDictTree } from '~/api/home/index'
|
||||
import { get } from '@/api/toolbox/index'
|
||||
import { getDetail, getRelationRecommend, report, getUserInfo, getMainWork, createContent, createUserProject, deleteProject } from '~/api/drawe-detail/index'
|
||||
import { getDetail, getRelationRecommend, report, getToolUserInfo, getMainWork, createContent, createUserProject, deleteProject } from '~/api/drawe-detail/index'
|
||||
import KlNavTab from '~/components/kl-nav-tab/index.vue'
|
||||
import ThumBnail from './components/swiper.vue'
|
||||
// import CommentSection from '~/components/comment-section/index.vue'
|
||||
import CommentSection from '~/components/comment-section/index.vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import useUserStore from '~/stores/user'
|
||||
const message = useMessage()
|
||||
@ -198,7 +198,7 @@
|
||||
|
||||
const [{ data: mainWork }, { data: userInfo }] = await Promise.all([
|
||||
getMainWork({ id: detail.value?.id, limit: 10, memberId: detail.value?.ownedUserId }),
|
||||
getUserInfo({ id: detail.value?.ownedUserId }),
|
||||
getToolUserInfo({ id: detail.value?.id }),
|
||||
])
|
||||
|
||||
// 获取最新发布
|
||||
|
||||
Reference in New Issue
Block a user