Commit 5144f962 by 匡雅琴

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

2 parents 5b7d193a e940944c
<!--
* @Description:
* @Description:
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @LastEditors: yangming yangming@didihu.com.cn
......@@ -31,7 +31,7 @@
</div>
</div>
</div>
<el-carousel class="swiper-box" ref="slideCarousel" :interval="10000">
<el-carousel class="swiper-box" ref="slideCarousel" :interval="4000" autoplay>
<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">
......@@ -54,33 +54,33 @@ export default {
}
},
mounted() {
//调用方法
// 调用方法
this.slideBanner()
},
methods: {
// 滑动切换
slideBanner() {
//选中的轮播图
// 选中的轮播图
var box = document.querySelector('.swiper-box')
var startPoint = 0
var stopPoint = 0
//重置坐标
// 重置坐标
var resetPoint = function () {
startPoint = 0
stopPoint = 0
}
//手指按下
// 手指按下
box.addEventListener('touchstart', function (e) {
//手指点击位置的X坐标
// 手指点击位置的X坐标
startPoint = e.changedTouches[0].pageX
})
//手指滑动
// 手指滑动
box.addEventListener('touchmove', function (e) {
//手指滑动后终点位置X的坐标
// 手指滑动后终点位置X的坐标
stopPoint = e.changedTouches[0].pageX
})
//当手指抬起的时候,判断图片滚动离左右的距离
let that = this
// 当手指抬起的时候,判断图片滚动离左右的距离
const that = this
box.addEventListener('touchend', function (e) {
console.log('1:' + startPoint)
console.log('2:' + stopPoint)
......@@ -112,6 +112,7 @@ export default {
background-size: 100% 100%;
padding: 12px 52px;
box-sizing: border-box;
&-title {
font-weight: 700;
font-size: 28px;
......@@ -120,10 +121,12 @@ export default {
line-height: 40px;
text-align: center;
}
.books-line img {
width: 436px;
height: 6px;
}
&-content {
margin-top: 50px;
font-size: 18px;
......@@ -132,6 +135,7 @@ export default {
line-height: 40px;
}
}
.books-box {
margin-top: 24px;
width: 492px;
......@@ -140,16 +144,19 @@ export default {
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;
......@@ -157,21 +164,25 @@ export default {
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;
font-weight: 700;
span {
font-weight: 500;
font-size: 16px;
color: #0ffadf;
margin-left: -10px;
&.f28 {
font-size: 28px;
}
......@@ -179,16 +190,20 @@ export default {
}
}
}
.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;
......@@ -196,16 +211,19 @@ export default {
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;
......@@ -214,6 +232,7 @@ export default {
position: relative;
padding: 8px;
box-sizing: border-box;
img {
width: 118px;
height: 80px;
......
......@@ -82,7 +82,7 @@ export default {
nextClick() {
let index = this.current
if (index == 3) {
this.current = 1;
this.current = 0;
return false
}
this.current = index + 1
......
......@@ -253,6 +253,7 @@ export default {
}
.item {
box-sizing: border-box;
width: 84px;
height: 84px;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/ring.png);
......@@ -540,8 +541,8 @@ ul {
@keyframes spin {
to {
transform: rotateX(0deg) rotateY(360deg);
// transform: rotateX(-10deg) rotateY(360deg);
// transform: rotateX(0deg) rotateY(360deg);
transform: rotateX(-10deg) rotateY(360deg);
}
}
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-01-26 21:05:56
* @LastEditors: huyue
* @LastEditTime: 2024-01-29 14:15:07
* @LastEditTime: 2024-01-29 14:54:02
-->
<template>
<div class="big-module-marketing-box">
......@@ -23,7 +23,7 @@
</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>
<p id="qestion-2" v-show="showR" class="ai-reply"></p>
</div>
</template>
......@@ -43,7 +43,7 @@ export default {
},
mounted() {
this.pNode = document.querySelector('p')
this.pNode = document.getElementById('qestion-2')
this.send()
t = setInterval(this.send, 7000)
},
......@@ -150,18 +150,18 @@ p {
background-color: #eee;
box-sizing: border-box;
padding: 3px 5px;
font-size: 8px;
font-size: 7px;
color: #333;
border-radius: 3px;
}
.loadding {
position: absolute;
left: 2dvw;
right: 4.6vw;
}
.wrap {
margin: 120px 0 0 240px;
width: 75px;
height: 75px;
width: 25px;
height: 25px;
position: relative;
/* transform-origin: 设置的效果搭配边框看,效果更加明显 */
/* border: 1px solid #e9e9e9; */
......@@ -169,14 +169,14 @@ p {
.round {
position: absolute;
width: 13px;
height: 13px;
width: 11px;
height: 11px;
border-radius: 50%;
background-color: rgb(241, 141, 157);
/* 加上动画效果 */
animation: circleRound 2.8s ease infinite;
/* 设置旋转中心,搭配.wrap的border看 */
transform-origin: 50% 75px;
transform-origin: 50% 25px;
}
/* 注意z-index层级关系,依次递减 */
......@@ -187,48 +187,48 @@ p {
/* 注意动画延后animation-delay播放,依次递增 */
/* 至于小圆球则越来越小 */
.round:nth-child(2) {
height: 12px;
width: 12px;
height: 10px;
width: 10px;
background-color: rgb(199, 136, 185);
animation-delay: 0.2s;
z-index: 6;
}
.round:nth-child(3) {
height: 11px;
width: 11px;
height: 9px;
width: 9px;
background-color: rgb(153, 69, 223);
animation-delay: 0.4s;
z-index: 5;
}
.round:nth-child(4) {
height: 10px;
width: 10px;
height: 8px;
width: 8px;
background-color: rgb(69, 141, 223);
animation-delay: 0.6s;
z-index: 4;
}
.round:nth-child(5) {
height: 9px;
width: 9px;
height: 7px;
width: 7px;
background-color: rgb(69, 223, 203);
animation-delay: 0.8s;
z-index: 3;
}
.round:nth-child(6) {
height: 8px;
width: 8px;
height: 6px;
width: 6px;
background-color: rgb(100, 223, 69);
animation-delay: 1s;
z-index: 2;
}
.round:nth-child(7) {
height: 7px;
width: 7px;
height: 5px;
width: 5px;
background-color: rgb(223, 200, 69);
animation-delay: 1.2s;
z-index: 1;
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-01-26 11:36:05
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 21:56:54
* @LastEditTime: 2024-01-29 14:39:00
-->
<template>
<div class="hot-box">
......@@ -41,7 +41,8 @@ export default {
},
mounted() {
TagCloud('.tagcloud', texts, {
radius: 100
radius: 100,
maxSpeed: 'slow'
})
}
}
......
......@@ -3,12 +3,12 @@
<Phone :imgName="'ai-dialogue'">
<div class="dialogue-content" slot="content">
<div class="dialog-item">
<img class="avatar m-s-l" src="../../../assets//images/user-avatar.png" alt="">
<div class="user-content m-l">为什么这么贵?不就是一层塑料纸吗?</div>
<img class="avatar m-s-l" src="../../../assets//images/user-avatar.png" alt="">
</div>
<div class="dialog-item">
<div class="user-content m-r">这位先生/女士/老板,一分钱一分货,就像同一款衣服,为什么有上万的,也有几百的,它材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。</div>
<img class="avatar m-s-r" src="../../../assets//images/ai-avatar.png" alt="">
<div class="user-content m-r" id="qestion-1"></div>
</div>
</div>
</Phone>
......@@ -20,16 +20,38 @@
</Phone>
<div class="markeing-descript">
<div class="second-title">营销提问应答</div>
<div class="descript">基于大量行业数据的训练和GPT的技术,智能知识库为从事汽车增值服务的销售人员提供专业的销售话术生成以及客户销售建议。</div>
<div class="descript">
基于大量行业数据的训练和GPT的技术,智能知识库为从事汽车增值服务的销售人员提供专业的销售话术生成以及客户销售建议。
</div>
</div>
</div>
</template>
<script>
let pNode = null
import Phone from "./Phone.vue"
export default {
name: 'MarketingQuestion',
components: {
Phone
},
mounted() {
pNode = document.getElementById('qestion-1')
const str = '这位先生/女士/老板,一分钱一分货,就像同一款衣服,为什么有上万的,也有几百的,它材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。'
this.addText(str)
},
methods: {
addText(str) {
// const str = '这位先生/女士/老板,一分钱一分货,就像同一款衣服,为什么有上万的,也有几百的,它材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。'
let i = 0
const timer = setInterval(() => {
if (i < str.length - 1) {
pNode.innerHTML = pNode.innerHTML + str[i]
i = i + 1
} else {
clearInterval(timer)
}
}, 30)
}
}
}
</script>
......@@ -52,7 +74,7 @@ export default {
color: #fff;
.dialog-item {
display: flex;
flex-direction: row-reverse;
// flex-direction: row-reverse;
align-items: center;
align-items: baseline;
padding: 0.65vh 0.26vw 0;
......
......@@ -36,6 +36,7 @@ export default {
// background: url(../../../assets/images/ai-dialogue.png) ;
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!