|
@ -0,0 +1,123 @@ |
|
|
|
|
|
<template> |
|
|
|
|
|
<div class="factory_card_container"> |
|
|
|
|
|
<img v-lazy="getImgSrc()" alt="" class="img" /> |
|
|
|
|
|
<div class="btn">{{ getTitle() }}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script setup> |
|
|
|
|
|
import A1 from '@/assets/img/factory/gongchang1.png' |
|
|
|
|
|
import A2 from '@/assets/img/factory/gongchang2.png' |
|
|
|
|
|
import A3 from '@/assets/img/factory/gongchang3.png' |
|
|
|
|
|
import A4 from '@/assets/img/factory/gongchang4.png' |
|
|
|
|
|
import A5 from '@/assets/img/factory/gongchang5.png' |
|
|
|
|
|
import A6 from '@/assets/img/factory/gongchang6.png' |
|
|
|
|
|
import A7 from '@/assets/img/factory/gongchang7.png' |
|
|
|
|
|
import A8 from '@/assets/img/factory/gongchang8.png' |
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
|
|
i: String, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const getImgSrc = () => { |
|
|
|
|
|
if (props.i == '1') { |
|
|
|
|
|
return A1 |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '2') { |
|
|
|
|
|
return A2 |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '3') { |
|
|
|
|
|
return A3 |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '4') { |
|
|
|
|
|
return A4 |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '5') { |
|
|
|
|
|
return A5 |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '6') { |
|
|
|
|
|
return A6 |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '7') { |
|
|
|
|
|
return A7 |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '8') { |
|
|
|
|
|
return A8 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
const getTitle = () => { |
|
|
|
|
|
if (props.i == '1') { |
|
|
|
|
|
return '车间全景' |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '2') { |
|
|
|
|
|
return '车间一角' |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '3') { |
|
|
|
|
|
return '数控龙门五面体加工中心' |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '4') { |
|
|
|
|
|
return '威立AA1680数控立式加工中心' |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '5') { |
|
|
|
|
|
return '加育LVC-755三轴加工中心' |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '6') { |
|
|
|
|
|
return '纽威NL504SA数控卧式车床' |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '7') { |
|
|
|
|
|
return '五轴工作钻台' |
|
|
|
|
|
} |
|
|
|
|
|
if (props.i == '8') { |
|
|
|
|
|
return '纽威NL201HC数控卧式车床' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|
.factory_card_container { |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
position: relative; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
transition-property: all; |
|
|
|
|
|
transition-duration: 0.7s; |
|
|
|
|
|
animation-fill-mode: forwards; |
|
|
|
|
|
width: 424px; |
|
|
|
|
|
height: 349px; |
|
|
|
|
|
.img { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
transition-property: all; |
|
|
|
|
|
transition-duration: 0.7s; |
|
|
|
|
|
animation-fill-mode: forwards; |
|
|
|
|
|
} |
|
|
|
|
|
.btn { |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
bottom: 0; |
|
|
|
|
|
left: 0; |
|
|
|
|
|
right: 0; |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 56px; |
|
|
|
|
|
background: rgba(0, 0, 0, 0.55); |
|
|
|
|
|
// backdrop-filter: blur(10px); |
|
|
|
|
|
font-family: Source Han Sans CN; |
|
|
|
|
|
font-weight: 400; |
|
|
|
|
|
color: #ffffff; |
|
|
|
|
|
font-size: 20px; |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
padding: 18 0px; |
|
|
|
|
|
transition-property: all; |
|
|
|
|
|
transition-duration: 0.7s; |
|
|
|
|
|
animation-fill-mode: forwards; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.factory_card_container:hover { |
|
|
|
|
|
border: none; |
|
|
|
|
|
.img { |
|
|
|
|
|
transform: scale(1.1); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
</style> |