|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="dian_container"> |
|
|
<div class="dian_container"> |
|
|
<div class="wrap"> |
|
|
<div class="wrap"> |
|
|
<img :src="getImgSrc()" alt="" class="img" /> |
|
|
|
|
|
|
|
|
<img :src="getImgSrc()" alt="" :class="getImgClass()" /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="btn">{{ title }}</div> |
|
|
<div class="btn">{{ title }}</div> |
|
|
</div> |
|
|
</div> |
|
@ -27,6 +27,12 @@ const props = defineProps({ |
|
|
title: String, |
|
|
title: String, |
|
|
i: String, |
|
|
i: String, |
|
|
}) |
|
|
}) |
|
|
|
|
|
const getImgClass = () => { |
|
|
|
|
|
if (['1', '2', '4', '5', '6', '7', '8', '9', '10'].includes(props.i)) { |
|
|
|
|
|
return 'img1' |
|
|
|
|
|
} |
|
|
|
|
|
return 'img2' |
|
|
|
|
|
} |
|
|
const getImgSrc = () => { |
|
|
const getImgSrc = () => { |
|
|
if (props.i == '1') { |
|
|
if (props.i == '1') { |
|
|
return A1 |
|
|
return A1 |
|
@ -98,13 +104,20 @@ const getImgSrc = () => { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
.img { |
|
|
|
|
|
|
|
|
.img1 { |
|
|
transition-property: all; |
|
|
transition-property: all; |
|
|
transition-duration: 0.7s; |
|
|
transition-duration: 0.7s; |
|
|
width: 170px; |
|
|
|
|
|
|
|
|
width: 240px; |
|
|
height: auto; |
|
|
height: auto; |
|
|
animation-fill-mode: forwards; |
|
|
animation-fill-mode: forwards; |
|
|
} |
|
|
} |
|
|
|
|
|
.img2 { |
|
|
|
|
|
transition-property: all; |
|
|
|
|
|
transition-duration: 0.7s; |
|
|
|
|
|
height: 90%; |
|
|
|
|
|
width: auto; |
|
|
|
|
|
animation-fill-mode: forwards; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.btn { |
|
|
.btn { |
|
|