Compare commits

...

3 Commits

3 changed files with 583 additions and 521 deletions

View File

@ -142,48 +142,7 @@ export default {
// //
RankingData: [], RankingData: [],
// //
AnomalyStatisticsTable: [ AnomalyStatisticsTable: [],
{
name: '接口名称',
address: 'http://hhhhhhhhhhhhhhhhhhhh',
method: '调用方法',
type: '组件类型',
provider: '提供商名称',
state: '监控状态'
},
{
name: '接口名称',
address: 'http://hhhhhhhhhhhhhhhhhhhh',
method: '调用方法',
type: '组件类型',
provider: '提供商名称',
state: '监控状态'
},
{
name: '接口名称',
address: 'http://hhhhhhhhhhhhhhhhhhhh',
method: '调用方法',
type: '组件类型',
provider: '提供商名称',
state: '监控状态'
},
{
name: '接口名称',
address: 'http://hhhhhhhhhhhhhhhhhhhh',
method: '调用方法',
type: '组件类型',
provider: '提供商名称',
state: '监控状态'
},
{
name: '接口名称',
address: 'http://hhhhhhhhhhhhhhhhhhhh',
method: '调用方法',
type: '组件类型',
provider: '提供商名称',
state: '监控状态'
}
],
// //
currentPage4: 1, currentPage4: 1,
total: 0 total: 0

View File

@ -1,31 +1,38 @@
<!-- 智能算法 --> <!-- 智能算法 -->
<template> <template>
<div class="algorithm"> <div class="algorithm">
<div class="select"> <div style="display: flex">
<div class="top" @click="selectFlag2 = true"> <div class="select">
{{ typeName2 }} <div class="top" @click="selectFlag = !selectFlag">
<div class="light"></div> {{ typeName }}
<div class="light"></div>
</div>
<div class="bottom" v-show="selectFlag">
<span class="light"></span>
<div @click="getList('全市')">全市</div>
<div @click="getList('市级')">市级</div>
<div @click="getList('区级')">区级</div>
<div @click="getList('企业')">企业</div>
</div>
</div> </div>
<div class="bottom" v-show="selectFlag2"> <div class="select">
<span class="light"></span> <div class="top" @click="selectFlag2 = true">
<div v-for="val in dictList" :key="val" @click="getList2(val)"> {{ typeName2 }}
{{ val }} <div class="light"></div>
</div>
<div class="bottom" v-show="selectFlag2">
<span class="light"></span>
<div v-for="val in dictList" :key="val" @click="getList2(val)">
{{ val }}
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="algorithm-class"> <div class="algorithm-class">
<div <div v-for="(item, index) in dataList" :key="`algorithm-${index}`" class="algorithm-card">
v-for="(item, index) in dataList" <a-image :src="algorithmCardPhoto(item.infoList, item)" :width="525" :height="275" :fallback="imgSrc"
:key="`algorithm-${index}`" :preview="false"></a-image>
class="algorithm-card"
>
<a-image
:src="algorithmCardPhoto(item.infoList, item)"
:width="525"
:height="275"
:fallback="imgSrc"
:preview="false"
></a-image>
<a-tooltip> <a-tooltip>
<template #title>{{ item.name }}</template> <template #title>{{ item.name }}</template>
@ -39,248 +46,293 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import { getCategoryTreePage } from '@/api/personalCenter' import { getCategoryTreePage } from '@/api/personalCenter'
import { pageWithAttrs } from '@/api/abilityStatistics' import { pageWithAttrs } from '@/api/abilityStatistics'
import { ref, onMounted, onBeforeUnmount } from 'vue' import { ref, onMounted, onBeforeUnmount } from 'vue'
const typeName2 = ref('全部')
const dictList = ref([])
const dataList = ref([]) const type = ref(null)
const selectFlag2 = ref(false) const typeName = ref('全市')
getCategoryTreePage({ const typeName2 = ref('全部')
page: 1, const dictList = ref([])
limit: 99, const dataList = ref([])
dictTypeId: '1513712507692818433', const selectFlag2 = ref(false)
}).then((res) => { const selectFlag = ref(false)
dictList.value = ['全部'] getCategoryTreePage({
res.data.data.list.map((val) => { page: 1,
// if (val.dictLabel !== '') { limit: 99,
dictList.value.push(val.dictLabel) dictTypeId: '1513712507692818433',
// } }).then((res) => {
}) dictList.value = ['全部']
res.data.data.list.map((val) => {
// if (val.dictLabel !== '') {
dictList.value.push(val.dictLabel)
// }
}) })
const params = { })
deptIds: [], const params = {
districtId: '', deptIds: [],
infoList: [{ attrType: '组件类型', attrValue: '智能算法' }], districtId: '',
orderField: 'pin_top', infoList: [{ attrType: '组件类型', attrValue: '智能算法' }],
orderType: 'DESC', orderField: 'pin_top',
pageNum: 1, orderType: 'DESC',
pageSize: 9, pageNum: 1,
type: '组件服务', pageSize: 9,
type: '组件服务',
}
const getList2 = (val) => {
typeName2.value = val
if (val == '全部') {
params.infoList = [{ attrType: '组件类型', attrValue: '智能算法' }]
} else {
params.infoList = [
{ attrType: '组件类型', attrValue: '智能算法' },
{ attrType: '应用领域', attrValue: val },
]
} }
const getList2 = (val) => { selectFlag2.value = false
typeName2.value = val pageWithAttrsFunction()
if (val == '全部') { }
params.infoList = [{ attrType: '组件类型', attrValue: '智能算法' }] let algorithmclassDom = null
} else { const imgSrc = ref(require('@/assets/capacitySquare/algorithm-photo.jpg'))
params.infoList = [ const dataLength = ref(true)
{ attrType: '组件类型', attrValue: '智能算法' }, const isNoMore = ref(false)
{ attrType: '应用领域', attrValue: val }, let url = ref('')
] const pageWithAttrsFunction = () => {
pageWithAttrs(params).then((res) => {
dataList.value = res.data.data.records
if (res.data.data.records.length < 9) {
dataLength.value = false
} }
selectFlag2.value = false })
pageWithAttrsFunction() }
pageWithAttrsFunction()
//
const algorithmCardPhoto = (List, item) => {
let obj = List.filter((item) => item.attrType === '应用场景')[0]
if (obj && obj.attrValue != '') {
console.log(
item.name,
item.id,
obj.attrValue,
'----------------------------'
)
obj = JSON.parse(obj.attrValue)[0].img
} }
let algorithmclass = null return obj || ''
const imgSrc = ref(require('@/assets/capacitySquare/algorithm-photo.jpg')) }
const dataLength = ref(true) //
const isNoMore = ref(false) const detailFunction = (id) => {
let url = ref('') window.open(window.SITE_CONFIG.previewUrl + `#/details?id=${id}`)
const pageWithAttrsFunction = () => { }
const algorithmFunction = (e) => {
var scrollTop = e.currentTarget.scrollTop
var windowHeight = e.currentTarget.clientHeight
var scrollHeight = e.currentTarget.scrollHeight
console.log(scrollTop, windowHeight, scrollHeight, '123')
if (
scrollTop + windowHeight <= scrollHeight + 1 &&
scrollTop + windowHeight >= scrollHeight - 1
) {
//
isNoMore.value = true
params.pageNum++
pageWithAttrs(params).then((res) => { pageWithAttrs(params).then((res) => {
dataList.value = res.data.data.records dataList.value.push(...res.data.data.records)
if (res.data.data.records.length < 9) { if (res.data.data.records.length < 9) {
dataLength.value = false dataLength.value = false
} }
}) })
} else {
isNoMore.value = false
} }
pageWithAttrsFunction() }
//
const algorithmCardPhoto = (List, item) => {
let obj = List.filter((item) => item.attrType === '应用场景')[0]
if (obj && obj.attrValue != '') {
console.log(
item.name,
item.id,
obj.attrValue,
'----------------------------'
)
obj = JSON.parse(obj.attrValue)[0].img
}
return obj || ''
}
//
const detailFunction = (id) => {
window.open(window.SITE_CONFIG.previewUrl + `#/details?id=${id}`)
}
const algorithmFunction = (e) => {
var scrollTop = e.currentTarget.scrollTop
var windowHeight = e.currentTarget.clientHeight
var scrollHeight = e.currentTarget.scrollHeight
console.log(scrollTop, windowHeight, scrollHeight, '123')
if (
scrollTop + windowHeight <= scrollHeight + 1 &&
scrollTop + windowHeight >= scrollHeight - 1
) {
//
isNoMore.value = true
params.pageNum++
pageWithAttrs(params).then((res) => {
dataList.value.push(...res.data.data.records)
if (res.data.data.records.length < 9) {
dataLength.value = false
}
})
} else {
isNoMore.value = false
}
}
onMounted(() => { const getList = (str) => {
algorithmclass = document.querySelector('.algorithm-class') if (str) {
if (dataLength.value) { algorithmclassDom.scrollTop = 0
// switch (str) {
algorithmclass.addEventListener('scroll', algorithmFunction, true) case '全市':
type.value = null
typeName.value = '全 市'
break
case '市级':
type.value = 2
typeName.value = '市 级'
break
case '区级':
type.value = 3
typeName.value = '区 级'
break
case '企业':
type.value = 4
typeName.value = '企 业'
break
} }
}) params.pageNum = 1
onBeforeUnmount(() => { }
algorithmclass.removeEventListener('scroll', algorithmFunction, true) selectFlag.value = false
}) alert('调取接口')
// getData(str)
}
onMounted(() => {
algorithmclassDom = document.querySelector('.algorithm-class')
if (dataLength.value) {
//
algorithmclassDom.addEventListener('scroll', algorithmFunction, true)
}
})
onBeforeUnmount(() => {
algorithmclassDom.removeEventListener('scroll', algorithmFunction, true)
})
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.algorithm { .algorithm {
.select { .select {
margin: 0.1rem 0 0.1rem 0.2rem; margin: 0.1rem 0 0.1rem 0.2rem;
color: #fff; color: #fff;
font-size: 0.2rem; font-size: 0.2rem;
font-family: webfont; font-family: webfont;
position: relative;
.top {
cursor: pointer;
width: 3.61rem;
height: 0.85rem;
font-weight: 600;
text-align: center;
padding-top: 0.1rem;
background: url('~@/assets/capacitySquare/select-bg.png') no-repeat;
background-size: 100%;
position: relative; position: relative;
.top {
cursor: pointer; .light {
width: 3.61rem; width: 0.56rem;
height: 0.85rem; height: 3px;
font-weight: 600;
text-align: center;
padding-top: 0.1rem;
background: url('~@/assets/capacitySquare/select-bg.png') no-repeat;
background-size: 100%;
position: relative;
.light {
width: 0.56rem;
height: 3px;
position: absolute;
top: 0.4rem;
left: 1.52rem;
background: url('~@/assets/capacitySquare/select-light1.png')
no-repeat;
background-size: 100%;
}
}
.bottom {
cursor: pointer;
position: absolute; position: absolute;
top: 0.5rem; top: 0.4rem;
left: 0.9rem; left: 1.52rem;
z-index: 1000; background: url('~@/assets/capacitySquare/select-light1.png') no-repeat;
background: rgba(57, 134, 239, 0.68); background-size: 100%;
border: 1px solid #aed5ff;
.light {
display: inline-block;
width: 2.39rem;
height: 5px;
position: absolute;
top: -0.08rem;
left: -0.3rem;
background: url('~@/assets/capacitySquare/select-light2.png')
no-repeat;
background-size: 100%;
}
& > div {
width: 1.8rem;
height: 0.4rem;
line-height: 0.4rem;
text-align: center;
border-top: 1px solid #aed5ff;
}
& > div:nth-of-type(1) {
border: none;
}
} }
} }
.algorithm-class {
// margin-top: 0.6rem; .bottom {
margin-bottom: 0.18rem; cursor: pointer;
display: grid; position: absolute;
grid-template-columns: repeat(3, 33%); top: 0.5rem;
height: 8.8rem; left: 0.9rem;
overflow: auto; z-index: 1000;
margin-left: 1.15rem; background: rgba(57, 134, 239, 0.68);
margin-right: 0.15rem; border: 1px solid #aed5ff;
.algorithm-card {
height: 2.75rem; .light {
width: 5.25rem; display: inline-block;
background: url('~@/assets/capacitySquare/algorithm-bg.png') no-repeat; width: 2.39rem;
background-size: 100% 100%; height: 5px;
margin-bottom: 0.4rem; position: absolute;
margin-right: 0.65rem; top: -0.08rem;
position: relative; left: -0.3rem;
:deep(.ant-image) { background: url('~@/assets/capacitySquare/select-light2.png') no-repeat;
img { background-size: 100%;
margin-top: 0.15rem; }
height: 2.45rem;
width: 5.05rem; &>div {
margin-left: 0.1rem; width: 1.8rem;
} height: 0.4rem;
} line-height: 0.4rem;
.algorithm-card-photo { text-align: center;
height: 100%; border-top: 1px solid #aed5ff;
width: 100%; }
background: url('~@/assets/capacitySquare/algorithm-photo.jpg')
no-repeat; &>div:nth-of-type(1) {
background-size: 100%; border: none;
}
.algorithm-card-title {
position: absolute;
height: 0.6rem;
margin-left: 0.08rem;
width: 97%;
color: #ffffff;
font-size: 0.22rem;
font-family: alibaba;
bottom: 0.15rem;
padding-left: 0.22rem;
background: url('~@/assets/capacitySquare/algorithm-title-bg.png')
no-repeat;
background-size: 100%;
display: flex;
flex-direction: column;
justify-content: center;
span {
line-height: 0.24rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
span:last-child {
font-size: 0.14rem;
}
}
} }
}
.algorithm-class::-webkit-scrollbar-track-piece {
background: #a5bcdb;
border-radius: 0.08rem;
}
.algorithm-class::-webkit-scrollbar-thumb {
height: 3.2rem;
background: linear-gradient(to bottom, #47d7f5, #3dc6e3);
}
.algorithm-class::-webkit-scrollbar {
height: 8.8rem;
width: 0.08rem;
border-radius: 0.08rem;
} }
} }
.algorithm-class {
// margin-top: 0.6rem;
margin-bottom: 0.18rem;
display: grid;
grid-template-columns: repeat(3, 33%);
height: 8.8rem;
overflow: auto;
margin-left: 1.15rem;
margin-right: 0.15rem;
.algorithm-card {
height: 2.75rem;
width: 5.25rem;
background: url('~@/assets/capacitySquare/algorithm-bg.png') no-repeat;
background-size: 100% 100%;
margin-bottom: 0.4rem;
margin-right: 0.65rem;
position: relative;
:deep(.ant-image) {
img {
margin-top: 0.15rem;
height: 2.45rem;
width: 5.05rem;
margin-left: 0.1rem;
}
}
.algorithm-card-photo {
height: 100%;
width: 100%;
background: url('~@/assets/capacitySquare/algorithm-photo.jpg') no-repeat;
background-size: 100%;
}
.algorithm-card-title {
position: absolute;
height: 0.6rem;
margin-left: 0.08rem;
width: 97%;
color: #ffffff;
font-size: 0.22rem;
font-family: alibaba;
bottom: 0.15rem;
padding-left: 0.22rem;
background: url('~@/assets/capacitySquare/algorithm-title-bg.png') no-repeat;
background-size: 100%;
display: flex;
flex-direction: column;
justify-content: center;
span {
line-height: 0.24rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
span:last-child {
font-size: 0.14rem;
}
}
}
}
.algorithm-class::-webkit-scrollbar-track-piece {
background: #a5bcdb;
border-radius: 0.08rem;
}
.algorithm-class::-webkit-scrollbar-thumb {
height: 3.2rem;
background: linear-gradient(to bottom, #47d7f5, #3dc6e3);
}
.algorithm-class::-webkit-scrollbar {
height: 8.8rem;
width: 0.08rem;
border-radius: 0.08rem;
}
}
</style> </style>

View File

@ -1,31 +1,37 @@
<!-- 图层服务 --> <!-- 图层服务 -->
<template> <template>
<div class="algorithm"> <div class="algorithm">
<div class="select"> <div style="display: flex">
<div class="top" @click="selectFlag2 = true"> <div class="select">
{{ typeName2 }} <div class="top" @click="selectFlag = !selectFlag">
<div class="light"></div> {{ typeName }}
<div class="light"></div>
</div>
<div class="bottom" v-show="selectFlag">
<span class="light"></span>
<div @click="getList('全市')">全市</div>
<div @click="getList('市级')">市级</div>
<div @click="getList('区级')">区级</div>
<div @click="getList('企业')">企业</div>
</div>
</div> </div>
<div class="bottom" v-show="selectFlag2"> <div class="select">
<span class="light"></span> <div class="top" @click="selectFlag2 = true">
<div v-for="val in dictList" :key="val" @click="getList2(val)"> {{ typeName2 }}
{{ val }} <div class="light"></div>
</div>
<div class="bottom" v-show="selectFlag2">
<span class="light"></span>
<div v-for="val in dictList" :key="val" @click="getList2(val)">
{{ val }}
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="algorithm-class"> <div class="algorithm-class">
<div <div v-for="(item, index) in dataList" :key="`algorithm-${index}`" class="algorithm-card">
v-for="(item, index) in dataList" <a-image :src="algorithmCardPhoto(item.infoList)" :width="525" :height="275" :fallback="imgSrc"
:key="`algorithm-${index}`" :preview="false"></a-image>
class="algorithm-card"
>
<a-image
:src="algorithmCardPhoto(item.infoList)"
:width="525"
:height="275"
:fallback="imgSrc"
:preview="false"
></a-image>
<a-tooltip> <a-tooltip>
<template #title>{{ item.name }}</template> <template #title>{{ item.name }}</template>
@ -39,242 +45,287 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import { getCategoryTreePage } from '@/api/personalCenter' import { getCategoryTreePage } from '@/api/personalCenter'
import { pageWithAttrs } from '@/api/abilityStatistics' import { pageWithAttrs } from '@/api/abilityStatistics'
import { ref, onMounted, onBeforeUnmount } from 'vue' import { ref, onMounted, onBeforeUnmount } from 'vue'
const typeName2 = ref('全部')
const dictList = ref([]) const type = ref(null)
const dataList = ref([]) const typeName = ref('全市')
const selectFlag2 = ref(false) const typeName2 = ref('全部')
getCategoryTreePage({ const dictList = ref([])
page: 1, const dataList = ref([])
limit: 99, const selectFlag2 = ref(false)
dictTypeId: '1513712507692818433', const selectFlag = ref(false)
}).then((res) => { getCategoryTreePage({
dictList.value = ['全部'] page: 1,
res.data.data.list.map((val) => { limit: 99,
// if (val.dictLabel !== '') { dictTypeId: '1513712507692818433',
dictList.value.push(val.dictLabel) }).then((res) => {
// } dictList.value = ['全部']
}) res.data.data.list.map((val) => {
// if (val.dictLabel !== '') {
dictList.value.push(val.dictLabel)
// }
}) })
const params = { })
deptIds: [], const params = {
districtId: '', deptIds: [],
infoList: [{ attrType: '组件类型', attrValue: '图层服务' }], districtId: '',
orderField: 'deptSort', infoList: [{ attrType: '组件类型', attrValue: '图层服务' }],
orderType: 'DESC', orderField: 'deptSort',
pageNum: 1, orderType: 'DESC',
pageSize: 9, pageNum: 1,
type: '组件服务', pageSize: 9,
type: '组件服务',
}
const getList2 = (val) => {
typeName2.value = val
if (val == '全部') {
params.infoList = [{ attrType: '组件类型', attrValue: '图层服务' }]
} else {
params.infoList = [
{ attrType: '组件类型', attrValue: '图层服务' },
{ attrType: '应用领域', attrValue: val },
]
} }
const getList2 = (val) => { selectFlag2.value = false
typeName2.value = val pageWithAttrsFunction()
if (val == '全部') { }
params.infoList = [{ attrType: '组件类型', attrValue: '图层服务' }] let algorithmclassDom = null
} else { const imgSrc = ref(require('@/assets/capacitySquare/algorithm-photo2.jpg'))
params.infoList = [ const dataLength = ref(true)
{ attrType: '组件类型', attrValue: '图层服务' }, const isNoMore = ref(false)
{ attrType: '应用领域', attrValue: val }, const pageWithAttrsFunction = () => {
] pageWithAttrs(params).then((res) => {
dataList.value = res.data.data.records
if (res.data.data.records.length < 9) {
dataLength.value = false
} }
selectFlag2.value = false })
pageWithAttrsFunction() }
pageWithAttrsFunction()
//
const algorithmCardPhoto = (List) => {
let url = ''
List.map((item) => {
if (item.attrType === '图层缩略图') {
url = item.attrValue
}
})
return url
}
//
const detailFunction = (id) => {
window.open(window.SITE_CONFIG.previewUrl + `#/details?id=${id}`)
}
const getList = (str) => {
if (str) {
algorithmclassDom.scrollTop = 0
switch (str) {
case '全市':
type.value = null
typeName.value = '全 市'
break
case '市级':
type.value = 2
typeName.value = '市 级'
break
case '区级':
type.value = 3
typeName.value = '区 级'
break
case '企业':
type.value = 4
typeName.value = '企 业'
break
}
params.pageNum = 1
} }
let algorithmclass = null selectFlag.value = false
const imgSrc = ref(require('@/assets/capacitySquare/algorithm-photo2.jpg')) alert('调取接口')
const dataLength = ref(true) // getData(str)
const isNoMore = ref(false) }
const pageWithAttrsFunction = () => {
const layerFunction = (e) => {
var scrollTop = e.currentTarget.scrollTop
var windowHeight = e.currentTarget.clientHeight
var scrollHeight = e.currentTarget.scrollHeight
console.log(scrollTop, windowHeight, scrollHeight, '123')
if (
scrollTop + windowHeight <= scrollHeight + 1 &&
scrollTop + windowHeight >= scrollHeight - 1
) {
//
isNoMore.value = true
params.pageNum++
pageWithAttrs(params).then((res) => { pageWithAttrs(params).then((res) => {
dataList.value = res.data.data.records dataList.value.push(...res.data.data.records)
if (res.data.data.records.length < 9) { if (res.data.data.records.length < 9) {
dataLength.value = false dataLength.value = false
} }
}) })
} else {
isNoMore.value = false
} }
pageWithAttrsFunction() }
// onMounted(() => {
const algorithmCardPhoto = (List) => { algorithmclassDom = document.querySelector('.algorithm-class')
let url = '' if (dataLength.value) {
List.map((item) => { //
if (item.attrType === '图层缩略图') { algorithmclassDom.addEventListener('scroll', layerFunction, true)
url = item.attrValue
}
})
return url
} }
// })
const detailFunction = (id) => { onBeforeUnmount(() => {
window.open(window.SITE_CONFIG.previewUrl + `#/details?id=${id}`) algorithmclassDom.removeEventListener('scroll', layerFunction, true)
} })
const layerFunction = (e) => {
var scrollTop = e.currentTarget.scrollTop
var windowHeight = e.currentTarget.clientHeight
var scrollHeight = e.currentTarget.scrollHeight
console.log(scrollTop, windowHeight, scrollHeight, '123')
if (
scrollTop + windowHeight <= scrollHeight + 1 &&
scrollTop + windowHeight >= scrollHeight - 1
) {
//
isNoMore.value = true
params.pageNum++
pageWithAttrs(params).then((res) => {
dataList.value.push(...res.data.data.records)
if (res.data.data.records.length < 9) {
dataLength.value = false
}
})
} else {
isNoMore.value = false
}
}
onMounted(() => {
algorithmclass = document.querySelector('.algorithm-class')
if (dataLength.value) {
//
algorithmclass.addEventListener('scroll', layerFunction, true)
}
})
onBeforeUnmount(() => {
algorithmclass.removeEventListener('scroll', layerFunction, true)
})
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.algorithm { .algorithm {
.select { .select {
margin: 0.1rem 0 0.1rem 0.2rem; margin: 0.1rem 0 0.1rem 0.2rem;
color: #fff; color: #fff;
font-size: 0.2rem; font-size: 0.2rem;
font-family: webfont; font-family: webfont;
position: relative;
.top {
cursor: pointer;
width: 3.61rem;
height: 0.85rem;
font-weight: 600;
text-align: center;
padding-top: 0.1rem;
background: url('~@/assets/capacitySquare/select-bg.png') no-repeat;
background-size: 100%;
position: relative; position: relative;
.top {
cursor: pointer; .light {
width: 3.61rem; width: 0.56rem;
height: 0.85rem; height: 3px;
font-weight: 600;
text-align: center;
padding-top: 0.1rem;
background: url('~@/assets/capacitySquare/select-bg.png') no-repeat;
background-size: 100%;
position: relative;
.light {
width: 0.56rem;
height: 3px;
position: absolute;
top: 0.4rem;
left: 1.52rem;
background: url('~@/assets/capacitySquare/select-light1.png')
no-repeat;
background-size: 100%;
}
}
.bottom {
cursor: pointer;
position: absolute; position: absolute;
top: 0.5rem; top: 0.4rem;
left: 0.9rem; left: 1.52rem;
z-index: 1000; background: url('~@/assets/capacitySquare/select-light1.png') no-repeat;
background: rgba(57, 134, 239, 0.68); background-size: 100%;
border: 1px solid #aed5ff;
.light {
display: inline-block;
width: 2.39rem;
height: 5px;
position: absolute;
top: -0.08rem;
left: -0.3rem;
background: url('~@/assets/capacitySquare/select-light2.png')
no-repeat;
background-size: 100%;
}
& > div {
width: 1.8rem;
height: 0.4rem;
line-height: 0.4rem;
text-align: center;
border-top: 1px solid #aed5ff;
}
& > div:nth-of-type(1) {
border: none;
}
} }
} }
.algorithm-class {
// margin-top: 0.6rem; .bottom {
margin-bottom: 0.18rem; cursor: pointer;
display: grid; position: absolute;
grid-template-columns: repeat(3, 33%); top: 0.5rem;
height: 8.8rem; left: 0.9rem;
overflow: auto; z-index: 1000;
margin-left: 1.15rem; background: rgba(57, 134, 239, 0.68);
margin-right: 0.15rem; border: 1px solid #aed5ff;
.algorithm-card {
height: 2.75rem; .light {
width: 5.23rem; display: inline-block;
background: url('~@/assets/capacitySquare/algorithm-bg.png') no-repeat; width: 2.39rem;
background-size: 100% 100%; height: 5px;
margin-bottom: 0.4rem; position: absolute;
margin-right: 0.65rem; top: -0.08rem;
position: relative; left: -0.3rem;
:deep(.ant-image) { background: url('~@/assets/capacitySquare/select-light2.png') no-repeat;
img { background-size: 100%;
margin-top: 0.15rem; }
height: 2.45rem;
width: 5.05rem; &>div {
margin-left: 0.1rem; width: 1.8rem;
} height: 0.4rem;
} line-height: 0.4rem;
.algorithm-card-photo { text-align: center;
height: 100%; border-top: 1px solid #aed5ff;
width: 100%; }
background: url('~@/assets/capacitySquare/algorithm-photo.jpg')
no-repeat; &>div:nth-of-type(1) {
background-size: 100%; border: none;
}
.algorithm-card-title {
position: absolute;
height: 0.6rem;
margin-left: 0.08rem;
width: 97%;
color: #ffffff;
font-size: 0.22rem;
font-family: alibaba;
bottom: 0.15rem;
padding-left: 0.22rem;
background: url('~@/assets/capacitySquare/algorithm-title-bg.png')
no-repeat;
background-size: 100%;
display: flex;
flex-direction: column;
justify-content: center;
span {
line-height: 0.24rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
span:last-child {
font-size: 0.14rem;
}
}
} }
}
.algorithm-class::-webkit-scrollbar-track-piece {
background: #a5bcdb;
border-radius: 0.08rem;
}
.algorithm-class::-webkit-scrollbar-thumb {
height: 3.2rem;
background: linear-gradient(to bottom, #47d7f5, #3dc6e3);
}
.algorithm-class::-webkit-scrollbar {
height: 8.8rem;
width: 0.08rem;
border-radius: 0.08rem;
} }
} }
.algorithm-class {
// margin-top: 0.6rem;
margin-bottom: 0.18rem;
display: grid;
grid-template-columns: repeat(3, 33%);
height: 8.8rem;
overflow: auto;
margin-left: 1.15rem;
margin-right: 0.15rem;
.algorithm-card {
height: 2.75rem;
width: 5.23rem;
background: url('~@/assets/capacitySquare/algorithm-bg.png') no-repeat;
background-size: 100% 100%;
margin-bottom: 0.4rem;
margin-right: 0.65rem;
position: relative;
:deep(.ant-image) {
img {
margin-top: 0.15rem;
height: 2.45rem;
width: 5.05rem;
margin-left: 0.1rem;
}
}
.algorithm-card-photo {
height: 100%;
width: 100%;
background: url('~@/assets/capacitySquare/algorithm-photo.jpg') no-repeat;
background-size: 100%;
}
.algorithm-card-title {
position: absolute;
height: 0.6rem;
margin-left: 0.08rem;
width: 97%;
color: #ffffff;
font-size: 0.22rem;
font-family: alibaba;
bottom: 0.15rem;
padding-left: 0.22rem;
background: url('~@/assets/capacitySquare/algorithm-title-bg.png') no-repeat;
background-size: 100%;
display: flex;
flex-direction: column;
justify-content: center;
span {
line-height: 0.24rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
span:last-child {
font-size: 0.14rem;
}
}
}
}
.algorithm-class::-webkit-scrollbar-track-piece {
background: #a5bcdb;
border-radius: 0.08rem;
}
.algorithm-class::-webkit-scrollbar-thumb {
height: 3.2rem;
background: linear-gradient(to bottom, #47d7f5, #3dc6e3);
}
.algorithm-class::-webkit-scrollbar {
height: 8.8rem;
width: 0.08rem;
border-radius: 0.08rem;
}
}
</style> </style>