add: 算法对比--路由跳转

This commit is contained in:
guoyue 2022-06-25 11:12:54 +08:00
parent 7339d16220
commit 8f8387c80d
1 changed files with 615 additions and 617 deletions

View File

@ -11,70 +11,39 @@
</div> </div>
<div class="condition" :key="showKey"> <div class="condition" :key="showKey">
<ul> <ul>
<li <li v-for="item in selList" :key="item.value" @click="changeCondition(item.value)" v-show="item.show">
v-for="item in selList"
:key="item.value"
@click="changeCondition(item.value)"
v-show="item.show"
>
{{ item.name }} {{ item.name }}
<span <span class="arrow" :class="item.value == selData ? 'down' : ''"></span>
class="arrow"
:class="item.value == selData ? 'down' : ''"
></span>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
<div <div class="result-list" v-for="(item, index) in resourceList.data" :key="item.index">
class="result-list"
v-for="(item, index) in resourceList.data"
:key="item.index"
>
<div class="item"> <div class="item">
<div <div class="left" :class="
class="left"
:class="
item.type == '应用资源' item.type == '应用资源'
? 'yyzy' ? 'yyzy'
: item.applicationType == '智能算法' : item.applicationType == '智能算法'
? 'znsf' ? 'znsf'
: 'gis' : 'gis'
" " v-if="selectCardsname !== '基础设施'"></div>
v-if="selectCardsname !== '基础设施'"
></div>
<div class="left jcss" v-else></div> <div class="left jcss" v-else></div>
<div class="right"> <div class="right">
<div class="header"> <div class="header">
<span style="display: flex; align-items: center"> <span style="display: flex; align-items: center">
{{ item.name }} {{ item.name }}
<svg <svg t="1652322568870" class="icon" viewBox="0 0 3072 1024" version="1.1"
t="1652322568870" xmlns="http://www.w3.org/2000/svg" p-id="3062" width="40" height="40" v-if="item.applyState == '通过'"
class="icon" style="margin-left: 10px">
viewBox="0 0 3072 1024"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
p-id="3062"
width="40"
height="40"
v-if="item.applyState == '通过'"
style="margin-left: 10px"
>
<path <path
d="M2958.222222 0a113.777778 113.777778 0 0 1 113.777778 113.777778v796.444444a113.777778 113.777778 0 0 1-113.777778 113.777778H500.053333a113.777778 113.777778 0 0 1-85.617777-38.798222L32.824889 549.432889a56.888889 56.888889 0 0 1 0-74.922667L414.435556 38.798222A113.777778 113.777778 0 0 1 499.996444 0H2958.222222z m0 56.888889H500.053333a56.888889 56.888889 0 0 0-42.837333 19.399111L75.605333 512l381.610667 435.712a56.888889 56.888889 0 0 0 42.780444 19.399111H2958.222222a56.888889 56.888889 0 0 0 56.888889-56.888889V113.777778a56.888889 56.888889 0 0 0-56.888889-56.888889z" d="M2958.222222 0a113.777778 113.777778 0 0 1 113.777778 113.777778v796.444444a113.777778 113.777778 0 0 1-113.777778 113.777778H500.053333a113.777778 113.777778 0 0 1-85.617777-38.798222L32.824889 549.432889a56.888889 56.888889 0 0 1 0-74.922667L414.435556 38.798222A113.777778 113.777778 0 0 1 499.996444 0H2958.222222z m0 56.888889H500.053333a56.888889 56.888889 0 0 0-42.837333 19.399111L75.605333 512l381.610667 435.712a56.888889 56.888889 0 0 0 42.780444 19.399111H2958.222222a56.888889 56.888889 0 0 0 56.888889-56.888889V113.777778a56.888889 56.888889 0 0 0-56.888889-56.888889z"
fill="#d81e06" fill="#d81e06" p-id="3063"></path>
p-id="3063"
></path>
<path <path
d="M398.222222 398.222222a113.777778 113.777778 0 1 1 0 227.555556 113.777778 113.777778 0 0 1 0-227.555556z m0 56.888889a56.888889 56.888889 0 1 0 0 113.777778 56.888889 56.888889 0 0 0 0-113.777778z" d="M398.222222 398.222222a113.777778 113.777778 0 1 1 0 227.555556 113.777778 113.777778 0 0 1 0-227.555556z m0 56.888889a56.888889 56.888889 0 1 0 0 113.777778 56.888889 56.888889 0 0 0 0-113.777778z"
fill="#d81e06" fill="#d81e06" p-id="3064"></path>
p-id="3064"
></path>
<path <path
d="M1309.582222 491.064889v-273.066667h-505.173333v47.786667h455.338667v178.176h-378.88V342.926222h-49.152v358.4c0 55.978667 27.306667 84.650667 82.602666 84.650667h370.005334c28.672-1.365333 51.2-8.874667 66.218666-23.210667 16.384-17.749333 27.989333-68.266667 34.816-152.917333l-47.786666-15.018667-1.706667 26.737778c-4.664889 58.766222-12.970667 93.582222-24.917333 104.334222-10.24 8.192-23.893333 12.288-40.277334 12.288h-342.698666c-31.402667 0-47.104-15.701333-47.104-45.738666v-201.386667h428.714666z m430.08-307.2v102.4h-219.136v386.389333h48.469334v-46.421333h170.666666v178.858667h50.517334v-178.858667h167.936v41.642667h48.469333V286.264889h-216.405333v-102.4h-50.517334z m-170.666666 395.946667v-102.4h170.666666v102.4h-170.666666z m221.184 0v-102.4h167.936v102.4h-167.936z m-221.184-146.773334V332.003556h170.666666v101.034666h-170.666666z m221.184 0V332.003556h167.936v101.034666h-167.936z m733.866666-251.221333v44.373333h-165.205333v40.277334h165.205333v45.738666h-137.898666v39.594667h137.898666V398.222222h-184.32v40.96h417.792V398.222222h-186.368v-46.421333h144.725334v-39.594667h-144.725334v-45.738666h169.301334v-40.277334h-169.301334v-44.373333h-47.104z m-85.333333 429.397333h220.501333v49.834667h-220.501333v-49.834667z m220.501333-38.229333h-220.501333v-50.517333h220.501333v50.517333z m-220.501333 126.293333h220.501333v38.912c0 15.701333-8.874667 23.893333-25.258666 23.893334l-54.613334-2.048 11.605334 43.690666h57.344c38.229333 0 58.026667-18.432 58.026666-55.296v-266.24H2391.608889V807.822222h47.104v-108.544z m-222.549333-509.952l-34.816 33.450667c49.152 36.864 88.064 71.68 116.736 104.448l33.450666-34.133333a795.079111 795.079111 0 0 0-115.370666-103.765334z m-82.602667 201.386667h144.725333v299.690667c20.48-19.114667 41.642667-40.277333 64.853334-64.170667l12.970666 51.882667a923.932444 923.932444 0 0 1-121.514666 105.813333l-19.114667-43.690667c10.24-9.557333 15.701333-19.797333 15.701333-31.402666V437.816889h-97.621333v-47.104z" d="M1309.582222 491.064889v-273.066667h-505.173333v47.786667h455.338667v178.176h-378.88V342.926222h-49.152v358.4c0 55.978667 27.306667 84.650667 82.602666 84.650667h370.005334c28.672-1.365333 51.2-8.874667 66.218666-23.210667 16.384-17.749333 27.989333-68.266667 34.816-152.917333l-47.786666-15.018667-1.706667 26.737778c-4.664889 58.766222-12.970667 93.582222-24.917333 104.334222-10.24 8.192-23.893333 12.288-40.277334 12.288h-342.698666c-31.402667 0-47.104-15.701333-47.104-45.738666v-201.386667h428.714666z m430.08-307.2v102.4h-219.136v386.389333h48.469334v-46.421333h170.666666v178.858667h50.517334v-178.858667h167.936v41.642667h48.469333V286.264889h-216.405333v-102.4h-50.517334z m-170.666666 395.946667v-102.4h170.666666v102.4h-170.666666z m221.184 0v-102.4h167.936v102.4h-167.936z m-221.184-146.773334V332.003556h170.666666v101.034666h-170.666666z m221.184 0V332.003556h167.936v101.034666h-167.936z m733.866666-251.221333v44.373333h-165.205333v40.277334h165.205333v45.738666h-137.898666v39.594667h137.898666V398.222222h-184.32v40.96h417.792V398.222222h-186.368v-46.421333h144.725334v-39.594667h-144.725334v-45.738666h169.301334v-40.277334h-169.301334v-44.373333h-47.104z m-85.333333 429.397333h220.501333v49.834667h-220.501333v-49.834667z m220.501333-38.229333h-220.501333v-50.517333h220.501333v50.517333z m-220.501333 126.293333h220.501333v38.912c0 15.701333-8.874667 23.893333-25.258666 23.893334l-54.613334-2.048 11.605334 43.690666h57.344c38.229333 0 58.026667-18.432 58.026666-55.296v-266.24H2391.608889V807.822222h47.104v-108.544z m-222.549333-509.952l-34.816 33.450667c49.152 36.864 88.064 71.68 116.736 104.448l33.450666-34.133333a795.079111 795.079111 0 0 0-115.370666-103.765334z m-82.602667 201.386667h144.725333v299.690667c20.48-19.114667 41.642667-40.277333 64.853334-64.170667l12.970666 51.882667a923.932444 923.932444 0 0 1-121.514666 105.813333l-19.114667-43.690667c10.24-9.557333 15.701333-19.797333 15.701333-31.402666V437.816889h-97.621333v-47.104z"
fill="#d81e06" fill="#d81e06" p-id="3065"></path>
p-id="3065"
></path>
</svg> </svg>
</span> </span>
<div class="header-right"> <div class="header-right">
@ -96,11 +65,9 @@
</div> </div>
</div> </div>
<div class="dec"> <div class="dec">
<div <div v-if="
v-if="
selectCardsname !== '基础设施' && selectCardsname !== '数据资源' selectCardsname !== '基础设施' && selectCardsname !== '数据资源'
" ">
>
<span>{{ item.shareType || '--' }}</span> <span>{{ item.shareType || '--' }}</span>
</div> </div>
<div> <div>
@ -128,11 +95,7 @@
<!-- <template #title> <!-- <template #title>
<span>{{ item.score || 0 }}</span> <span>{{ item.score || 0 }}</span>
</template> --> </template> -->
<a-rate <a-rate :value="item.score || 0" disabled v-if="item.score != 0" />
:value="item.score || 0"
disabled
v-if="item.score != 0"
/>
</a-tooltip> </a-tooltip>
</div> </div>
</div> </div>
@ -140,30 +103,15 @@
<div class="right" v-if="selectCardsname !== '基础设施'"> <div class="right" v-if="selectCardsname !== '基础设施'">
<div class="shopping" :key="shoppingKey"> <div class="shopping" :key="shoppingKey">
<span class="shopping-down" v-if="item.isInShoppingCart"></span> <span class="shopping-down" v-if="item.isInShoppingCart"></span>
<span <span class="shopping-on" v-else @click="addShoppingCart(item, index)"></span>
class="shopping-on"
v-else
@click="addShoppingCart(item, index)"
></span>
</div> </div>
<div class="sc"> <div class="sc">
<span <span class="sc-down" v-if="item.isCollect == 'false'" @click="addCollect(item)"></span>
class="sc-down" <span class="sc-on" v-if="item.isCollect == 'true'" @click="addCollect(item)"></span>
v-if="item.isCollect == 'false'" <a-button style="margin-left: 10px" v-show="
@click="addCollect(item)"
></span>
<span
class="sc-on"
v-if="item.isCollect == 'true'"
@click="addCollect(item)"
></span>
<a-button
style="margin-left: 10px"
v-show="
cardType == '组件服务' && cardType == '组件服务' &&
findComponentName(item, '智能算法') findComponentName(item, '智能算法')
" ">
>
免费试用 免费试用
</a-button> </a-button>
</div> </div>
@ -188,12 +136,7 @@
</div> </div>
</div> </div>
</div> </div>
<a-modal <a-modal v-model:visible="visible" title="视频预览" :width="750" destroyOnClose>
v-model:visible="visible"
title="视频预览"
:width="750"
destroyOnClose
>
<template #footer></template> <template #footer></template>
<div style="width: 100%; display: flex; justify-content: center"> <div style="width: 100%; display: flex; justify-content: center">
<div style="width: 100%; height: 100%"> <div style="width: 100%; height: 100%">
@ -204,20 +147,20 @@
</div> </div>
</template> </template>
<script> <script>
import { ref, reactive } from 'vue' import { ref, reactive } from 'vue'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { getUser, sgcInsert } from '@/api/home' import { getUser, sgcInsert } from '@/api/home'
import { scInsert, scDel } from '@/api/personalCenter' import { scInsert, scDel } from '@/api/personalCenter'
import mybus from '@/myplugins/mybus' import mybus from '@/myplugins/mybus'
import { getHls } from '@/api/home.js' import { getHls } from '@/api/home.js'
export default { export default {
name: '', name: '',
// props: ['resourceList', 'resourceTotal', 'selectCardsname'], // props: ['resourceList', 'resourceTotal', 'selectCardsname'],
props: { props: {
resourceList: { resourceList: {
type: Object, type: Object,
default: () => {}, default: () => { },
}, },
resourceTotal: { resourceTotal: {
type: String, type: String,
@ -485,6 +428,15 @@
visible.value = true visible.value = true
}) })
} }
//
const goComparePk = (item) => {
router.push({
path: '/algorithmCompare',
query: {
id: item.id,
},
})
}
return { return {
onSearch, onSearch,
resultList, resultList,
@ -501,19 +453,21 @@
videoUrl, videoUrl,
options, options,
visible, visible,
goComparePk
} }
}, },
beforeUnmount() { beforeUnmount() {
mybus.off('chongzhi') mybus.off('chongzhi')
mybus.emit('changeSelcted') mybus.emit('changeSelcted')
}, },
} }
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
#search-result-list-container { #search-result-list-container {
width: 1088px; width: 1088px;
padding: 0 20px; padding: 0 20px;
background: #f3f5f9; background: #f3f5f9;
.detail-content { .detail-content {
// //
white-space: nowrap; white-space: nowrap;
@ -522,6 +476,7 @@
width: 130px; width: 130px;
display: inline-block; display: inline-block;
} }
.shai-xuan { .shai-xuan {
width: 1047px; width: 1047px;
height: 36px; height: 36px;
@ -531,6 +486,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
.circle { .circle {
width: 16px; width: 16px;
height: 16px; height: 16px;
@ -541,24 +497,30 @@
line-height: 16px; line-height: 16px;
margin-right: 21px; margin-right: 21px;
} }
.result { .result {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: #212121; color: #212121;
span { span {
font-size: 18px; font-size: 18px;
color: #0087ff; color: #0087ff;
} }
} }
.condition { .condition {
position: absolute; position: absolute;
right: 20px; right: 20px;
top: 10px; top: 10px;
ul li { ul li {
list-style-type: none; list-style-type: none;
} }
ul { ul {
display: flex; display: flex;
li { li {
width: 90px; width: 90px;
height: 12px; height: 12px;
@ -567,6 +529,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.arrow { .arrow {
display: inline-block; display: inline-block;
width: 12px; width: 12px;
@ -574,6 +537,7 @@
background: url('~@/assets/newHome/arrow.png'); background: url('~@/assets/newHome/arrow.png');
margin-left: 10px; margin-left: 10px;
} }
.down { .down {
background: url('~@/assets/newHome/down.png'); background: url('~@/assets/newHome/down.png');
margin-top: 6px; margin-top: 6px;
@ -582,6 +546,7 @@
} }
} }
} }
.result-list { .result-list {
width: 1048px; width: 1048px;
display: flex; display: flex;
@ -590,63 +555,77 @@
border-bottom: 1px rgba(150, 144, 144, 0.3) solid; border-bottom: 1px rgba(150, 144, 144, 0.3) solid;
border-top: 1px rgba(150, 144, 144, 0.3) solid; border-top: 1px rgba(150, 144, 144, 0.3) solid;
padding: 10px 0; padding: 10px 0;
.item { .item {
width: 100%; width: 100%;
margin-top: 10px; margin-top: 10px;
display: flex; display: flex;
.left { .left {
display: inline-block; display: inline-block;
width: 120px; width: 120px;
height: 110px; height: 110px;
margin-right: 16px; margin-right: 16px;
} }
.right { .right {
width: 100%; width: 100%;
} }
.yyzy { .yyzy {
background: url('~@/assets/home/yyzy-bg.png') no-repeat; background: url('~@/assets/home/yyzy-bg.png') no-repeat;
background-size: 120px 110px; background-size: 120px 110px;
} }
.znsf { .znsf {
background: url('~@/assets/home/znsf-bg.png') no-repeat; background: url('~@/assets/home/znsf-bg.png') no-repeat;
background-size: 120px 110px; background-size: 120px 110px;
} }
.gis { .gis {
background: url('~@/assets/home/gis-bg.png') no-repeat; background: url('~@/assets/home/gis-bg.png') no-repeat;
background-size: 120px 110px; background-size: 120px 110px;
} }
.jcss { .jcss {
background: url('~@/assets/home/jcss-bg.png') no-repeat; background: url('~@/assets/home/jcss-bg.png') no-repeat;
background-size: 100%; background-size: 100%;
} }
.header { .header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin: 0 10px 0 0; margin: 0 10px 0 0;
.header-right { .header-right {
display: flex; display: flex;
font-size: 14px; font-size: 14px;
color: #212121; color: #212121;
span { span {
font-size: 14px; font-size: 14px;
color: #212121; color: #212121;
} }
div { div {
margin-right: 24px; margin-right: 24px;
} }
} }
.header-right:last-child { .header-right:last-child {
div { div {
margin-right: 16px; margin-right: 16px;
} }
} }
span { span {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
// color: #0087ff; // color: #0087ff;
} }
} }
.dec { .dec {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -654,12 +633,14 @@
color: #0058e1; color: #0058e1;
display: flex; display: flex;
margin-top: 10px; margin-top: 10px;
div { div {
margin-right: 10px; margin-right: 10px;
background: rgba(0, 88, 225, 0.1); background: rgba(0, 88, 225, 0.1);
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
} }
div:nth-child(3) { div:nth-child(3) {
max-width: 200px; max-width: 200px;
display: -webkit-box; display: -webkit-box;
@ -673,11 +654,13 @@
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
} }
.btn { .btn {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 14px; font-size: 14px;
margin: 5px 0; margin: 5px 0;
// .left { // .left {
// width: 600px; // width: 600px;
// display: flex; // display: flex;
@ -697,6 +680,7 @@
justify-content: flex-end; justify-content: flex-end;
margin: 0 10px; margin: 0 10px;
align-items: center; align-items: center;
.shopping { .shopping {
span { span {
display: inline-block; display: inline-block;
@ -705,14 +689,17 @@
margin-right: 10px; margin-right: 10px;
margin-top: 5px; margin-top: 5px;
} }
.shopping-on { .shopping-on {
background: url('~@/assets/newHome/shopping-on.png'); background: url('~@/assets/newHome/shopping-on.png');
cursor: pointer; cursor: pointer;
} }
.shopping-down { .shopping-down {
background: url('~@/assets/newHome/shopping-down.png'); background: url('~@/assets/newHome/shopping-down.png');
} }
} }
.pk-on { .pk-on {
display: inline-block; display: inline-block;
height: 32px; height: 32px;
@ -729,12 +716,14 @@
cursor: pointer; cursor: pointer;
display: flex; display: flex;
align-items: center; align-items: center;
.sc-down { .sc-down {
display: inline-block; display: inline-block;
height: 32px; height: 32px;
width: 32px; width: 32px;
background: url('~@/assets/newHome/sc-down.png'); background: url('~@/assets/newHome/sc-down.png');
} }
.sc-on { .sc-on {
display: inline-block; display: inline-block;
height: 32px; height: 32px;
@ -742,6 +731,7 @@
background: url('~@/assets/newHome/sc-on.png'); background: url('~@/assets/newHome/sc-on.png');
} }
} }
.ant-btn { .ant-btn {
background: transparent; background: transparent;
background: #0058e1; background: #0058e1;
@ -756,31 +746,38 @@
justify-content: center; justify-content: center;
margin-left: 10px; margin-left: 10px;
} }
.ant-btn:last-child { .ant-btn:last-child {
background: #0058e1; background: #0058e1;
color: white; color: white;
} }
} }
} }
.bottom { .bottom {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-top: 10px; margin-top: 10px;
align-items: center; align-items: center;
& > div {
&>div {
display: flex; display: flex;
align-items: center; align-items: center;
& > div {
&>div {
margin: 0 10px; margin: 0 10px;
} }
} }
.pingfen { .pingfen {
:deep(span) { :deep(span) {
display: flex; display: flex;
align-items: center; align-items: center;
:deep(ul) { :deep(ul) {
display: flex; display: flex;
align-items: center; align-items: center;
:deep(.ant-rate-star:not(:last-child)) { :deep(.ant-rate-star:not(:last-child)) {
margin-right: 4px; margin-right: 4px;
} }
@ -789,9 +786,10 @@
} }
} }
} }
.item:nth-of-type(1) { .item:nth-of-type(1) {
margin-top: 0; margin-top: 0;
} }
} }
} }
</style> </style>