MarketingQuestion.vue
5.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<template>
<div class="markeing-box">
<Phone :imgName="'ai-dialogue'">
<div class="dialogue-content" slot="content">
<div v-if="showQ" class="dialog-item">
<div class="user-content m-l">为什么这么贵?不就是一层塑料纸吗?</div>
<img class="avatar m-s-l" src="../../../assets//images/user-avatar.png" alt="" />
</div>
<div v-show="showR" class="dialog-item">
<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>
<Phone class="enterprise-box" :imgName="'scrip-bg'">
<div class="enterprise" slot="content">
<div class="enterprise-item">
贴膜和车是没有任何关系的,别误会了,车今天开过来没有贴膜,不是一样的开过来了吗,现在您不贴膜直接开回家吃午饭也是一样能够开回去,不是说不贴膜,车子就不能开了,所以贴膜主要是保护车内人的行驶安全、舒适…
</div>
<div class="enterprise-item">
材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。
</div>
</div>
</Phone>
<div class="markeing-descript">
<div class="second-title">营销提问应答</div>
<div class="descript">基于大量行业数据的训练和GPT的技术,智能知识库为从事汽车增值服务的销售人员提供专业的销售话术生成以及客户销售建议。</div>
<div class="qr-code">
<img src="../../../assets//images/QR-code.png" alt="" />
</div>
</div>
</div>
</template>
<script>
import Phone from './Phone.vue'
export default {
name: 'MarketingQuestion',
components: {
Phone
},
data() {
return {
showQ: false,
showR: false,
pNode: null,
timer: null
}
},
mounted() {
this.pNode = document.getElementById('qestion-1')
// const str = '这位先生/女士/老板,一分钱一分货,就像同一款衣服,为什么有上万的,也有几百的,它材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。'
this.showText()
// t = setInterval(this.showText, 10000)
},
methods: {
showText() {
this.showQ = true
setTimeout(() => {
this.addText()
this.showR = true
}, 1000)
},
addText() {
const str =
'这位先生/女士/老板,一分钱一分货,就像同一款衣服,为什么有上万的,也有几百的,它材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。'
let i = 0
this.timer = setInterval(() => {
if (i < str.length - 1) {
this.pNode.innerHTML = this.pNode.innerHTML + str[i]
i = i + 1
} else {
clearInterval(this.timer)
setTimeout(() => {
this.showQ = false
this.showR = false
this.pNode.innerHTML = ''
setTimeout(() => {
this.showText()
}, 1000)
}, 1000)
}
}, 100)
}
},
beforeDestroy() {
this.showQ = false
this.showR = false
this.pNode.innerHTML = ''
clearInterval(this.timer)
}
}
</script>
<style lang="scss" scoped>
.markeing-box {
display: flex;
align-items: center;
box-sizing: border-box;
padding: 2.59vh 1.04vw;
width: 100%;
height: 38.52vh;
border-image: linear-gradient(to right, #1f5387, #73eaff, #275fca) 1;
background-image: url(../../../assets/images/marketing-ask-bg.png);
background-size: 100% 100%;
}
.dialogue-content {
padding-top: 3.98vh;
font-size: 7.1px;
line-height: 9.76px;
color: #fff;
.dialog-item {
display: flex;
// flex-direction: row-reverse;
align-items: center;
align-items: baseline;
padding: 0.65vh 0.26vw 0;
.user-content {
background: rgba(255, 255, 255, 0.1);
border-radius: 4.44px 0 4.44px 4.44px;
padding: 4px;
}
}
.avatar {
width: 0.47vw;
height: 0.47vw;
}
.m-s-l {
margin-left: 5px;
}
.m-s-r {
margin-right: 5px;
}
.m-r {
margin-right: 1.04vw;
}
.m-l {
margin-left: 1.04vw;
}
}
.enterprise-box {
margin-left: 0.42vw;
}
.enterprise {
padding-top: 8vh;
font-size: 7px;
color: #ffffff;
&-item {
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
margin: 0.53vh 0.36vw;
padding: 4px;
}
}
.markeing-descript {
width: 11.04vw;
margin-left: 0.83vw;
.second-title {
font-size: 20px;
text-align: center;
color: #5894ff;
background-image: -webkit-linear-gradient(left, #0185f9, #53faff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 2.5vh;
}
.descript {
color: #09aef2;
font-size: 12px;
}
.qr-code {
width: 7.29vw;
height: 7.29vw;
// border: 1px solid;
// border-image: linear-gradient(to right, #01A4F9, #6DF5F9) 4;
margin: 1.78vh auto 0;
}
}
</style>