Commit 4219771e by 张立顺

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

2 parents 00d91bc6 a985d70e

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
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
nextClick() { nextClick() {
let index = this.current let index = this.current
if (index == 3) { if (index == 3) {
this.current = 1; this.current = 0;
return false return false
} }
this.current = index + 1 this.current = index + 1
......
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
}, },
{ {
name: 'num', name: 'num',
width: '1.88vw', width: '2.25vw',
unitIcon: '场' unitIcon: '场'
} }
] ]
......
...@@ -16,14 +16,14 @@ function getBarOptions(obj) { ...@@ -16,14 +16,14 @@ function getBarOptions(obj) {
// formatter: tooltipFormatter || '', // formatter: tooltipFormatter || '',
// confine: true // confine: true
// }, // },
barWidth: 14,
xAxis: { xAxis: {
data: [] data: []
}, },
yAxis: { yAxis: {
name: '', name: '',
type: 'value', type: 'value',
// min: 0, interval: 250,
// max: 100,
splitLine: { splitLine: {
lineStyle: { lineStyle: {
color: '#1d2a38' color: '#1d2a38'
...@@ -53,15 +53,15 @@ function getBarOptions(obj) { ...@@ -53,15 +53,15 @@ function getBarOptions(obj) {
return new echarts.graphic.LinearGradient( return new echarts.graphic.LinearGradient(
0, 0, 0, 1, [{ // 代表渐变色从正上方开始 0, 0, 0, 1, [{ // 代表渐变色从正上方开始
offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色 offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
color: '#22D8FF' color: '#00C8FF'
}, // 柱图渐变色 }, // 柱图渐变色
{ // {
offset: 0.5, // 指100%处的颜色 // offset: 0.5, // 指100%处的颜色
color: '#223FA9' // color: '#223FA9'
}, // },
{ {
offset: 1, // 指100%处的颜色 offset: 1, // 指100%处的颜色
color: '#061422' color: '#0069F2'
}] }]
) )
} }
......
<!--
* @Description: 右下
* @Author: huyue
* @Date: 2024-01-26 21:05:56
* @LastEditors: huyue
* @LastEditTime: 2024-01-29 14:54:02
-->
<template> <template>
<div class="big-module-marketing-box"> <div class="big-module-marketing-box">
<BoxTitle :title="'基于大模型生成营销活动话术'" :textAlign="'center'" class="top-title" :fontSize="20"></BoxTitle> <BoxTitle :title="'基于大模型生成营销活动话术'" :textAlign="'center'" class="top-title" :fontSize="20"></BoxTitle>
<div>基于大模型的能力,快速生成个性化的活动标题、</div> <div>基于大模型的能力,快速生成个性化的活动标题、</div>
<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 id="qestion-2" v-show="showR" class="ai-reply"></p>
</div> </div>
</template> </template>
<script> <script>
let t = null
export default { export default {
name: 'BigModuleMarketing', name: 'BigModuleMarketing',
data() { data() {
return {} return {
showQ: false,
showR: false,
pNode: null,
isLoading: false,
hasAvtivity: false
}
}, },
mounted() {}, mounted() {
this.pNode = document.getElementById('qestion-2')
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> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.big-module-marketing-box { .big-module-marketing-box {
position: relative;
box-sizing: border-box; box-sizing: border-box;
width: 31.67vw; width: 31.67vw;
height: 40.37vh; height: 40.37vh;
...@@ -41,5 +117,126 @@ export default { ...@@ -41,5 +117,126 @@ export default {
height: 27.5vh; height: 27.5vh;
margin-top: 1.48vh; 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: 7px;
color: #333;
border-radius: 3px;
}
.loadding {
position: absolute;
right: 4.6vw;
}
.wrap {
margin: 120px 0 0 240px;
width: 25px;
height: 25px;
position: relative;
/* transform-origin: 设置的效果搭配边框看,效果更加明显 */
/* border: 1px solid #e9e9e9; */
}
.round {
position: absolute;
width: 11px;
height: 11px;
border-radius: 50%;
background-color: rgb(241, 141, 157);
/* 加上动画效果 */
animation: circleRound 2.8s ease infinite;
/* 设置旋转中心,搭配.wrap的border看 */
transform-origin: 50% 25px;
}
/* 注意z-index层级关系,依次递减 */
.round:nth-child(1) {
z-index: 7;
}
/* 注意动画延后animation-delay播放,依次递增 */
/* 至于小圆球则越来越小 */
.round:nth-child(2) {
height: 10px;
width: 10px;
background-color: rgb(199, 136, 185);
animation-delay: 0.2s;
z-index: 6;
}
.round:nth-child(3) {
height: 9px;
width: 9px;
background-color: rgb(153, 69, 223);
animation-delay: 0.4s;
z-index: 5;
}
.round:nth-child(4) {
height: 8px;
width: 8px;
background-color: rgb(69, 141, 223);
animation-delay: 0.6s;
z-index: 4;
}
.round:nth-child(5) {
height: 7px;
width: 7px;
background-color: rgb(69, 223, 203);
animation-delay: 0.8s;
z-index: 3;
}
.round:nth-child(6) {
height: 6px;
width: 6px;
background-color: rgb(100, 223, 69);
animation-delay: 1s;
z-index: 2;
}
.round:nth-child(7) {
height: 5px;
width: 5px;
background-color: rgb(223, 200, 69);
animation-delay: 1.2s;
z-index: 1;
}
@keyframes circleRound {
to {
transform: rotate(1turn);
}
} }
</style> </style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-01-26 11:36:05 * @Date: 2024-01-26 11:36:05
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-01-26 21:56:54 * @LastEditTime: 2024-01-29 14:39:00
--> -->
<template> <template>
<div class="hot-box"> <div class="hot-box">
...@@ -41,7 +41,8 @@ export default { ...@@ -41,7 +41,8 @@ export default {
}, },
mounted() { mounted() {
TagCloud('.tagcloud', texts, { TagCloud('.tagcloud', texts, {
radius: 100 radius: 100,
maxSpeed: 'slow'
}) })
} }
} }
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
<div class="dialogue-content-item"> <div class="dialogue-content-item">
<div class="dialogue-content-item-top"> <div class="dialogue-content-item-top">
<div class="dialogue-content-item-top-left"> <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>
<div>{{ item.name }}</div> <div>{{ item.name }}</div>
<div>{{ item.phone }}</div> <div>{{ item.phone }}</div>
...@@ -33,8 +35,9 @@ ...@@ -33,8 +35,9 @@
</div> </div>
</Phone> </Phone>
<Phone class="enterprise-box" :imgName="'customer-detail'"> <Phone class="enterprise-box" :imgName="'customer-detail'">
<div class="video-content" slot="content" @click="openVideo"> <div class="video-content" slot="content">
<video id="videos" muted="muted" controls autoplay loop> <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="/media/cc0-videos/flower.webm" type="video/webm" /> -->
<source src="../../../assets/images/video(1).mp4" type="video/mp4" /> <source src="../../../assets/images/video(1).mp4" type="video/mp4" />
</video> </video>
...@@ -63,12 +66,23 @@ export default { ...@@ -63,12 +66,23 @@ export default {
dialogShow: false dialogShow: false
} }
}, },
mounted() {
this.$refs.videoRef.addEventListener('ended', this.replayVideo);
},
beforeDestroy() {
this.$refs.videoRef.removeEventListener('ended', this.replayVideo);
},
methods: { methods: {
openVideo() { openVideo() {
this.dialogShow = true this.dialogShow = true
}, },
closeDialog() { closeDialog() {
this.dialogShow = false this.dialogShow = false
},
replayVideo() {
const video = this.$refs.videoRef;
video.currentTime = 0;
video.play();
} }
} }
} }
...@@ -90,7 +104,7 @@ export default { ...@@ -90,7 +104,7 @@ export default {
position: absolute; position: absolute;
top: 7.78vh; top: 7.78vh;
left: 0.31vw; left: 0.31vw;
max-height: 24.3vh; max-height: 21.3vh;
overflow-y: scroll; overflow-y: scroll;
&-item { &-item {
width: 7.28vw; width: 7.28vw;
...@@ -110,6 +124,11 @@ export default { ...@@ -110,6 +124,11 @@ export default {
&-left { &-left {
display: flex; display: flex;
} }
&-img {
width: 0.89vw;
height: 0.89vw;
margin-right: 0.2vw;
}
.call { .call {
width: 1.35vw; width: 1.35vw;
height: 1.57vh; height: 1.57vh;
...@@ -135,6 +154,14 @@ export default { ...@@ -135,6 +154,14 @@ export default {
.enterprise-box { .enterprise-box {
margin-left: 0.42vw; margin-left: 0.42vw;
position: relative; position: relative;
.video-click-content {
position: absolute;
top: 0;
left: 0;
width: 8.28vw;
height: 3.97vh;
z-index: 9999;
}
.video-content { .video-content {
position: absolute; position: absolute;
top: 5.28vh; top: 5.28vh;
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<Phone :imgName="'ai-dialogue'"> <Phone :imgName="'ai-dialogue'">
<div class="dialogue-content" slot="content"> <div class="dialogue-content" slot="content">
<div class="dialog-item"> <div class="dialog-item">
<img class="avatar m-s-l" src="../../../assets//images/user-avatar.png" alt="">
<div class="user-content m-l">为什么这么贵?不就是一层塑料纸吗?</div> <div class="user-content m-l">为什么这么贵?不就是一层塑料纸吗?</div>
<img class="avatar m-s-l" src="../../../assets//images/user-avatar.png" alt="">
</div> </div>
<div class="dialog-item"> <div class="dialog-item">
<div class="user-content m-r">这位先生/女士/老板,一分钱一分货,就像同一款衣服,为什么有上万的,也有几百的,它材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。</div>
<img class="avatar m-s-r" src="../../../assets//images/ai-avatar.png" alt=""> <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>
</div> </div>
</Phone> </Phone>
...@@ -20,16 +20,38 @@ ...@@ -20,16 +20,38 @@
</Phone> </Phone>
<div class="markeing-descript"> <div class="markeing-descript">
<div class="second-title">营销提问应答</div> <div class="second-title">营销提问应答</div>
<div class="descript">基于大量行业数据的训练和GPT的技术,智能知识库为从事汽车增值服务的销售人员提供专业的销售话术生成以及客户销售建议。</div> <div class="descript">
基于大量行业数据的训练和GPT的技术,智能知识库为从事汽车增值服务的销售人员提供专业的销售话术生成以及客户销售建议。
</div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
let pNode = null
import Phone from "./Phone.vue" import Phone from "./Phone.vue"
export default { export default {
name: 'MarketingQuestion', name: 'MarketingQuestion',
components: { components: {
Phone 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> </script>
...@@ -52,7 +74,7 @@ export default { ...@@ -52,7 +74,7 @@ export default {
color: #fff; color: #fff;
.dialog-item { .dialog-item {
display: flex; display: flex;
flex-direction: row-reverse; // flex-direction: row-reverse;
align-items: center; align-items: center;
align-items: baseline; align-items: baseline;
padding: 0.65vh 0.26vw 0; padding: 0.65vh 0.26vw 0;
......
...@@ -36,6 +36,7 @@ export default { ...@@ -36,6 +36,7 @@ export default {
// background: url(../../../assets/images/ai-dialogue.png) ; // background: url(../../../assets/images/ai-dialogue.png) ;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: contain; background-size: contain;
background-position: center;
} }
} }
</style> </style>
const AIBarLineData = [ const AIBarLineData = [
{ {
statMonth: '2023-10', statMonth: '8月',
outputvalue: 352, outputvalue: 312,
perCusTrans: 158 perCusTrans: 297
}, },
{ {
statMonth: '2023-11', statMonth: '9月',
outputvalue: 189, outputvalue: 416,
perCusTrans: 255 perCusTrans: 355
}, },
{ {
statMonth: '2023-12', statMonth: '10月',
outputvalue: 580, outputvalue: 827,
perCusTrans: 286 perCusTrans: 446
}, },
{ {
statMonth: '2024-01', statMonth: '11月',
outputvalue: 685, outputvalue: 855,
perCusTrans: 311 perCusTrans: 452
}, },
{ {
statMonth: '2024-02', statMonth: '12月',
outputvalue: 185, outputvalue: 901,
perCusTrans: 258 perCusTrans: 587
}, },
{ {
statMonth: '2024-03', statMonth: '01月',
outputvalue: 177, outputvalue: 977,
perCusTrans: 457 perCusTrans: 701
} }
] ]
...@@ -97,86 +97,102 @@ const marketingStatisData = [ ...@@ -97,86 +97,102 @@ const marketingStatisData = [
const nearThreadDataList = [ const nearThreadDataList = [
{ {
statMonth: '23.11', statMonth: '23.02',
val: 10 val: 899
}, },
{ {
statMonth: '23.12', statMonth: '23.03',
val: 9 val: 757
}, },
{ {
statMonth: '23.13', statMonth: '23.04',
val: 50 val: 997
}, },
{ {
statMonth: '23.14', statMonth: '23.05',
val: 30 val: 876
}, },
{ {
statMonth: '23.15', statMonth: '23.06',
val: 10 val: 878
}, },
{ {
statMonth: '23.15', statMonth: '23.07',
val: 10 val: 1219
}, },
{ {
statMonth: '23.15', statMonth: '23.08',
val: 10 val: 861
}, },
{ {
statMonth: '23.15', statMonth: '23.09',
val: 10 val: 911
}, },
{ {
statMonth: '23.15', statMonth: '23.10',
val: 10 val: 983
},
{
statMonth: '23.11',
val: 864
},
{
statMonth: '23.12',
val: 903
},
{
statMonth: '23.01',
val: 1001
} }
] ]
const activityListData = [ const activityListData = [
{ {
isused: "精品升级", isused: "精品升级",
num: 360, num: 2400,
rate: 36 rate: 35.3
}, },
{ {
isused: "权益升级", isused: "权益升级",
num: 280, num: 1850,
rate: 28 rate: 27.22
}, },
{ {
isused: "售后团购", isused: "售后团购",
num: 240, num: 1599,
rate: 24 rate: 23.52
}, },
{ {
isused: "节假日关怀", isused: "节假日关怀",
num: 120, num: 950,
rate: 12 rate: 13.96
} }
] ]
const bigModuleChartDataList = [ const bigModuleChartDataList = [
{ {
statMonth: '23.11', statMonth: '8月',
val: 10 val: 248
}, },
{ {
statMonth: '23.12', statMonth: '9月',
val: 9 val: 375
}, },
{ {
statMonth: '23.13', statMonth: '10月',
val: 50 val: 623
}, },
{ {
statMonth: '23.14', statMonth: '11月',
val: 30 val: 746
}, },
{ {
statMonth: '23.15', statMonth: '12月',
val: 10 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!