Commit 9c6110f1 by 前端

ui

1 parent a604b977
.top_head { .top_head {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background: url('../assets/images/top_bg.png') no-repeat center bottom; background: url("../assets/images/top_bg.png") no-repeat center bottom;
background-size: 100% auto; background-size: 100% auto;
//height: 9.44vh; //height: 9.44vh;
height: 114px; height: 114px;
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
.logo { .logo {
.img { .img {
width: 6.65vw; width: 166px;
height: 3.46vh; height: 36px;
margin: 1.67vh 0 0 1.67vw; margin: 1.67vh 0 0 1.67vw;
} }
} }
...@@ -34,27 +34,25 @@ ...@@ -34,27 +34,25 @@
font-size: 44px; font-size: 44px;
letter-spacing: 0px; letter-spacing: 0px;
line-height: 44px; line-height: 44px;
// background: linear-gradient(left right, #00c8ff 0%, #0069f2 100%); // background: linear-gradient(left right, #00c8ff 0%, #0069f2 100%);
// background-clip: text; // background-clip: text;
// -webkit-background-clip: text; // -webkit-background-clip: text;
// -webkit-text-fill-color: transparent; // -webkit-text-fill-color: transparent;
background: linear-gradient(to right, background: linear-gradient(to right, #00c8ff 0%, #0069f2 100%);
#00c8ff 0%,
#0069f2 100%);
background-clip: text; background-clip: text;
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
} }
.title:before, .title:before,
.title:after{ .title:after {
position: absolute; position: absolute;
display: block; display: block;
content:""; content: "";
width: 64px; width: 64px;
height: 21px; height: 21px;
top:50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
} }
// .title:before{ // .title:before{
...@@ -82,7 +80,7 @@ ...@@ -82,7 +80,7 @@
font-family: SourceHanSansCN-Medium; font-family: SourceHanSansCN-Medium;
font-weight: 500; font-weight: 500;
font-size: 10px; font-size: 10px;
color: #56FEFE; color: #56fefe;
letter-spacing: 0; letter-spacing: 0;
line-height: 15px; line-height: 15px;
} }
...@@ -91,7 +89,7 @@ ...@@ -91,7 +89,7 @@
font-family: SourceHanSansCN-Medium; font-family: SourceHanSansCN-Medium;
font-weight: 500; font-weight: 500;
font-size: 20px; font-size: 20px;
color: #56FEFE; color: #56fefe;
letter-spacing: 2px; letter-spacing: 2px;
line-height: 29px; line-height: 29px;
} }
...@@ -100,7 +98,7 @@ ...@@ -100,7 +98,7 @@
.welcome { .welcome {
width: 7.93vw; width: 7.93vw;
height: 100%; height: 100%;
background: url('../assets/images/top_user.png') no-repeat top center; background: url("../assets/images/top_user.png") no-repeat top center;
background-size: 100% auto; background-size: 100% auto;
text-align: center; text-align: center;
margin: 0.93vh 1.25vw 0 3.54vw; margin: 0.93vh 1.25vw 0 3.54vw;
...@@ -110,12 +108,11 @@ ...@@ -110,12 +108,11 @@
font-family: SourceHanSansCN-Regular; font-family: SourceHanSansCN-Regular;
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 14px;
color: #56FEFE; color: #56fefe;
letter-spacing: 0; letter-spacing: 0;
// margin-top:16px; // margin-top:16px;
line-height: 0; line-height: 0;
} }
} }
} }
}
\ No newline at end of file \ No newline at end of file
}
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
&-title { &-title {
font-weight: 700; font-weight: 1000;
font-size: 28px; font-size: 28px;
color: #ffffff; color: #ffffff;
letter-spacing: 1px; letter-spacing: 1px;
...@@ -150,6 +150,7 @@ export default { ...@@ -150,6 +150,7 @@ export default {
color: #44ffff; color: #44ffff;
letter-spacing: 0; letter-spacing: 0;
line-height: 32px; line-height: 32px;
font-weight: 700;
} }
.qualifications-list { .qualifications-list {
...@@ -162,13 +163,14 @@ export default { ...@@ -162,13 +163,14 @@ export default {
height: 66px; height: 66px;
background: url('../assets/images/viewEntireLifecycleOfCar/q-border.png'); background: url('../assets/images/viewEntireLifecycleOfCar/q-border.png');
background-size: 100% 100%; background-size: 100% 100%;
padding: 25px 20px; padding: 15px 29px;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;
.qualifications-title { .qualifications-title {
font-size: 13px; font-size: 16px;
color: #ffffff; color: #ffffff;
} }
...@@ -177,13 +179,13 @@ export default { ...@@ -177,13 +179,13 @@ export default {
color: #6578ff; color: #6578ff;
line-height: 36px; line-height: 36px;
font-weight: 700; font-weight: 700;
margin-left: 20px; margin-left: 15px;
span { span {
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
color: #0ffadf; color: #0ffadf;
margin-left: 10px; margin-left: 5px;
&.f28 { &.f28 {
font-size: 28px; font-size: 28px;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* @LastEditTime: 2024-01-29 17:42:23 * @LastEditTime: 2024-01-29 17:42:23
*/ */
const DefaultData = { const DefaultData = {
defaultLineHeight: '16.32', defaultLineHeight: '15.32',
defaultPieHeight: '13.05', defaultPieHeight: '13.05',
yearList: ['2023', '2022'], yearList: ['2023', '2022'],
menuList: [ menuList: [
......
...@@ -551,7 +551,7 @@ li { ...@@ -551,7 +551,7 @@ li {
position: absolute; position: absolute;
width: 260px; width: 260px;
height: 208px; height: 208px;
top: 180px; top: 120px;
left: 0; left: 0;
background: url(../../../assets/images/viewEntireLifecycleOfCar/horseRaceLampItemBg.png); background: url(../../../assets/images/viewEntireLifecycleOfCar/horseRaceLampItemBg.png);
background-size: 100% 100%; background-size: 100% 100%;
......
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
width: 0.94vw; width: 0.94vw;
height: 0.93vh; height: 0.93vh;
transform: rotate(90deg); transform: rotate(90deg);
background: url(../../../assets/images/operation//icon-title.png) no-repeat; background: url(../../../assets/images/operation/icon-title.png) no-repeat;
background-size: 100%; background-size: 100%;
margin-top: 7px; margin-top: 7px;
margin-left: 14px; margin-left: 14px;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div :class="['content-item', 'flex-around', info.pd ? info.pd : '']" v-for="(info, index) in infoList" :key="index"> <div :class="['content-item', 'flex-around', info.pd ? info.pd : '']" v-for="(info, index) in infoList" :key="index">
<div class="content-title">{{ info.title }}</div> <div class="content-title">{{ info.title }}</div>
<template v-for="(data, ids) in info.dataList"> <template v-for="(data, ids) in info.dataList">
<div v-if="ids != 2" :class="['content-number', 'num-' + ids]" :key="ids"> <div v-if="ids != 3" :class="['content-number', 'num-' + ids]" :key="ids">
{{ index == 0 ? numAddSymbol(data(smartClueData)) : index == 1 ? numAddSymbol(data(merchantData)) : numAddSymbol(data(smartData)) }} {{ index == 0 ? numAddSymbol(data(smartClueData)) : index == 1 ? numAddSymbol(data(merchantData)) : numAddSymbol(data(smartData)) }}
</div> </div>
<div v-else :class="['content-number', 'num-' + ids]" :key="ids"> <div v-else :class="['content-number', 'num-' + ids]" :key="ids">
...@@ -60,27 +60,28 @@ export default { ...@@ -60,27 +60,28 @@ export default {
smartData: '', // 智慧车管线索订阅 smartData: '', // 智慧车管线索订阅
smartClueData: '', // 智慧门店线索订阅 smartClueData: '', // 智慧门店线索订阅
titleList: [ titleList: [
{ text: '订阅门店', width: '2.78vw' }, { text: '订阅门店', width: '5.78vw' },
{ text: '线索订阅门店数(累计)', width: '3.82vw' }, { text: '线索订阅门店数(累计)', width: '5.82vw' },
{ text: '线索订阅门店数(当年新增)', width: '6.82vw' },
{ text: '活跃使用门店', width: '4.95vw' }, { text: '活跃使用门店', width: '4.95vw' },
{ text: '留存率', width: '4.29vw' } { text: '留存率', width: '3.29vw' }
], ],
infoList: [ infoList: [
{ {
title: '智慧门店线索订阅', title: '智慧门店线索订阅',
pd: 'pd26', pd: 'pd26',
width: '2.78vw', width: '2.78vw',
dataList: [obj => obj.totalnum, obj => obj.activenum, obj => obj.retention] dataList: [obj => obj.totalnum, obj => obj.activenum, obj => obj.increnum, obj => obj.retention]
}, },
{ {
title: '门店会员的权益', title: '门店会员的权益',
width: '2.78vw', width: '2.78vw',
dataList: [obj => obj.totalnum, obj => obj.activenum, obj => obj.retention] dataList: [obj => obj.totalnum, obj => obj.activenum, obj => obj.increnum, obj => obj.retention]
}, },
{ {
title: '智慧车管线索订阅', title: '智慧车管线索订阅',
width: '2.78vw', width: '2.78vw',
dataList: [obj => obj.totalnum, obj => obj.activenum, obj => obj.retention] dataList: [obj => obj.totalnum, obj => obj.activenum, obj => obj.increnum, obj => obj.retention]
} }
], ],
clewList: [ clewList: [
...@@ -160,7 +161,7 @@ export default { ...@@ -160,7 +161,7 @@ export default {
font-weight: 600; font-weight: 600;
font-size: 12px; font-size: 12px;
color: #e8e8e8; color: #e8e8e8;
text-align: center; padding-left: 20px;
} }
.content { .content {
width: 100%; width: 100%;
...@@ -181,21 +182,21 @@ export default { ...@@ -181,21 +182,21 @@ export default {
} }
} }
&-title { &-title {
width: 2.78vw; width: 4.98vw;
font-weight: 400; font-weight: 400;
font-size: 12px; font-size: 12px;
color: #fff; color: #fff;
text-align: center; padding-left: 20px;
// white-space: pre-wrap; // white-space: pre-wrap;
} }
&-number { &-number {
font-weight: 700; font-weight: 700;
font-size: 12px; font-size: 12px;
color: #ffffff; color: #ffffff;
text-align: center; padding-left: 20px;
} }
.num-0 { .num-0 {
width: 3.82vw; width: 6.95vw;
} }
.num-1 { .num-1 {
width: 4.95vw; width: 4.95vw;
...@@ -203,8 +204,11 @@ export default { ...@@ -203,8 +204,11 @@ export default {
.num-2 { .num-2 {
width: 4.29vw; width: 4.29vw;
} }
.num-3 {
width: 3.29vw;
}
.pd26 { .pd26 {
height: 9.01vh; height: 8.21vh;
padding: 3.17vh 0; padding: 3.17vh 0;
} }
} }
...@@ -217,13 +221,13 @@ export default { ...@@ -217,13 +221,13 @@ export default {
margin-bottom: 0.49vh; margin-bottom: 0.49vh;
background: rgba(11, 44, 142, 0.28); background: rgba(11, 44, 142, 0.28);
.clew-line-text { .clew-line-text {
padding: 0.85vh 0.56vw 0.73vh 0.56vw; padding: 0.85vh 2.56vw 0.73vh 2.56vw;
font-weight: 400; font-weight: 400;
font-size: 12px; font-size: 12px;
color: #fff; color: #fff;
border-bottom: 1px solid #0e2949; border-bottom: 1px solid #0e2949;
box-sizing: border-box; box-sizing: border-box;
height: 2.97vh; height: 2.72vh;
.clew-num { .clew-num {
font-weight: 700; font-weight: 700;
font-size: 12px; font-size: 12px;
......
<template> <template>
<div class="video-container"> <div class="video-container">
<video controls autoplay class="video-box" ref="video"> <video controls autoplay class="video-box" ref="video">
<source :src="videoSrc" type="video/mp4" /> <source src="@/assets/video/car.mp4" type="video/mp4" />
</video> </video>
<div class="video-pause" @click="hanldPlay('pause')" v-if="status == 'play'"> <div class="video-pause" @click="hanldPlay('pause')" v-if="status == 'play'">
<img src="@/assets/images/play-icon.png" /> <img src="@/assets/images/play-icon.png" />
</div> </div>
<div class="video-play" @click="hanldPlay('play')" v-else><img src="@/assets/images/pause-icon.png" /></div> <div class="video-play" @click="hanldPlay('play')" v-if="status == 'pause'"><img src="@/assets/images/pause-icon.png" /></div>
</div> </div>
</template> </template>
...@@ -17,25 +17,48 @@ export default { ...@@ -17,25 +17,48 @@ export default {
data() { data() {
return { return {
videoSrc: 'https://www.runoob.com/try/demo_source/movie.mp4', videoSrc: 'https://www.runoob.com/try/demo_source/movie.mp4',
status: 'play' status: 'play',
timer: null
} }
}, },
mounted() { mounted() {
this.watchVideo() this.watchVideo()
}, },
watch: {
status(val) {
if (this.timer) {
clearTimeout(this.timer)
}
if (val == 'pause') {
this.timer = setTimeout(() => {
this.status = ''
}, 3000)
}
}
},
methods: { methods: {
watchVideo() { watchVideo() {
this.$refs.video.addEventListener('ended', () => { this.$refs.video.addEventListener('ended', () => {
this.status = 'play' this.status = 'play'
}) })
this.$refs.video.addEventListener('play', () => {
this.status = 'pause'
})
this.$refs.video.addEventListener('pause', () => {
this.status = 'play'
})
document.addEventListener('fullscreenchange', function (e) { document.addEventListener('fullscreenchange', function (e) {
console.log('fullscreenchange', e) let isFull
if (document.fullscreenElement) {
isFull = true
} else {
isFull = false
}
this.isFull = true
}) })
}, },
hanldPlay(status) { hanldPlay(status) {
this.status = status
if (status == 'pause') { if (status == 'pause') {
this.$refs.video.play() this.$refs.video.play()
} else { } else {
...@@ -50,9 +73,8 @@ export default { ...@@ -50,9 +73,8 @@ export default {
.video-container { .video-container {
width: 1560px; width: 1560px;
height: 878px; height: 878px;
border: 4px solid #1377f8; border: 4px solid rgba(18, 117, 248, 0.5);
box-sizing: border-box; box-sizing: border-box;
border-radius: 50px;
overflow: hidden; overflow: hidden;
margin: 20px auto; margin: 20px auto;
position: relative; position: relative;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!