Commit e3d3ce1b by 胡悦

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-scene into v1.0.0

2 parents e4169051 66126fff
......@@ -27,6 +27,7 @@
text-align: center;
.title {
position: relative;
flex: 2;
font-family: SourceHanSansCN-Bold;
font-weight: 700;
......@@ -46,6 +47,26 @@
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.title:before,
.title:after{
position: absolute;
display: block;
content:"";
width: 64px;
height: 21px;
top:50%;
transform: translateY(-50%);
}
.title:before{
background:url('../assets/images/title_left.png') no-repeat;
background-size:64px auto;
left:-110px;
}
.title:after{
background:url('../assets/images/title_right.png') no-repeat;
background-size:64px auto;
right:-110px;
}
}
.right_box {
......

4.09 KB | W: | H:

6.28 KB | W: | H:

src/assets/images/car/car_5.1.png
src/assets/images/car/car_5.1.png
src/assets/images/car/car_5.1.png
src/assets/images/car/car_5.1.png
  • 2-up
  • Swipe
  • Onion skin

3.97 KB | W: | H:

5.55 KB | W: | H:

src/assets/images/car/car_5.4.png
src/assets/images/car/car_5.4.png
src/assets/images/car/car_5.4.png
src/assets/images/car/car_5.4.png
  • 2-up
  • Swipe
  • Onion skin

164 KB | W: | H:

145 KB | W: | H:

src/assets/images/top_bg.png
src/assets/images/top_bg.png
src/assets/images/top_bg.png
src/assets/images/top_bg.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-29 10:00:04
* @LastEditTime: 2024-01-29 10:14:25
-->
<template>
<div class="introduce-container">
......@@ -31,8 +31,8 @@
</div>
</div>
</div>
<el-carousel class="swiper-box" ref="slideCarousel">
<el-carousel-item v-for="(item, index) in Introduce.booksList" interval="10000" :key="'sw' + index">
<el-carousel class="swiper-box" ref="slideCarousel" :interval="10000">
<el-carousel-item v-for="(item, index) in Introduce.booksList" :key="'sw' + index">
<div class="swiper-body">
<div class="books-item" v-for="(i, idx) in 6" :key="'book' + idx">
<img :src="require(`@/assets/images/viewEntireLifecycleOfCar/b${index + 1}_${idx + 1}.png`)" />
......
......@@ -46,39 +46,6 @@ export default {
ViewEntireLifecycleOfCar,
EnergyCar
},
computed: {
tabName() {
let sname
switch (this.activeName) {
case 'm_1.0':
sname = 'ViewSolar'
break
case 'm_1.1':
sname = 'ViewBoutique'
break
case 'm_1.3':
sname = 'ViewCrowdfunding'
break
case 'm_2.1':
sname = 'ViewEquity'
break
case 'operational':
sname = 'ViewOperational'
break
case 'interior':
sname = 'ViewLifeSceneData'
break
case 'business':
sname = 'ViewSolar'
break
case 'lifecycleOfCar':
sname = 'viewEntireLifecycleOfCar'
// default:
// sname = 'ViewSolar'
}
return sname
}
},
data() {
return {
activeName: '',
......
......@@ -7,7 +7,8 @@
<div class="header">
<div class="title">丰富的行业应用</div>
<img class="bg" src="../../../assets/images/viewEntireLifecycleOfCar/header_ring.png" alt="" />
<div v-for="(item, index) in headerLabelList" :key="index" :class="['item_' + `${index + 1}`, item.footer ? '' : 'oneLine']" class="item">
<div v-for="(item, index) in headerLabelList" :key="index"
:class="['item_' + `${index + 1}`, item.footer ? '' : 'oneLine']" class="item">
{{ item.header }}
<br v-if="item.footer" />
{{ item.footer }}
......@@ -132,42 +133,6 @@
<img class="bg" src="../../../assets/images/viewEntireLifecycleOfCar/footer_ring.png" alt="" />
</div>
</div>
<!-- <div class="scene">
<div class="carousel">
<div class="carousel__cell">1</div>
<div class="carousel__cell">2</div>
<div class="carousel__cell">3</div>
<div class="carousel__cell">4</div>
<div class="carousel__cell">5</div>
<div class="carousel__cell">6</div>
<div class="carousel__cell">7</div>
</div>
</div> -->
<!-- <div class="carousel-options">
<p>
<label>
Cells
<input class="cells-range" type="range" min="3" max="15" value="9" />
</label>
</p>
<p>
<button class="previous-button">Previous</button>
<button class="next-button">Next</button>
</p>
<p>
Orientation:
<label>
<input type="radio" name="orientation" value="horizontal" checked />
horizontal
</label>
<label>
<input type="radio" name="orientation" value="vertical" />
vertical
</label>
</p>
</div> -->
</div>
</template>
......@@ -229,80 +194,8 @@ export default {
// created() {
// return {}
// },
created() {},
mounted() {
var carousel = document.querySelector('.carousel')
var cells = carousel.querySelectorAll('.carousel__cell')
var cellCount // cellCount set from cells-range input value
var selectedIndex = 0
var cellWidth = carousel.offsetWidth
var cellHeight = carousel.offsetHeight
var isHorizontal = true
var rotateFn = isHorizontal ? 'rotateY' : 'rotateX'
var radius, theta
// console.log( cellWidth, cellHeight );
function rotateCarousel() {
var angle = theta * selectedIndex * -1
carousel.style.transform = 'translateZ(' + -radius + 'px) ' + rotateFn + '(' + angle + 'deg)'
}
var prevButton = document.querySelector('.previous-button')
prevButton.addEventListener('click', function () {
selectedIndex--
rotateCarousel()
})
var nextButton = document.querySelector('.next-button')
nextButton.addEventListener('click', function () {
selectedIndex++
rotateCarousel()
})
var cellsRange = document.querySelector('.cells-range')
cellsRange.addEventListener('change', changeCarousel)
cellsRange.addEventListener('input', changeCarousel)
function changeCarousel() {
cellCount = cellsRange.value
theta = 360 / cellCount
var cellSize = isHorizontal ? cellWidth : cellHeight
radius = Math.round(cellSize / 2 / Math.tan(Math.PI / cellCount))
for (var i = 0; i < cells.length; i++) {
var cell = cells[i]
if (i < cellCount) {
// visible cell
cell.style.opacity = 1
var cellAngle = theta * i
cell.style.transform = rotateFn + '(' + cellAngle + 'deg) translateZ(' + radius + 'px) ' + `translateZ (100px)`
} else {
// hidden cell
cell.style.opacity = 0
cell.style.transform = 'none'
}
}
created() { },
rotateCarousel()
}
var orientationRadios = document.querySelectorAll('input[name="orientation"]')
;(function () {
for (var i = 0; i < orientationRadios.length; i++) {
var radio = orientationRadios[i]
radio.addEventListener('change', onOrientationChange)
}
})()
function onOrientationChange() {
var checkedRadio = document.querySelector('input[name="orientation"]:checked')
isHorizontal = checkedRadio.value == 'horizontal'
rotateFn = isHorizontal ? 'rotateY' : 'rotateX'
changeCarousel()
}
// set initials
onOrientationChange()
},
methods: {}
}
</script>
......@@ -627,10 +520,15 @@ export default {
}
ul {
padding: 0;
// list-style: none;
margin: -30px auto 0;
margin-left: -30px;
list-style: none;
width: 400px;
height: 400px;
// width: 400px;
// height: 400px;
width: 260px;
height: 230px;
margin: 0 auto;
// margin-top: 200px;
position: relative;
......@@ -642,13 +540,14 @@ ul {
@keyframes spin {
to {
transform: rotateX(-10deg) rotateY(360deg);
transform: rotateX(0deg) rotateY(360deg);
// transform: rotateX(-10deg) rotateY(360deg);
}
}
ul:hover {
animation-play-state: paused;
}
// ul:hover {
// animation-play-state: paused;
// }
li {
position: absolute;
......@@ -671,9 +570,7 @@ li:nth-child(2) {
}
li:nth-child(3) {
transform: rotateY(60deg) translateZ(-600px);
// transform: rotateY(102.8deg) translateZ(600px);
// transform: rotateY(60deg) translateZ(-600px);
transform: rotateY(60deg) scaleX(-1) translateZ(-600px);
}
li:nth-child(4) {
......@@ -687,141 +584,7 @@ li:nth-child(5) {
}
li:nth-child(6) {
transform: rotateY(-60deg) translateZ(-600px);
transform: rotateY(-60deg) scaleX(-1) translateZ(-600px);
// transform: rotateY(-60deg) translateZ(600px);
}
* {
box-sizing: border-box;
}
body {
font-family: sans-serif;
text-align: center;
}
.scene {
border: 1px solid #ccc;
margin: 40px 0;
position: relative;
width: 210px;
height: 140px;
margin: 80px auto;
perspective: 1000px;
}
.carousel {
width: 100%;
height: 100%;
position: absolute;
transform: translateZ(-288px);
transform-style: preserve-3d;
transition: transform 1s;
}
.carousel__cell {
position: absolute;
// width: 520px;
width: 260px;
height: 230px;
left: 10px;
top: 10px;
border: 2px solid black;
line-height: 230px;
font-size: 80px;
font-weight: bold;
color: white;
text-align: center;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/horseRaceLampItemBg.png);
background-size: 100% 100%;
transition: transform 1s, opacity 1s;
}
.carousel__cell:nth-child(9n + 1) {
background: hsla(0, 100%, 50%, 0.8);
}
.carousel__cell:nth-child(9n + 2) {
background: hsla(40, 100%, 50%, 0.8);
}
.carousel__cell:nth-child(9n + 3) {
background: hsla(80, 100%, 50%, 0.8);
}
.carousel__cell:nth-child(9n + 4) {
background: hsla(120, 100%, 50%, 0.8);
}
.carousel__cell:nth-child(9n + 5) {
background: hsla(160, 100%, 50%, 0.8);
}
.carousel__cell:nth-child(9n + 6) {
background: hsla(200, 100%, 50%, 0.8);
}
.carousel__cell:nth-child(9n + 7) {
background: hsla(240, 100%, 50%, 0.8);
}
.carousel__cell:nth-child(9n + 8) {
background: hsla(280, 100%, 50%, 0.8);
}
.carousel__cell:nth-child(9n + 0) {
background: hsla(320, 100%, 50%, 0.8);
}
.carousel__cell:nth-child(1) {
transform: rotateY(0deg) translateZ(288px) translateY(200px);
}
.carousel__cell:nth-child(2) {
// transform: rotateY(40deg) translateZ(288px);
left: 250px;
transform: rotateY(35deg) translateZ(150px) translateY(150px) skewY(-5deg) scaleX(-1.5);
}
.carousel__cell:nth-child(3) {
left: 200px;
// translateX(200px)
transform: rotateY(102deg) translateZ(288px) skewY(-8deg) scaleX(-1.5);
}
.carousel__cell:nth-child(4) {
left: 125px;
transform: rotateY(153deg) translateZ(288px) translateY(-50px) skewY(-2deg) scaleX(-1.2);
}
.carousel__cell:nth-child(5) {
left: 80px;
transform: rotateY(204deg) translateZ(288px) translateY(-50px) skewY(2deg) scaleX(-1.2);
}
.carousel__cell:nth-child(6) {
left: -40px;
transform: rotateY(255deg) translateZ(288px) skewY(8deg) scaleX(-1.5);
}
.carousel__cell:nth-child(7) {
transform: rotateY(306deg) translateZ(288px) translateY(150px) skewY(5deg) scaleX(-1.5);
}
// .carousel__cell:nth-child(8) {
// transform: rotateY(280deg) translateZ(288px);
// }
// .carousel__cell:nth-child(9) {
// transform: rotateY(320deg) translateZ(288px);
// }
.carousel-options {
display: none;
text-align: center;
position: relative;
z-index: 2;
background: hsla(0, 0%, 100%, 0.8);
}
</style>
......@@ -108,6 +108,9 @@ export default {
},
methods: {
toFixNum(val) {
if(!val){
return '0.0%'
}
return (val * 100).toFixed(1) + '%'
},
getMerchantData() {
......
......@@ -52,6 +52,9 @@ export default {
},
methods: {
toFixRatio(val) {
if(!val){
return '0.00%'
}
return (val * 100).toFixed(2) + '%'
},
toFixNum(val) {
......
......@@ -46,7 +46,10 @@ export default {
},
methods: {
toFixNum(val) {
return (val * 100).toFixed(1) + '%'
if(!val){
return '0.0%'
}
return (Number(val) * 100).toFixed(1) + '%'
},
getEnterpriseOverview() {
this.api.operational.getEnterpriseOverview().then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!