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