Commit 0bc1b37b by 杨明

企业介绍

1 parent 1112b633
Showing 26 changed files with 231 additions and 29 deletions
<!--
* @Description:
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-26 20:23:37
-->
<template>
<div class="introduce-container">
<div class="introduce-box">
<div class="introduce-box-title linear-gradient-text">
{{ Introduce.title }}
</div>
<div class="introduce-box-content">
{{ Introduce.content }}
</div>
</div>
<div class="books-box">
<div class="books-box-title">
{{ Introduce.qualificationsTitle }}
</div>
<div class="books-line">
<img src="@/assets/images/viewEntireLifecycleOfCar/line.png" />
</div>
<div class="qualifications-list">
<div class="qualifications-item" v-for="(item, index) in Introduce.qualificationsList" :key="index">
<div class="qualifications-title">{{ item.title }}</div>
<div class="qualifications-num linear-gradient-text">
{{ item.num }}
<span :class="{ f28: item.unit == '+' ? true : false }">{{ item.unit }}</span>
</div>
</div>
</div>
<el-carousel class="swiper-box" :autoplay="false">
<el-carousel-item v-for="(item, index) in Introduce.booksList" :key="index">
<div class="swiper-body">
<div class="books-item" v-for="(i, idx) in 6" :key="index">
<img :src="require(`@/assets/images/viewEntireLifecycleOfCar/b${index + 1}_${idx + 1}.png`)" />
</div>
</div>
</el-carousel-item>
</el-carousel>
</div>
</div>
</template>
<script>
import detail from '@/utils/data'
export default {
name: 'Introduce',
data() {
return {
Introduce: detail.Introduce
}
},
created() {}
}
</script>
<style lang="scss" scoped>
.introduce-box {
width: 492px;
height: 404px;
background: url('../assets/images/viewEntireLifecycleOfCar/border_1.png');
background-size: 100% 100%;
padding: 12px 52px;
box-sizing: border-box;
&-title {
font-weight: 700;
font-size: 28px;
color: #ffffff;
letter-spacing: 1px;
line-height: 40px;
text-align: center;
}
.books-line img {
width: 436px;
height: 6px;
}
&-content {
margin-top: 50px;
font-size: 18px;
color: #dedede;
letter-spacing: 0;
line-height: 40px;
}
}
.books-box {
margin-top: 24px;
width: 492px;
height: 496px;
background: url('../assets/images/viewEntireLifecycleOfCar/border_2.png');
background-size: 100% 100%;
padding: 28px;
box-sizing: border-box;
&-title {
font-size: 22px;
color: #44ffff;
letter-spacing: 0;
line-height: 32px;
}
.qualifications-list {
display: flex;
gap: 17px;
margin-top: 20px;
.qualifications-item {
width: 134px;
height: 100px;
background: url('../assets/images/viewEntireLifecycleOfCar/q-border.png');
background-size: 100% 100%;
padding: 16px 20px;
box-sizing: border-box;
.qualifications-title {
font-size: 13px;
color: #ffffff;
}
.qualifications-num {
font-size: 36px;
color: #6578ff;
line-height: 36px;
margin-top: 10px;
span {
font-size: 16px;
color: #0ffadf;
margin-left: -10px;
&.f28 {
font-size: 28px;
}
}
}
}
}
.swiper-box {
padding-top: 28px;
height: 250px;
/deep/ {
.el-carousel__container {
height: 100%;
}
.el-carousel__arrow {
display: none;
}
.el-carousel__button {
width: 24px;
height: 4px;
opacity: 0.35;
transform: scaleY(-1) rotate(-180deg);
background-image: linear-gradient(90deg, #00c8ff 0%, #0069f2 100%);
}
.is-active {
.el-carousel__button {
opacity: 1;
}
}
}
.swiper-body {
display: flex;
gap: 28px 17px;
flex-wrap: wrap;
.books-item {
width: 134px;
height: 96px;
background: url('../assets/images/viewEntireLifecycleOfCar/books-border.png');
background-size: 100% 100%;
position: relative;
padding: 8px;
box-sizing: border-box;
img {
width: 118px;
height: 80px;
opacity: 0.9;
}
}
}
}
}
</style>
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: 基础数据 * @Description: 基础数据
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 11:46:53 * @Date: 2023-07-04 11:46:53
* @LastEditors: huyue * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-08-16 14:33:14 * @LastEditTime: 2024-01-26 17:35:31
*/ */
const DefaultData = { const DefaultData = {
defaultLineHeight: '17.32', defaultLineHeight: '17.32',
...@@ -61,8 +61,38 @@ const DefaultData = { ...@@ -61,8 +61,38 @@ const DefaultData = {
} }
const RankColor = ['linear-gradient(180deg, #FFDA0B 0%, #FFBC24 100%)', 'linear-gradient(180deg, #EBE5D6 0%, #BDB4A6 100%)', 'linear-gradient(180deg, #EEC08E 0%, #B86E3A 100%)'] const RankColor = ['linear-gradient(180deg, #FFDA0B 0%, #FFBC24 100%)', 'linear-gradient(180deg, #EBE5D6 0%, #BDB4A6 100%)', 'linear-gradient(180deg, #EEC08E 0%, #B86E3A 100%)']
const Introduce = {
title: '企业介绍',
content:
'深圳广联数科科技有限公司成立于2012年,总部位于广东省深圳市。深圳广联数科科技有限公司是中国领先的汽车智能网联数字化服务提供商,行业份额市场第一,基于物联网、人工智能、大数据为基础,以广联新能源车主服务行业大模型为核心,结合SAAS+服务能力,为车企及经销商提供DTC模式的多元的数字化解决方案。',
qualificationsTitle: '技术专利资质',
qualificationsList: [
{
title: '已授权专利',
num: '24',
unit: '项'
},
{
title: '审查中专利',
num: '30',
unit: '+'
},
{
title: '软件著作权',
num: '45',
unit: '+'
}
],
booksList:[{
list:[]
},{
list:[]
},{
list:[]
}]
}
export default Object.freeze({ export default Object.freeze({
DefaultData, DefaultData,
RankColor RankColor,
Introduce
}) })
...@@ -37,21 +37,19 @@ ...@@ -37,21 +37,19 @@
</p> </p>
</div> --> </div> -->
<Introduce></Introduce>
</div> </div>
</template> </template>
<script> <script>
import Introduce from '@/components/Introduce'
export default { export default {
name: 'ViewEntireLifecycleOfCar', name: 'ViewEntireLifecycleOfCar',
components: { components: { Introduce },
},
data() { data() {
return { return {}
}
},
created() {
}, },
created() {},
mounted() { mounted() {
var carousel = document.querySelector('.carousel') var carousel = document.querySelector('.carousel')
var cells = carousel.querySelectorAll('.carousel__cell') var cells = carousel.querySelectorAll('.carousel__cell')
...@@ -66,8 +64,7 @@ export default { ...@@ -66,8 +64,7 @@ export default {
function rotateCarousel() { function rotateCarousel() {
var angle = theta * selectedIndex * -1 var angle = theta * selectedIndex * -1
carousel.style.transform = 'translateZ(' + -radius + 'px) ' + carousel.style.transform = 'translateZ(' + -radius + 'px) ' + rotateFn + '(' + angle + 'deg)'
rotateFn + '(' + angle + 'deg)'
} }
var prevButton = document.querySelector('.previous-button') var prevButton = document.querySelector('.previous-button')
...@@ -90,7 +87,7 @@ export default { ...@@ -90,7 +87,7 @@ export default {
cellCount = cellsRange.value cellCount = cellsRange.value
theta = 360 / cellCount theta = 360 / cellCount
var cellSize = isHorizontal ? cellWidth : cellHeight var cellSize = isHorizontal ? cellWidth : cellHeight
radius = Math.round((cellSize / 2) / Math.tan(Math.PI / cellCount)) radius = Math.round(cellSize / 2 / Math.tan(Math.PI / cellCount))
for (var i = 0; i < cells.length; i++) { for (var i = 0; i < cells.length; i++) {
var cell = cells[i] var cell = cells[i]
if (i < cellCount) { if (i < cellCount) {
...@@ -108,8 +105,8 @@ export default { ...@@ -108,8 +105,8 @@ export default {
rotateCarousel() rotateCarousel()
} }
var orientationRadios = document.querySelectorAll('input[name="orientation"]'); var orientationRadios = document.querySelectorAll('input[name="orientation"]')
(function () { ;(function () {
for (var i = 0; i < orientationRadios.length; i++) { for (var i = 0; i < orientationRadios.length; i++) {
var radio = orientationRadios[i] var radio = orientationRadios[i]
radio.addEventListener('change', onOrientationChange) radio.addEventListener('change', onOrientationChange)
...@@ -126,8 +123,7 @@ export default { ...@@ -126,8 +123,7 @@ export default {
// set initials // set initials
onOrientationChange() onOrientationChange()
}, },
methods: { methods: {}
}
} }
</script> </script>
...@@ -158,7 +154,7 @@ body { ...@@ -158,7 +154,7 @@ body {
} }
.scene { .scene {
border: 1px solid #CCC; border: 1px solid #ccc;
margin: 40px 0; margin: 40px 0;
position: relative; position: relative;
width: 210px; width: 210px;
...@@ -194,39 +190,39 @@ body { ...@@ -194,39 +190,39 @@ body {
transition: transform 1s, opacity 1s; transition: transform 1s, opacity 1s;
} }
.carousel__cell:nth-child(9n+1) { .carousel__cell:nth-child(9n + 1) {
background: hsla(0, 100%, 50%, 0.8); background: hsla(0, 100%, 50%, 0.8);
} }
.carousel__cell:nth-child(9n+2) { .carousel__cell:nth-child(9n + 2) {
background: hsla(40, 100%, 50%, 0.8); background: hsla(40, 100%, 50%, 0.8);
} }
.carousel__cell:nth-child(9n+3) { .carousel__cell:nth-child(9n + 3) {
background: hsla(80, 100%, 50%, 0.8); background: hsla(80, 100%, 50%, 0.8);
} }
.carousel__cell:nth-child(9n+4) { .carousel__cell:nth-child(9n + 4) {
background: hsla(120, 100%, 50%, 0.8); background: hsla(120, 100%, 50%, 0.8);
} }
.carousel__cell:nth-child(9n+5) { .carousel__cell:nth-child(9n + 5) {
background: hsla(160, 100%, 50%, 0.8); background: hsla(160, 100%, 50%, 0.8);
} }
.carousel__cell:nth-child(9n+6) { .carousel__cell:nth-child(9n + 6) {
background: hsla(200, 100%, 50%, 0.8); background: hsla(200, 100%, 50%, 0.8);
} }
.carousel__cell:nth-child(9n+7) { .carousel__cell:nth-child(9n + 7) {
background: hsla(240, 100%, 50%, 0.8); background: hsla(240, 100%, 50%, 0.8);
} }
.carousel__cell:nth-child(9n+8) { .carousel__cell:nth-child(9n + 8) {
background: hsla(280, 100%, 50%, 0.8); background: hsla(280, 100%, 50%, 0.8);
} }
.carousel__cell:nth-child(9n+0) { .carousel__cell:nth-child(9n + 0) {
background: hsla(320, 100%, 50%, 0.8); background: hsla(320, 100%, 50%, 0.8);
} }
...@@ -239,7 +235,6 @@ body { ...@@ -239,7 +235,6 @@ body {
left: 250px; left: 250px;
transform: rotateY(35deg) translateZ(150px) translateY(150px) skewY(-5deg) scaleX(-1.5); transform: rotateY(35deg) translateZ(150px) translateY(150px) skewY(-5deg) scaleX(-1.5);
;
} }
.carousel__cell:nth-child(3) { .carousel__cell:nth-child(3) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!