This commit is contained in:
2023-06-19 17:25:50 +08:00
parent ef579def81
commit eb19778bd0
41 changed files with 2788 additions and 186 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="box">
<div class="wrap">
<div class="img" v-if="data.image">
<div v-if="data.image" class="img">
<el-image :src="data.image" alt="" style="height: 150px" />
</div>
<div v-else-if="data.type == 1" class="type">产品</div>
@ -62,9 +62,10 @@
// import { maturityOptions } from "@/utils/parameter";
import wordcloud from "./wordcloud.vue";
// import collectAndVisit from "./collectAndVisit.vue";
import { maturityOptions } from "@/utils/parameter.js";
import { useRoute, useRouter } from "vue-router";
import { toRefs } from "vue";
import { addViewHistory } from "@/utils/view_history";
const route = useRoute();
const router = useRouter();
@ -75,7 +76,9 @@ const props = defineProps({
},
});
const { data } = toRefs(props);
function handleDetail(id) {
addViewHistory(2, id, data.value.title);
console.log(data.value);
let path;
if (data.value.type == 1) {
@ -114,9 +117,11 @@ function createdData(arr) {
background: #ffffff;
padding: 20px;
box-sizing: border-box;
.wrap {
display: flex;
flex-direction: row;
.type {
width: 200px;
height: 150px;
@ -135,10 +140,12 @@ function createdData(arr) {
// height: 100%;
// }
}
.img {
width: 200px;
height: 150px;
margin-right: 10px;
img {
display: block;
margin: 0;
@ -146,16 +153,19 @@ function createdData(arr) {
height: 100%;
}
}
.keywords {
width: 129px;
height: 129px;
}
.content {
flex: 1;
overflow: hidden;
.labelList {
overflow: hidden;
div {
padding: 2px 4px;
float: left;
@ -176,6 +186,7 @@ function createdData(arr) {
font-weight: 400;
color: #666666;
margin: 10px 0;
span {
font-size: 16px;
font-family: Source Han Sans CN;
@ -183,6 +194,7 @@ function createdData(arr) {
color: #333;
}
}
.tit {
overflow: hidden;
text-overflow: ellipsis;

View File

@ -73,6 +73,8 @@
import logo from "@/assets/logo/avatar.png";
import wordcloud from "./wordcloud.vue";
import { useRoute, useRouter } from "vue-router";
import { addViewHistory } from "@/utils/view_history";
import { toRefs } from "vue";
// import collectAndVisit from "./collectAndVisit.vue";
const route = useRoute();
@ -83,8 +85,9 @@ const props = defineProps({
required: true,
},
});
const { data } = toRefs(props);
function handleDetail(id) {
addViewHistory(4, id, data.value.name);
let routeData = router.resolve({
path: `/searchList/expert/detail/${id}`,
query: {

View File

@ -45,10 +45,10 @@
</template>
<script setup>
import { maturityOptions } from "@/utils/parameter";
import wordcloud from "./wordcloud.vue";
import collectAndVisit from "./collectAndVisit.vue";
import { useRoute, useRouter } from "vue-router";
import { addViewHistory } from "@/utils/view_history";
const route = useRoute();
const router = useRouter();
const props = defineProps({
@ -57,8 +57,9 @@ const props = defineProps({
required: true,
},
});
const { data } = toRefs(props);
function handleDetail(id) {
addViewHistory(1, id, data.value.title);
let routeData = router.resolve({
path: `/searchList/patent/detail/${id}`,
query: {
@ -88,9 +89,11 @@ function createdData(arr) {
background: #ffffff;
padding: 20px;
box-sizing: border-box;
.wrap {
display: flex;
flex-direction: row;
.type {
width: 200px;
height: 150px;
@ -109,16 +112,19 @@ function createdData(arr) {
// height: 100%;
// }
}
.keywords {
width: 129px;
height: 129px;
}
.content {
flex: 1;
overflow: hidden;
.labelList {
overflow: hidden;
div {
padding: 2px 4px;
float: left;
@ -139,6 +145,7 @@ function createdData(arr) {
font-weight: 400;
color: #666666;
margin: 10px 0;
span {
font-size: 16px;
font-family: Source Han Sans CN;
@ -146,6 +153,7 @@ function createdData(arr) {
color: #333;
}
}
.tit {
overflow: hidden;
text-overflow: ellipsis;