Commit a1d876ff by 胡悦

修改动画效果

1 parent 0a5050f0
......@@ -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!