Commit 53037ca9 by 前端

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

2 parents 9f5e78ce 0a5050f0

230 KB | W: | H:

119 KB | W: | H:

src/assets/images/big-module-marketing-img.png
src/assets/images/big-module-marketing-img.png
src/assets/images/big-module-marketing-img.png
src/assets/images/big-module-marketing-img.png
  • 2-up
  • Swipe
  • Onion skin

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
......@@ -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`)" />
......
......@@ -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>
......@@ -32,7 +32,7 @@ export default {
},
{
name: 'num',
width: '1.88vw',
width: '2.25vw',
unitIcon: '场'
}
]
......
......@@ -16,14 +16,14 @@ function getBarOptions(obj) {
// formatter: tooltipFormatter || '',
// confine: true
// },
barWidth: 14,
xAxis: {
data: []
},
yAxis: {
name: '',
type: 'value',
// min: 0,
// max: 100,
interval: 250,
splitLine: {
lineStyle: {
color: '#1d2a38'
......@@ -53,15 +53,15 @@ function getBarOptions(obj) {
return new echarts.graphic.LinearGradient(
0, 0, 0, 1, [{ // 代表渐变色从正上方开始
offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
color: '#22D8FF'
color: '#00C8FF'
}, // 柱图渐变色
{
offset: 0.5, // 指100%处的颜色
color: '#223FA9'
},
// {
// offset: 0.5, // 指100%处的颜色
// color: '#223FA9'
// },
{
offset: 1, // 指100%处的颜色
color: '#061422'
color: '#0069F2'
}]
)
}
......
<!--
* @Description: 右下
* @Author: huyue
* @Date: 2024-01-26 21:05:56
* @LastEditors: huyue
* @LastEditTime: 2024-01-29 14:15:07
-->
<template>
<div class="big-module-marketing-box">
<BoxTitle :title="'基于大模型生成营销活动话术'" :textAlign="'center'" class="top-title" :fontSize="20"></BoxTitle>
<div>基于大模型的能力,快速生成个性化的活动标题、</div>
<div>营销文案和活动海报,提升门店营销效率。</div>
<img src="../../../assets/images/big-module-marketing-img.png" alt="" />
<div v-show="isLoading" class="loadding">
<div class="wrap">
<div class="round"></div>
<div class="round"></div>
<div class="round"></div>
<div class="round"></div>
<div class="round"></div>
<div class="round"></div>
<div class="round"></div>
</div>
</div>
<img :src="require(`../../../assets/images/${hasAvtivity ? 'activity-matekting' : 'big-module-marketing-img'}.png`)" alt="" />
<img v-show="showQ" class="ask-question" src="../../../assets/images/ask-question.png" alt="" />
<p v-show="showR" class="ai-reply"></p>
</div>
</template>
<script>
let t = null
export default {
name: 'BigModuleMarketing',
data() {
return {}
return {
showQ: false,
showR: false,
pNode: null,
isLoading: false,
hasAvtivity: false
}
},
mounted() {},
mounted() {
this.pNode = document.querySelector('p')
this.send()
t = setInterval(this.send, 7000)
},
methods: {}
methods: {
send() {
if (!this.showQ) {
this.showText()
} else {
this.showQ = false
this.showR = false
this.isLoading = false
this.hasAvtivity = false
this.pNode.innerHTML = ''
setTimeout(() => {
this.showText()
}, 1000)
}
},
showText() {
this.showQ = true
setTimeout(() => {
this.showR = true
this.addText()
setTimeout(() => {
this.isLoading = true
setTimeout(() => {
this.isLoading = false
this.hasAvtivity = true
}, 3000)
}, 1000)
}, 1000)
},
addText() {
const str = '我们为您生成以下方案,请查看“营销模型解析”'
let i = 0
const timer = setInterval(() => {
if (i < str.length - 1) {
this.pNode.innerHTML = this.pNode.innerHTML + str[i]
i = i + 1
} else {
clearInterval(timer)
}
}, 17)
}
},
destroyed() {
clearInterval(t)
}
}
</script>
<style lang="scss" scoped>
.big-module-marketing-box {
position: relative;
box-sizing: border-box;
width: 31.67vw;
height: 40.37vh;
......@@ -41,5 +117,126 @@ export default {
height: 27.5vh;
margin-top: 1.48vh;
}
.send {
display: inline-block;
position: absolute;
right: 9vw;
top: 22vh;
}
.ask-question {
position: absolute;
right: 9vw;
width: 160px;
height: 22px;
top: 13.5vh;
}
.ai-reply {
position: absolute;
// width: 155px;
// height: 22px;
left: 8vw;
top: 18vh;
}
.activity-form {
position: absolute;
width: 293px;
height: 133px;
bottom: 1.33vh;
left: 7.7vw;
}
}
p {
margin: 0;
background-color: #eee;
box-sizing: border-box;
padding: 3px 5px;
font-size: 8px;
color: #333;
border-radius: 3px;
}
.loadding {
position: absolute;
left: 2dvw;
}
.wrap {
margin: 120px 0 0 240px;
width: 75px;
height: 75px;
position: relative;
/* transform-origin: 设置的效果搭配边框看,效果更加明显 */
/* border: 1px solid #e9e9e9; */
}
.round {
position: absolute;
width: 13px;
height: 13px;
border-radius: 50%;
background-color: rgb(241, 141, 157);
/* 加上动画效果 */
animation: circleRound 2.8s ease infinite;
/* 设置旋转中心,搭配.wrap的border看 */
transform-origin: 50% 75px;
}
/* 注意z-index层级关系,依次递减 */
.round:nth-child(1) {
z-index: 7;
}
/* 注意动画延后animation-delay播放,依次递增 */
/* 至于小圆球则越来越小 */
.round:nth-child(2) {
height: 12px;
width: 12px;
background-color: rgb(199, 136, 185);
animation-delay: 0.2s;
z-index: 6;
}
.round:nth-child(3) {
height: 11px;
width: 11px;
background-color: rgb(153, 69, 223);
animation-delay: 0.4s;
z-index: 5;
}
.round:nth-child(4) {
height: 10px;
width: 10px;
background-color: rgb(69, 141, 223);
animation-delay: 0.6s;
z-index: 4;
}
.round:nth-child(5) {
height: 9px;
width: 9px;
background-color: rgb(69, 223, 203);
animation-delay: 0.8s;
z-index: 3;
}
.round:nth-child(6) {
height: 8px;
width: 8px;
background-color: rgb(100, 223, 69);
animation-delay: 1s;
z-index: 2;
}
.round:nth-child(7) {
height: 7px;
width: 7px;
background-color: rgb(223, 200, 69);
animation-delay: 1.2s;
z-index: 1;
}
@keyframes circleRound {
to {
transform: rotate(1turn);
}
}
</style>
......@@ -6,7 +6,9 @@
<div class="dialogue-content-item">
<div class="dialogue-content-item-top">
<div class="dialogue-content-item-top-left">
<div></div>
<div class="dialogue-content-item-top-img">
<img src="../../../assets/images/avatar.png" alt="">
</div>
<div>
<div>{{ item.name }}</div>
<div>{{ item.phone }}</div>
......@@ -33,8 +35,9 @@
</div>
</Phone>
<Phone class="enterprise-box" :imgName="'customer-detail'">
<div class="video-content" slot="content" @click="openVideo">
<video id="videos" muted="muted" controls autoplay loop>
<div class="video-content" slot="content">
<div class="video-click-content" @click="openVideo"></div>
<video ref="videoRef" id="videos" muted="muted" controls autoplay loop>
<!-- <source src="/media/cc0-videos/flower.webm" type="video/webm" /> -->
<source src="../../../assets/images/video(1).mp4" type="video/mp4" />
</video>
......@@ -63,12 +66,23 @@ export default {
dialogShow: false
}
},
mounted() {
this.$refs.videoRef.addEventListener('ended', this.replayVideo);
},
beforeDestroy() {
this.$refs.videoRef.removeEventListener('ended', this.replayVideo);
},
methods: {
openVideo() {
this.dialogShow = true
},
closeDialog() {
this.dialogShow = false
},
replayVideo() {
const video = this.$refs.videoRef;
video.currentTime = 0;
video.play();
}
}
}
......@@ -90,7 +104,7 @@ export default {
position: absolute;
top: 7.78vh;
left: 0.31vw;
max-height: 24.3vh;
max-height: 21.3vh;
overflow-y: scroll;
&-item {
width: 7.28vw;
......@@ -110,6 +124,11 @@ export default {
&-left {
display: flex;
}
&-img {
width: 0.89vw;
height: 0.89vw;
margin-right: 0.2vw;
}
.call {
width: 1.35vw;
height: 1.57vh;
......@@ -135,6 +154,14 @@ export default {
.enterprise-box {
margin-left: 0.42vw;
position: relative;
.video-click-content {
position: absolute;
top: 0;
left: 0;
width: 8.28vw;
height: 3.97vh;
z-index: 9999;
}
.video-content {
position: absolute;
top: 5.28vh;
......
const AIBarLineData = [
{
statMonth: '2023-10',
outputvalue: 352,
perCusTrans: 158
statMonth: '8月',
outputvalue: 312,
perCusTrans: 297
},
{
statMonth: '2023-11',
outputvalue: 189,
perCusTrans: 255
statMonth: '9月',
outputvalue: 416,
perCusTrans: 355
},
{
statMonth: '2023-12',
outputvalue: 580,
perCusTrans: 286
statMonth: '10月',
outputvalue: 827,
perCusTrans: 446
},
{
statMonth: '2024-01',
outputvalue: 685,
perCusTrans: 311
statMonth: '11月',
outputvalue: 855,
perCusTrans: 452
},
{
statMonth: '2024-02',
outputvalue: 185,
perCusTrans: 258
statMonth: '12月',
outputvalue: 901,
perCusTrans: 587
},
{
statMonth: '2024-03',
outputvalue: 177,
perCusTrans: 457
statMonth: '01月',
outputvalue: 977,
perCusTrans: 701
}
]
......@@ -97,86 +97,102 @@ const marketingStatisData = [
const nearThreadDataList = [
{
statMonth: '23.11',
val: 10
statMonth: '23.02',
val: 899
},
{
statMonth: '23.12',
val: 9
statMonth: '23.03',
val: 757
},
{
statMonth: '23.13',
val: 50
statMonth: '23.04',
val: 997
},
{
statMonth: '23.14',
val: 30
statMonth: '23.05',
val: 876
},
{
statMonth: '23.15',
val: 10
statMonth: '23.06',
val: 878
},
{
statMonth: '23.15',
val: 10
statMonth: '23.07',
val: 1219
},
{
statMonth: '23.15',
val: 10
statMonth: '23.08',
val: 861
},
{
statMonth: '23.15',
val: 10
statMonth: '23.09',
val: 911
},
{
statMonth: '23.15',
val: 10
statMonth: '23.10',
val: 983
},
{
statMonth: '23.11',
val: 864
},
{
statMonth: '23.12',
val: 903
},
{
statMonth: '23.01',
val: 1001
}
]
const activityListData = [
{
isused: "精品升级",
num: 360,
rate: 36
num: 2400,
rate: 35.3
},
{
isused: "权益升级",
num: 280,
rate: 28
num: 1850,
rate: 27.22
},
{
isused: "售后团购",
num: 240,
rate: 24
num: 1599,
rate: 23.52
},
{
isused: "节假日关怀",
num: 120,
rate: 12
num: 950,
rate: 13.96
}
]
const bigModuleChartDataList = [
{
statMonth: '23.11',
val: 10
statMonth: '8月',
val: 248
},
{
statMonth: '23.12',
val: 9
statMonth: '9月',
val: 375
},
{
statMonth: '23.13',
val: 50
statMonth: '10月',
val: 623
},
{
statMonth: '23.14',
val: 30
statMonth: '11月',
val: 746
},
{
statMonth: '23.15',
val: 10
statMonth: '12月',
val: 921
},
{
statMonth: '01月',
val: 1107
},
]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!