|
|
@ -0,0 +1,172 @@ |
|
|
|
<template> |
|
|
|
<div :class="getClass()"> |
|
|
|
<div class="dialog"> |
|
|
|
<p class="title">工业设计师</p> |
|
|
|
<p class="desc">懂工艺的设计师才是好的 设计师</p> |
|
|
|
<div class="bottom"> |
|
|
|
<div class="btn" @click="showDetail"> |
|
|
|
<span>详情</span> |
|
|
|
<img :src="Arrow" class="icon" alt="" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup> |
|
|
|
import Arrow from '@/assets/img/recruit/jiantou1.png' |
|
|
|
const props = defineProps({ |
|
|
|
merge: Boolean, |
|
|
|
i: String, |
|
|
|
handleDetail: Function, |
|
|
|
}) |
|
|
|
const showDetail = () => { |
|
|
|
console.log(1123) |
|
|
|
props.handleDetail(true) |
|
|
|
} |
|
|
|
const getClass = () => { |
|
|
|
if (props.merge) { |
|
|
|
return 'post_card_container bg_post3 fill' |
|
|
|
} |
|
|
|
if (props.i == '1') { |
|
|
|
return 'post_card_container bg_post1' |
|
|
|
} |
|
|
|
if (props.i == '2') { |
|
|
|
return 'post_card_container bg_post2' |
|
|
|
} |
|
|
|
if (props.i == '4') { |
|
|
|
return 'post_card_container bg_post4' |
|
|
|
} |
|
|
|
if (props.i == '5') { |
|
|
|
return 'post_card_container bg_post5' |
|
|
|
} |
|
|
|
if (props.i == '6') { |
|
|
|
return 'post_card_container bg_post6' |
|
|
|
} |
|
|
|
if (props.i == '7') { |
|
|
|
return 'post_card_container bg_post7' |
|
|
|
} |
|
|
|
if (props.i == '8') { |
|
|
|
return 'post_card_container bg_post8' |
|
|
|
} |
|
|
|
if (props.i == '9') { |
|
|
|
return 'post_card_container bg_post9' |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.post_card_container { |
|
|
|
width: 311px; |
|
|
|
height: 324px; |
|
|
|
position: relative; |
|
|
|
cursor: pointer; |
|
|
|
.dialog { |
|
|
|
background: rgba(0, 0, 0, 0.68); |
|
|
|
padding: 43px 30px 34px 60px; |
|
|
|
box-sizing: border-box; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
justify-content: space-between; |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
.title { |
|
|
|
font-size: 22px; |
|
|
|
font-family: 'SourceHanSans'; |
|
|
|
font-weight: bold; |
|
|
|
color: #ffffff; |
|
|
|
margin-bottom: 31px; |
|
|
|
} |
|
|
|
.desc { |
|
|
|
flex: 1; |
|
|
|
font-size: 16px; |
|
|
|
width: 195px; |
|
|
|
font-family: 'SourceHanSans'; |
|
|
|
font-weight: 300; |
|
|
|
color: #ffffff; |
|
|
|
} |
|
|
|
.bottom { |
|
|
|
width: 100%; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: flex-end; |
|
|
|
.btn { |
|
|
|
width: 79px; |
|
|
|
height: 30px; |
|
|
|
border: 1px solid #ffffff; |
|
|
|
border-radius: 15px; |
|
|
|
font-size: 16px; |
|
|
|
font-family: 'SourceHanSans'; |
|
|
|
font-weight: 400; |
|
|
|
color: #ffffff; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
.icon { |
|
|
|
margin-left: 9px; |
|
|
|
width: 5px; |
|
|
|
height: 10px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.post_card_container:hover { |
|
|
|
border-radius: 10px; |
|
|
|
overflow: hidden; |
|
|
|
.dialog { |
|
|
|
background: rgba(40, 63, 231, 0.68); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.fill { |
|
|
|
height: 676px; |
|
|
|
width: 415px; |
|
|
|
.dialog { |
|
|
|
.desc { |
|
|
|
width: 321px; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.bg_post1 { |
|
|
|
background: url(../../../../../assets/img/recruit/gongye.png) no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
} |
|
|
|
.bg_post2 { |
|
|
|
background: url(../../../../../assets/img/recruit/qudong.png) no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
} |
|
|
|
.bg_post3 { |
|
|
|
background: url(../../../../../assets/img/recruit/gaojichanpin.png) no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
} |
|
|
|
.bg_post4 { |
|
|
|
background: url(../../../../../assets/img/recruit/gaojijiegou.png) no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
} |
|
|
|
.bg_post5 { |
|
|
|
background: url(../../../../../assets/img/recruit/houduan.png) no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
} |
|
|
|
.bg_post6 { |
|
|
|
background: url(../../../../../assets/img/recruit/suanfa.png) no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
} |
|
|
|
.bg_post7 { |
|
|
|
background: url(../../../../../assets/img/recruit/gaojiqianru.png) no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
} |
|
|
|
.bg_post8 { |
|
|
|
background: url(../../../../../assets/img/recruit/gaojiyingjian.png) no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
} |
|
|
|
.bg_post9 { |
|
|
|
background: url(../../../../../assets/img/recruit/qianduan.png) no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
} |
|
|
|
</style> |