Sfoglia il codice sorgente

修改项目详情

zs 7 mesi fa
parent
commit
4203b63621
1 ha cambiato i file con 12 aggiunte e 12 eliminazioni
  1. 12 12
      src/views/detail/projectDetail.vue

+ 12 - 12
src/views/detail/projectDetail.vue

@@ -91,17 +91,16 @@
         <div class="info_3">
           <div class="right_1">
             <div class="title">
-              <div class="title_1">专家推荐</div>
+              <div class="title_1">成果推荐</div>
               <div class="title_2" @click="toMore('0')">更多></div>
             </div>
             <div class="content_2">
-              <div class="list" v-for="(item, index) in expertList" :key="index" @click="toView(item, '0')">
+              <div class="list" v-for="(item, index) in achievementList" :key="index" @click="toView(item, '0')">
                 <div class="name">
                   <el-image class="image" :src="liIcon" fit="fill"></el-image>
                   <span>{{ item.name || '暂无' }}</span>
                 </div>
-                <span>{{ item.title || '暂无' }}</span>
-                <span>{{ item.industry || '暂无' }}</span>
+                <span>{{ item.source || '暂无' }}</span>
               </div>
             </div>
           </div>
@@ -134,10 +133,10 @@ import biao_3 from '/images/biao_3.png'
 
 // 接口
 import { ProjectStore } from '@/store/api/platform/project'
-import { ExpertStore } from '@/store/api/user/expert'
+import { AchievementStore } from '@/store/api/platform/achievement'
 import { ContactApplyStore } from '@/store/api/user/contactApply'
 const store = ProjectStore()
-const expertStore = ExpertStore()
+const achievementStore = AchievementStore()
 const contactApplyStore = ContactApplyStore()
 import { UserStore } from '@/store/user'
 const userStore = UserStore()
@@ -156,14 +155,14 @@ const num = ref(Math.floor(Math.random() * 8))
 const route = useRoute()
 const router = useRouter()
 const info = ref({})
-const expertList = ref([])
+const achievementList = ref([])
 const projectList = ref([])
 
 // 请求
 onMounted(async () => {
   loading.value = true
   await search()
-  await searchExpert()
+  await searchAchievement()
   await searchAchieve()
   loading.value = false
 })
@@ -179,10 +178,10 @@ const searchAchieve = async () => {
   const res = await store.list(data)
   if (res.errcode == '0') projectList.value = res.data
 }
-const searchExpert = async () => {
+const searchAchievement = async () => {
   const data = { skip: 0, limit: 3, status: '1' }
-  const res = await expertStore.query(data)
-  if (res.errcode == '0') expertList.value = res.data
+  const res = await achievementStore.query(data)
+  if (res.errcode == '0') achievementList.value = res.data
 }
 // 查看
 const truncateString = (str, length) => {
@@ -195,7 +194,7 @@ const truncateString = (str, length) => {
 }
 // 查看详情
 const toView = (item, type) => {
-  if (type == '0') router.push({ path: '/expert/detail', query: { id: item.id || item._id } })
+  if (type == '0') router.push({ path: '/achievement/detail', query: { id: item.id || item._id } })
   else if (type == '1')
     router.push({ path: '/project/detail', query: { id: item.id || item._id } }).then(() => {
       // 重新刷新页面
@@ -497,6 +496,7 @@ const toChat = () => {
             border-bottom: 1px solid #e1e6f0;
             transition: 0.3s ease-in-out;
             font-size: $global-font-size-16;
+            cursor: default;
             .name {
               display: flex;
               align-items: center;