5 changed files with 269 additions and 8 deletions
@ -0,0 +1,250 @@ |
|||||
|
<template> |
||||
|
<div class="modal" v-show="researchList"> |
||||
|
<section> |
||||
|
<div class="dialog_header"> |
||||
|
<div class="close-icon" @click="closeDialog"> |
||||
|
<img src="@/assets/images/common/dialog-colse.png" alt="" /> |
||||
|
</div> |
||||
|
<div class="title-container"> |
||||
|
<div class="title">科研力量</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="dialog_body"> |
||||
|
<div class="content"> |
||||
|
<div class='main'> |
||||
|
|
||||
|
<div class="flex"> |
||||
|
<div class="item" v-for="(item, index) in list" :key="index" @click="handelClickResearch(item)"> |
||||
|
<img :src="item.cover" alt="" v-if="item.cover"> |
||||
|
<div v-else class="noImg">暂无图片</div> |
||||
|
<div class="content"> |
||||
|
{{ item.name }} |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { mapGetters, mapActions } from 'vuex' |
||||
|
import { seedPowerCompanyList } from '@/api/zdyf' |
||||
|
|
||||
|
export default { |
||||
|
name: '', |
||||
|
data () { |
||||
|
return { |
||||
|
dialogTitle: '高端科技人才', |
||||
|
list: [ |
||||
|
|
||||
|
], |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
computed: { |
||||
|
...mapGetters(['researchList']) |
||||
|
}, |
||||
|
components: { |
||||
|
}, |
||||
|
watch: { |
||||
|
|
||||
|
}, |
||||
|
created () { |
||||
|
seedPowerCompanyList({ }).then(res => { |
||||
|
this.list = res.data.list |
||||
|
console.log(this.list),'seeeeeeeee'; |
||||
|
|
||||
|
}) |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
...mapActions({ |
||||
|
showGlobalDialog: 'showGlobalDialog', |
||||
|
set_research_show: 'SET_RESEARCH_SHOW', |
||||
|
set_research_id: 'SET_RESEARCH_ID', |
||||
|
}), |
||||
|
handelClickResearch(item){ |
||||
|
this.showGlobalDialog('') |
||||
|
this.set_research_show(true) |
||||
|
this.set_research_id(item.id) |
||||
|
}, |
||||
|
|
||||
|
closeDialog () { |
||||
|
this.showGlobalDialog('') |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.modal { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
position: absolute; |
||||
|
top: 0; |
||||
|
left: 0; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
z-index: 150; |
||||
|
|
||||
|
section { |
||||
|
@include flex(column); |
||||
|
background: url('~@/assets/images/common/dialog-bg.png') no-repeat !important; |
||||
|
background-size: 100% 100% !important; |
||||
|
width: 1138px; |
||||
|
height: 634px; |
||||
|
overflow: hidden; |
||||
|
padding-bottom: 16px; |
||||
|
box-sizing: border-box; |
||||
|
|
||||
|
.dialog_header { |
||||
|
position: relative; |
||||
|
margin-bottom: 40px; |
||||
|
|
||||
|
.close-icon { |
||||
|
width: 18px; |
||||
|
height: 18px; |
||||
|
position: absolute; |
||||
|
top: 10px; |
||||
|
right: 16px; |
||||
|
cursor: pointer; |
||||
|
} |
||||
|
|
||||
|
.title-container { |
||||
|
align-items: center; |
||||
|
background: url('~@/assets/images/common/dialog-header.png') no-repeat; |
||||
|
background-size: 100% 100%; |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
height: 60px; |
||||
|
font-size: 26px; |
||||
|
|
||||
|
.title { |
||||
|
font-family: zaozigongfang; |
||||
|
letter-spacing: 2px; |
||||
|
line-height: 50px; |
||||
|
background-size: 100% 100%; |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
height: 60px; |
||||
|
font-size: 26px; |
||||
|
color: #fff; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.dialog_body { |
||||
|
position: relative; |
||||
|
|
||||
|
>.content { |
||||
|
box-sizing: border-box; |
||||
|
color: #fff; |
||||
|
padding: 0px 24px 0 27px; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
height: 100%; |
||||
|
.main { |
||||
|
height: 716px; |
||||
|
overflow-y: hidden; |
||||
|
box-sizing: border-box; |
||||
|
overflow-y: scroll; |
||||
|
|
||||
|
&::-webkit-scrollbar { |
||||
|
width: 3px; |
||||
|
} |
||||
|
|
||||
|
&::-webkit-scrollbar-track { |
||||
|
border-radius: 10px; |
||||
|
background: rgba(12, 129, 254, 0.24); |
||||
|
} |
||||
|
|
||||
|
&::-webkit-scrollbar-thumb { |
||||
|
border-radius: 10px; |
||||
|
background: linear-gradient(270deg, #0063fe, #0095ff); |
||||
|
} |
||||
|
|
||||
|
.header { |
||||
|
width: 100%; |
||||
|
height: 30px; |
||||
|
text-align: left; |
||||
|
background: linear-gradient(90deg, rgb(26, 109, 224) 0%, rgba(13, 113, 248, 0) 50%); |
||||
|
display: flex; |
||||
|
justify-content: flex-start; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.flex { |
||||
|
display: flex; |
||||
|
flex-wrap: wrap; |
||||
|
justify-content: space-between; |
||||
|
|
||||
|
.item { |
||||
|
display: flex; |
||||
|
width: 537px; |
||||
|
padding: 16px 24px 16px 16px; |
||||
|
box-sizing: border-box; |
||||
|
background: #1657b8; |
||||
|
border-radius: 2px; |
||||
|
margin-bottom: 10px; |
||||
|
|
||||
|
img { |
||||
|
width: 100px; |
||||
|
height: 80px; |
||||
|
} |
||||
|
|
||||
|
p { |
||||
|
display: -webkit-box; |
||||
|
overflow: hidden; |
||||
|
-webkit-line-clamp: 4; |
||||
|
-webkit-box-orient: vertical; |
||||
|
text-overflow: ellipsis; |
||||
|
margin-bottom: 0; |
||||
|
margin-top: 8px; |
||||
|
opacity: 0.8; |
||||
|
} |
||||
|
|
||||
|
>.content { |
||||
|
flex: 1; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
padding-left: 17px; |
||||
|
box-sizing: border-box; |
||||
|
|
||||
|
&>:nth-child(1) { |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
|
||||
|
&>:nth-child(2) { |
||||
|
color: #00D4F3; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
.top-24 { |
||||
|
margin-top: 24px; |
||||
|
} |
||||
|
|
||||
|
.noImg { |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
background: #7a84a9; |
||||
|
width: 186px; |
||||
|
height: 110px; |
||||
|
}</style> |
Loading…
Reference in new issue