Commit 7c9a4e53 by 李伟康

commit 提交

1 parent 73d7a9a1
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<div <div
:key="index" :key="index"
class="card-item" class="card-item"
@click="index < 2 ?showDialog(index) : null"
> >
<img <img
class="card-item-bg" class="card-item-bg"
...@@ -66,6 +67,7 @@ ...@@ -66,6 +67,7 @@
<div <div
:key="index" :key="index"
class="card-item" class="card-item"
@click="index < 2 ?showDialog(index + 2) : null"
> >
<img <img
class="card-item-bg" class="card-item-bg"
...@@ -75,12 +77,22 @@ ...@@ -75,12 +77,22 @@
</div> </div>
</template> </template>
</div> </div>
<dialog-box
:isShowDialog.sync="isShowDialog"
:backgroundImageList="backgroundImageList"
:currentIndex.sync="currentIndex"
:titleList="titleList"
/>
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import DialogBox from './DialogBox.vue'
export default { export default {
name: '', name: '',
components: {
DialogBox
},
data () { data () {
return { return {
topImgList: [ topImgList: [
...@@ -101,12 +113,26 @@ export default { ...@@ -101,12 +113,26 @@ export default {
{ title: '车辆维度', text: '基本信息<br>行驶数据<br>位置数据<br>状态数据<br>维保信息<br>充电信息' }, { title: '车辆维度', text: '基本信息<br>行驶数据<br>位置数据<br>状态数据<br>维保信息<br>充电信息' },
{ title: '车主纬度', text: '基本信息<br>身份信息<br>驾驶习惯<br>事故信息<br>违章信息<br>投保信息' }, { title: '车主纬度', text: '基本信息<br>身份信息<br>驾驶习惯<br>事故信息<br>违章信息<br>投保信息' },
{ title: '公共数据', text: '交易数据<br>交通数据<br>环境数据<br>停电场数据<br>充电桩数据<br>零配件数据' } { title: '公共数据', text: '交易数据<br>交通数据<br>环境数据<br>停电场数据<br>充电桩数据<br>零配件数据' }
] ],
backgroundImageList: [
require('@/assets/images/factor/center-dialog-1.png'),
require('@/assets/images/factor/center-dialog-2.png'),
require('@/assets/images/factor/center-dialog-3.png'),
require('@/assets/images/factor/center-dialog-4.png'),
],
titleList:['UBI保险评分','精准营销画像','碰撞送修识别','汽车金融风控'],
currentIndex: 0,
isShowDialog: false
} }
}, },
mounted () { mounted () {
}, },
methods: { methods: {
showDialog (index) {
console.log(index)
this.isShowDialog = true
this.currentIndex = index
}
} }
} }
</script> </script>
...@@ -120,7 +146,7 @@ export default { ...@@ -120,7 +146,7 @@ export default {
position: absolute; position: absolute;
left: 735px; left: 735px;
top: 0; top: 0;
background-image: url('../../assets/images/factor/factor-center.png'); background-image: url('../../../assets/images/factor/factor-center.png');
.card-box { .card-box {
justify-content: center; justify-content: center;
gap: 0 20px; gap: 0 20px;
...@@ -158,7 +184,7 @@ export default { ...@@ -158,7 +184,7 @@ export default {
content: ''; content: '';
width: 586px; width: 586px;
height: 60.77vh; height: 60.77vh;
background-image: url('../../assets/images/factor/center-arrow.png'); background-image: url('../../../assets/images/factor/center-arrow.png');
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
...@@ -177,6 +203,7 @@ export default { ...@@ -177,6 +203,7 @@ export default {
height: 2.5vh; height: 2.5vh;
justify-content: space-between; justify-content: space-between;
.text { .text {
font-family: SourceHanSansCN-Bold;
font-weight: 700; font-weight: 700;
font-size: 26px; font-size: 26px;
letter-spacing: 0.93px; letter-spacing: 0.93px;
......
<template>
<div
class="mask"
v-if="isShowDialog"
>
<div
class="dialog-wrap"
:style="{'background-image': `url(${backgroundImageList[currentIndex]})`}"
>
<div class="dialog">
<div class="dialog-title">
{{titleList[currentIndex]}}
<div
class="close"
@click="closeHandle"
>
<img src="@/assets/images/icon-close.png" />
</div>
</div>
</div>
<div class="left_arrow">
<div class="arrow_inner" @click="changeHandle(-1)">
<img src="@/assets/images/arrow_left.png" class="img" />
<img src="@/assets/images/arrow_circle.png" class="circle" />
</div>
</div>
<div class="right_arrow">
<div class="arrow_inner" @click="changeHandle(1)">
<img src="@/assets/images/arrow_right.png" class="img" />
<img src="@/assets/images/arrow_circle.png" class="circle" />
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'MyDialog',
props: {
isShowDialog: Boolean,
titleList: {
type: Array,
default: () => []
},
currentIndex: {
type: Number,
default: 0
},
backgroundImageList: {
type: Array,
default: () => []
}
},
data () {
return {
msg: ''
}
},
methods: {
closeHandle () {
this.$emit('update:isShowDialog', false)
},
changeHandle(val){
const {currentIndex,backgroundImageList} = this
if((currentIndex == 0 && val == -1) || (currentIndex == backgroundImageList.length - 1 && val == 1)) return alert('无更多内容')
this.$emit('update:currentIndex', currentIndex + val)
}
}
}
</script>
<style lang="scss" scoped>
.mask {
position: fixed;
z-index: 99;
left: 50%;
top: 50%;
background: rgba(0, 0, 0, 0.8);
animation: show-mask 0.2s forwards;
transform: translate(-50%, -50%);
}
@keyframes show-mask {
0% {
width: 0;
height: 0;
opacity: 0;
}
100% {
width: 100%;
height: 100%;
opacity: 1;
}
}
.dialog-wrap {
width: 67.31%;
height: 90.38%;
position: absolute;
z-index: 1;
left: 50%;
top: 50%;
background-repeat: no-repeat;
background-size: 100% 100%;
transform: translate(-50%, -50%);
border-radius: 5px;
padding: 0 3.67vw 3.9vh;
box-sizing: border-box;
.close {
width: 60px;
height: 60px;
position: absolute;
right: -31vw;
top: 0;
cursor: pointer;
z-index: 3;
}
.dialog-title {
width: 13.19vw;
font-weight: 900;
font-size: 30px;
color: #19ecff;
// background-image: url('../../../assets/images/title-dialog.png');
// background-repeat: no-repeat;
// background-size: 100% 100%;
text-align: center;
margin: 0 auto;
position: relative;
line-height: 8.39vh;
}
.dialog-content {
flex-wrap: wrap;
justify-content: space-between;
margin-top: 3.5vh;
.axis {
width: 26.88vw;
height: 34.97vh;
margin-right: 1.25vw;
img {
height: 100%;
}
}
.content-top-title {
width: 10vw;
margin: 7px auto;
display: flex;
align-items: center;
height: 2.68vh;
.title-icon {
width: 21px;
height: 7px;
}
.title {
font-weight: 500;
font-size: 16px;
color: #ffffff;
margin: 0 auto;
height: 2.68vh;
line-height: 2.68vh;
}
}
.content-info {
font-weight: 400;
font-size: 14px;
color: #c0c8d4;
margin: 0 auto;
text-align: center;
}
}
.content-top {
width: 25.14vw;
height: 27.93vh;
margin-bottom: 4.45vh;
}
.content-bottom {
width: 25.14vw;
height: 14.88vh;
font-weight: 400;
font-size: 14px;
color: #ffffff;
padding: 1.2vh 1.39vw;
box-sizing: border-box;
.title {
font-weight: 500;
font-size: 16px;
margin-bottom: 8px;
height: 2.68vh;
}
.info {
font-weight: 400;
font-size: 14px;
color: #c0c8d4;
}
}
.bg {
background: #001d43;
box-shadow: inset 0 0 20px 0 #003587;
border-radius: 4px;
}
}
.left_arrow,
.right_arrow {
position: absolute;
top: 0;
bottom: 0;
z-index: 10;
width: 100px;
.arrow_inner {
position: absolute;
width: 100px;
height: 50vh;
top: 50%;
transform: translateY(-50%);
z-index: 99;
cursor: pointer;
}
.img {
width: 48px;
height: 48px;
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.circle {
width: 84px;
height: 84px;
position: absolute;
top: 50%;
// transform: translateY(-50%);
margin-top: -42px;
z-index: 98;
}
}
.left_arrow {
left: -162px;
.img {
left: 18px;
}
.circle {
left: 0;
}
}
.right_arrow {
right: -162px;
.img {
right: 18px;
}
.circle {
right: 0;
}
}
.left_arrow:hover,
.right_arrow:hover {
.circle {
animation: rotate360 1.2s ease-out 0s;
}
}
@keyframes rotate360 {
100% {
transform: rotate(360deg);
}
}
</style>
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
@import url('./model.scss'); @import url('./model.scss');
.model { .model {
background-image: url('../../assets/images/factor/factor-left.png'); background-image: url('../../../assets/images/factor/factor-left.png');
left: 80px; left: 80px;
.gif { .gif {
position: absolute; position: absolute;
...@@ -121,6 +121,7 @@ export default { ...@@ -121,6 +121,7 @@ export default {
font-size: 20px; font-size: 20px;
letter-spacing: 0.71px; letter-spacing: 0.71px;
margin: 0.38vh 0; margin: 0.38vh 0;
font-family: SourceHanSansCN-Bold;
} }
.item-box { .item-box {
width: 588px; width: 588px;
......
...@@ -24,7 +24,10 @@ ...@@ -24,7 +24,10 @@
:key="index" :key="index"
> >
<div class="border box-center"></div> <div class="border box-center"></div>
<img :src="i" class="img"> <img
:src="i"
class="img"
>
</div> </div>
</template> </template>
<div class="chain-line-box flex y-center"> <div class="chain-line-box flex y-center">
...@@ -82,7 +85,7 @@ export default { ...@@ -82,7 +85,7 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
@import url('./model.scss'); @import url('./model.scss');
.model { .model {
background-image: url('../../assets/images/factor/factor-right.png'); background-image: url('../../../assets/images/factor/factor-right.png');
padding-top: 7.48vh; padding-top: 7.48vh;
right: 80px; right: 80px;
.gif { .gif {
...@@ -140,7 +143,7 @@ export default { ...@@ -140,7 +143,7 @@ export default {
content: ''; content: '';
height: 50%; height: 50%;
width: 4px; width: 4px;
background: linear-gradient(to bottom, transparent 20% 50%, #56fefe 50% 51%); background: linear-gradient(to bottom, transparent 20%, #56fefe 40%, transparent 60%);
background-size: 1px 10px; background-size: 1px 10px;
} }
&::before { &::before {
...@@ -156,7 +159,7 @@ export default { ...@@ -156,7 +159,7 @@ export default {
position: absolute; position: absolute;
width: 40px; width: 40px;
height: 3.85vh; height: 3.85vh;
background-image: url('../../assets/images/factor/right-arrow.png'); background-image: url('../../../assets/images/factor/right-arrow.png');
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
left: 50%; left: 50%;
...@@ -175,7 +178,7 @@ export default { ...@@ -175,7 +178,7 @@ export default {
width: 79px; width: 79px;
height: 4px; height: 4px;
box-sizing: border-box; box-sizing: border-box;
background: linear-gradient(to right, transparent 20% 50%, #56fefe 50% 51%); background: linear-gradient(to right, transparent 20%, #56fefe 40%, transparent 60%);
background-size: 10px 1px; background-size: 10px 1px;
animation: move-dots-right 4s linear infinite; animation: move-dots-right 4s linear infinite;
.icon { .icon {
...@@ -189,11 +192,12 @@ export default { ...@@ -189,11 +192,12 @@ export default {
display: block; display: block;
width: 67px; width: 67px;
height: 10.78vh; height: 10.78vh;
background-image: url('../../assets/images/factor/right-icon.png'); background-image: url('../../../assets/images/factor/right-icon.png');
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.text { .text {
font-family: SourceHanSansCN-Bold;
font-weight: 700; font-weight: 700;
font-size: 22px; font-size: 22px;
letter-spacing: 0.79px; letter-spacing: 0.79px;
...@@ -217,7 +221,7 @@ export default { ...@@ -217,7 +221,7 @@ export default {
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
height: 4px; height: 4px;
background: linear-gradient(to right, transparent 20% 50%, #56fefe 50% 51%); background: linear-gradient(to right, transparent 20%, #56fefe 40%, transparent 60%);
background-size: 10px 1px; background-size: 10px 1px;
animation: move-dots-right 4s linear infinite; animation: move-dots-right 4s linear infinite;
} }
...@@ -269,11 +273,11 @@ export default { ...@@ -269,11 +273,11 @@ export default {
top: 2px; top: 2px;
width: calc(100% - 4px); width: calc(100% - 4px);
height: calc(100% - 4px); height: calc(100% - 4px);
background: rgb(6,33,69); background: rgb(6, 33, 69);
border-radius: 12px; border-radius: 12px;
} }
} }
.img{ .img {
position: relative; position: relative;
z-index: 2; z-index: 2;
} }
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
.model-title { .model-title {
width: 207px; width: 207px;
height: 5.19vh; height: 5.19vh;
background-image: url('../../assets/images/factor/factor-title.png'); background-image: url('../../../assets/images/factor/factor-title.png');
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
top: -4.04vh; top: -4.04vh;
...@@ -20,12 +20,14 @@ ...@@ -20,12 +20,14 @@
justify-content: center; justify-content: center;
.text { .text {
font-family: SourceHanSansCN-Bold;
font-weight: 700; font-weight: 700;
font-size: 24px; font-size: 24px;
letter-spacing: 0.86px; letter-spacing: 0.86px;
background: linear-gradient(to right, #01A4F9, #6DF5F9); background: linear-gradient(to right, #01A4F9, #6DF5F9);
-webkit-background-clip: text; -webkit-background-clip: text;
color: transparent; color: transparent;
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -13,14 +13,15 @@ ...@@ -13,14 +13,15 @@
<right-model /> <right-model />
</div> </div>
<character-rain /> <character-rain />
<div class="layout-bg"></div>
</div> </div>
</template> </template>
<script> <script>
import LeftModel from './LeftModel' import LeftModel from './components/LeftModel'
import CenterModel from './CenterModel.vue' import CenterModel from './components/CenterModel.vue'
import RightModel from './RightModel' import RightModel from './components/RightModel'
import CharacterRain from './CharacterRain.vue' import CharacterRain from './components/CharacterRain.vue'
export default { export default {
name: 'EnergyCar', name: 'EnergyCar',
components: { components: {
...@@ -40,14 +41,28 @@ export default { ...@@ -40,14 +41,28 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.layout { .layout {
width: 100%; width: 100%;
height: 100%;
background: url('../../assets/images/factor/factor-bg.png') no-repeat center;
background-size: contain;
position: relative;
&-box { &-box {
position: relative; position: relative;
z-index: 2; z-index: 2;
height: 100%; height: 100%;
} }
&-bg {
position: fixed;
left: 50%;
transform: translateX(-50%);
width: 1761px;
height: 93.94vh;
background: url('../../assets/images/factor/factor-bg.png');
background-size: contain;
animation: show-bg 1s forwards;
}
@keyframes show-bg {
0%{
bottom: -100%;
}
100%{
bottom: 0;
}
}
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!