CenterModel.vue
7.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<template>
<div class="center-model">
<div class="card-box flex">
<template v-for="(i, index) in topList">
<div :key="index" :class="['card-item floating-element', { 'hover-item': index < 2 }]" @click="index < 2 ? showDialog(index) : null">
<img class="card-item-bg" :src="topImgList[index]" />
<div class="card-text">{{ i }}</div>
</div>
</template>
</div>
<div class="center-box">
<div class="model-title">
<div class="text">用户数据元件</div>
</div>
<div class="arrow">
<img src="@/assets/images/factor/center-top-arrow.png" />
<img class="box-center" src="@/assets/images/factor/center-top-arrow.gif" />
</div>
<div class="center-list flex">
<template v-for="(i, index) in centerList">
<div :key="index" class="center-item">
<img class="bg" src="@/assets/images/factor/center-icon.png" />
<div class="text-box flex">
<div class="text-title">{{ i.title }}</div>
<div class="text" v-html="i.text"></div>
</div>
</div>
</template>
<div class="fixed-text-box box-center flex">
<!-- <div class="text">数据</div>
<div class="text">元件</div> -->
</div>
</div>
<div class="arrow">
<img src="@/assets/images/factor/center-bottom-arrow.png" />
<img class="box-center" src="@/assets/images/factor/center-bottom-arrow.gif" />
</div>
<div class="model-title">
<div class="text">车辆数据元件</div>
</div>
</div>
<div class="card-box flex">
<template v-for="(i, index) in bottomList">
<div :key="index" :class="['card-item floating-element', { 'hover-item': index < 2 }]" @click="index < 2 ? showDialog(index + 2) : null">
<img class="card-item-bg" :src="bottomImgList[index]" />
<div class="card-text">{{ i }}</div>
</div>
</template>
</div>
<dialog-box :isShowDialog.sync="isShowDialog" :backgroundImageList="backgroundImageList" :currentIndex.sync="currentIndex" :titleList="titleList" />
</div>
</template>
<script type="text/ecmascript-6">
import DialogBox from './DialogBox.vue'
export default {
name: '',
components: {
DialogBox
},
data () {
return {
topImgList: [
require('@/assets/images/factor/center-top-1.png'),
require('@/assets/images/factor/center-top-2.png'),
require('@/assets/images/factor/center-top-3.png'),
require('@/assets/images/factor/center-top-4.png'),
],
topList: ['UBI保险评分', '精准营销画像', '个性化轻改画像', '车主权益整合'],
bottomImgList: [
require('@/assets/images/factor/center-bottom-1.png'),
require('@/assets/images/factor/center-bottom-2.png'),
require('@/assets/images/factor/center-bottom-3.png'),
require('@/assets/images/factor/center-bottom-4.png'),
],
bottomList: ['碰撞送修识别', '汽车金融风控', '电池健康度评估', '车辆残值评估'],
centerList: [
{ 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 () {
},
methods: {
showDialog (index) {
this.isShowDialog = true
this.currentIndex = index
}
}
}
</script>
<style scoped lang="scss">
.center-model {
width: 1028px;
height: 83.65vh;
background-size: cover;
background-repeat: no-repeat;
position: absolute;
left: 735px;
top: 0;
&::after {
content: '';
width: 975px;
height: 81.92vh;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: -25px;
background-image: url('../../../assets/images/factor/factor-center.png');
background-size: cover;
z-index: -1;
}
.card-box {
justify-content: center;
gap: 0 20px;
margin-bottom: 0.46vh;
.card-item {
width: 185px;
height: 17.3vh;
font-weight: 700;
font-size: 16px;
color: #ffffff;
position: relative;
box-sizing: border-box;
text-align: center;
padding-top: 10.8vh;
.card-text {
position: relative;
z-index: 2;
}
&-bg {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
color: #b6fafc;
}
}
.hover-item {
cursor: pointer;
&:hover {
transform: scale(1.1);
}
}
}
.center-box {
position: relative;
&::before {
position: absolute;
top: -5vh;
left: 50%;
transform: translateX(-50%);
content: '';
width: 586px;
height: 60.77vh;
background-image: url('../../../assets/images/factor/center-arrow.png');
background-size: cover;
background-repeat: no-repeat;
}
.arrow {
width: 536px;
height: 3.85vh;
display: block;
margin: 0 auto;
position: relative;
}
.center-list {
justify-content: center;
position: relative;
.fixed-text-box {
width: 310px;
height: 2.5vh;
justify-content: space-between;
.text {
font-family: SourceHanSansCN-Bold;
font-weight: 700;
font-size: 26px;
letter-spacing: 0.93px;
background: linear-gradient(to right, #01a4f9, #6df5f9);
-webkit-background-clip: text;
color: transparent;
}
}
.center-item {
width: 162px;
height: 28.85vh;
position: relative;
.bg {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
.text-box {
position: relative;
z-index: 2;
flex-direction: column;
.text-title {
font-weight: 500;
font-size: 20px;
color: #ffffff;
letter-spacing: 0.71px;
padding: 3.75vh 0 5.38vh;
}
.text {
font-weight: 500;
font-size: 16px;
color: #e8e8e8;
line-height: 2.5vh;
text-align: center;
}
}
&:nth-child(2) {
margin: 0 76px 0 87px;
}
}
}
}
.model-title {
margin: 0 auto;
position: relative;
z-index: 2;
top: 0;
}
}
</style>