Commit 2d111c87 by 前端

惠州展厅

1 parent 73843273
<!--
* @Description:
* @Description:
* @Author: huyue
* @Date: 2023-07-06 11:46:13
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 17:16:49
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:14:52
-->
<template>
<div class="text-box" :style="{'font-size': fontSize + 'px', 'text-align': textAlign}">{{ title }}</div>
<div class="text-box" :style="{ 'font-size': fontSize + 'px', 'text-align': textAlign }">{{ title }}</div>
</template>
<script>
......@@ -20,7 +20,7 @@ export default {
},
fontSize: {
type: Number,
default: 24
default: 20
},
textAlign: String
},
......@@ -40,7 +40,7 @@ export default {
font-family: SourceHanSansCN-Bold;
font-weight: 700;
letter-spacing: 0;
background: linear-gradient(to right, #01A4F9, #6DF5F9); /* 从左到右渐变 */
background: linear-gradient(to right, #01a4f9, #6df5f9); /* 从左到右渐变 */
-webkit-background-clip: text; /* Safari/Chrome支持该属性 */
color: transparent; /* 将文本颜色设置为透明 */
padding-top: 5px;
......
<template>
<!-- 汽车全生命周期场景图 -->
<div class="view-content">
<!-- <div></div> -->
<Introduce class="left"></Introduce>
<div class="rightCon">
<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">
{{ item.header }}
<br v-if="item.footer" />
{{ item.footer }}
</div>
</div>
<div class="footer">
<!-- <div > -->
<ul class="swiper">
<li>
<div class="title">新能源充电场景模型</div>
<span class="introduce">
动态功率调节
<br />
动态成本定价
<br />
充电站营收预测
<br />
充电站推荐
</span>
</li>
<li>
<div class="title">UBI保险场景模型</div>
<span class="introduce">
驾驶行为评分
<br />
个性化定价
<br />
自动泊车风险评估
<br />
续保个性化AI外呼
</span>
</li>
<li>
<div class="title">金融风控场景模型</div>
<span class="introduce">
车辆风险等级
<br />
高危用户判定
<br />
警情复核筛查
<br />
催收策略分析
</span>
</li>
<li>
<div class="title">数字维保场景模型</div>
<span class="introduce">
智能碰撞识别
<br />
上门维修匹配
<br />
出险概率评估
<br />
保养自动提醒
</span>
</li>
<li>
<div class="title">数字化营销场景模型</div>
<span class="introduce">
精准用户营销
<br />
智能碰撞识别
<br />
智能销售辅助
<br />
千人千面推荐
</span>
</li>
<li>
<div class="title">二手车交易场景模型</div>
<span class="introduce">
车辆车况识别
<br />
车辆残值估算
<br />
车辆行情预测
<br />
竞拍价格匹配
</span>
</li>
</ul>
<!-- </div> -->
<div class="titleCon">
<div class="title title1">广联新能源</div>
<div class="title title2">车主服务行业大模型</div>
<div class="title3">基于行业数据共建</div>
</div>
<div class="item item_1">
交易数据
<br />
触达数据
<br />
转化数据
</div>
<div class="itemIcon icon1"></div>
<div class="item item_2">
风控数据
<br />
轨迹数据
<br />
设备数据
<br />
告警数据
</div>
<div class="itemIcon icon2"></div>
<div class="item item_3">
车辆数据
<br />
用车数据
<br />
竞拍数据
</div>
<div class="itemIcon icon3"></div>
<div class="item item_4">
轻改产品数据
<br />
话术数据
<br />
技能数据
</div>
<div class="itemIcon icon4"></div>
<img class="bg" src="../../../assets/images/viewEntireLifecycleOfCar/footer_ring.png" alt="" />
</div>
</div>
</div>
</template>
<script>
import Introduce from '@/components/Introduce'
export default {
name: 'ViewEntireLifecycleOfCar',
components: { Introduce },
data() {
return {
headerLabelList: [
{
header: '个性化',
footer: '推荐'
},
{
header: '车辆风',
footer: '险评级'
},
{
header: '个性化',
footer: '定价'
},
{
header: '二手车',
footer: '检测'
},
{
header: '二手车',
footer: '拍卖'
},
{
header: '建站',
footer: '选址'
},
{
header: '充电',
footer: '调节'
},
{
header: '电池回',
footer: '收评估'
},
{
header: '知识库',
footer: ''
},
{
header: '销售',
footer: '助手'
},
{
header: '碰撞',
footer: '检查'
}
]
}
},
// created() {
// return {}
// },
created() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.view-content {
width: 100%;
height: 100%;
box-sizing: border-box;
position: relative;
padding: 1.78vh 160px;
gap: 0 16px;
display: flex;
.top-tab {
margin-bottom: 1.78vh;
height: 5vh;
}
.rightCon {
width: 1280px;
margin-left: auto;
text-align: center;
.header {
margin: 24px auto 0;
width: 1040px;
text-align: center;
height: 194px;
position: relative;
// line-height: 194px;
.title {
position: absolute;
top: 42%;
left: 50%;
height: 32px;
transform: translate(-50%, -50%);
// width: 154px;
// height: 32px;
text-align: center;
font-family: SourceHanSansCN-Bold;
font-weight: 700;
font-size: 22px;
// color: #FFFFFF;
background: linear-gradient(to right, #01a4f9, #6df5f9);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
z-index: 3;
// letter-spacing: 0;
// text-align: center;
// line-height: 32px;
}
.item {
box-sizing: border-box;
width: 84px;
height: 84px;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/ring.png);
background-size: 100% 100%;
font-family: SourceHanSansCN-Medium;
font-weight: 500;
font-size: 16px;
color: #56e3f9;
text-align: center;
padding-top: 21px;
// line-height: 42px;
}
.item_1 {
position: absolute;
bottom: 8px;
left: 478px;
}
.item_2 {
position: absolute;
bottom: 12px;
left: 618px;
}
.item_3 {
position: absolute;
bottom: 30px;
left: 758px;
}
.item_4 {
position: absolute;
bottom: 68px;
left: 876px;
}
.item_5 {
position: absolute;
bottom: 120px;
left: 696px;
}
.item_6 {
position: absolute;
bottom: 138px;
left: 550px;
}
.item_7 {
position: absolute;
bottom: 138px;
left: 406px;
}
.item_8 {
position: absolute;
bottom: 120px;
left: 264px;
}
.item_9 {
position: absolute;
bottom: 66px;
left: 82px;
}
.item_10 {
position: absolute;
bottom: 30px;
left: 198px;
}
.item_11 {
position: absolute;
bottom: 14px;
left: 340px;
}
.oneLine {
padding-top: 32px;
}
}
.bg {
position: absolute;
bottom: 0;
left: 50%; // 居中
transform: translateX(-50%);
margin-top: auto;
width: 1040px;
height: 194px;
}
.footer {
position: relative;
width: 1280px;
height: 705px;
.swiper {
li {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.title {
// position: absolute;
position: relative;
margin-bottom: 20px;
width: 180px;
height: 24px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18px;
// color: #56E3F9;
background: linear-gradient(to right, #01a4f9, #6df5f9);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
// letter-spacing: 0;
text-align: center;
line-height: 24px;
&::after {
content: '';
position: absolute;
left: 0;
bottom: -2px;
display: block;
width: 100%;
height: 10px;
opacity: 0.2;
background-image: linear-gradient(90deg, #00c8ff 0%, #0069f2 100%);
}
}
.introduce {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 16px;
color: #dedede;
letter-spacing: 0;
text-align: center;
line-height: 28px;
}
}
.titleCon {
position: absolute;
bottom: 191px;
left: 50%;
height: 100px;
transform: translateX(-50%);
z-index: 1;
.title {
font-family: SourceHanSansCN-Bold;
font-weight: 700;
font-size: 24px;
height: 32px;
line-height: 32px;
text-align: center;
background: linear-gradient(to right, #01a4f9, #6df5f9);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.title3 {
margin-top: 10px;
opacity: 0.9;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 18px;
color: #dedede;
}
// line-height: 32px;
}
.itemIcon {
width: 80px;
height: 80px;
position: absolute;
background-size: 100% 100%;
z-index: 1;
}
.item {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 16px;
color: #56e3f9;
letter-spacing: 0;
line-height: 26px;
position: absolute;
z-index: 1;
text-align: left;
}
.item_1 {
left: 190px;
bottom: 100px;
}
.item_2 {
left: 382px;
bottom: 111px;
}
.item_3 {
left: 834px;
bottom: 111px;
}
.item_4 {
left: 1021px;
bottom: 100px;
}
.icon1 {
left: 268px;
bottom: 138px;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/footer_item01.png);
}
.icon2 {
left: 450px;
bottom: 58px;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/footer_item02.png);
}
.icon3 {
left: 750px;
bottom: 58px;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/footer_item03.png);
}
.icon4 {
left: 932px;
bottom: 138px;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/footer_item04.png);
}
.bg {
position: absolute;
bottom: 0;
// left: 0;
left: 50%; // 居中
transform: translateX(-50%);
width: 100%;
height: 100%;
z-index: 0;
// left: 50%; // 居中
// transform: translateX(-50%);
// margin-top: auto;
// width: 1040px;
// height: 783px;
}
}
}
}
ul {
padding: 0;
// list-style: none;
margin-left: -30px;
list-style: none;
// width: 400px;
// height: 400px;
width: 260px;
height: 230px;
margin: 0 auto;
// margin-top: 200px;
position: relative;
transform-style: preserve-3d;
// transform: rotateX(-10deg);
transform: rotateX(-6deg);
z-index: 1;
animation: spin 60s infinite linear;
}
@keyframes spin {
to {
// transform: rotateX(0deg) rotateY(360deg);
transform: rotateX(-6deg) rotateY(360deg);
}
}
// ul:hover {
// animation-play-state: paused;
// }
li {
position: absolute;
width: 260px;
height: 208px;
top: 120px;
left: 0;
background: url(../../../assets/images/viewEntireLifecycleOfCar/horseRaceLampItemBg.png);
background-size: 100% 100%;
}
li:nth-child(1) {
transform: translateZ(600px);
}
li:nth-child(2) {
transform: translateZ(-600px) rotateY(180deg);
// transform: translateZ(-600px) rotateY(180deg);
// transform: rotateY(51.4deg) translateZ(600px);
}
li:nth-child(3) {
transform: rotateY(60deg) scaleX(-1) translateZ(-600px);
}
li:nth-child(4) {
transform: rotateY(60deg) translateZ(600px);
// transform: rotateY(60deg) translateZ(600px);
// transform: rotateY(154.2deg) translateZ(600px);
}
li:nth-child(5) {
transform: rotateY(-60deg) translateZ(600px);
}
li:nth-child(6) {
transform: rotateY(-60deg) scaleX(-1) translateZ(-600px);
// transform: rotateY(-60deg) translateZ(600px);
}
</style>
<template>
<!-- 汽车全生命周期场景图 -->
<div class="view-content">
<!-- <div></div> -->
<Introduce class="left"></Introduce>
<div class="rightCon">
<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">
{{ item.header }}
<br v-if="item.footer" />
{{ item.footer }}
</div>
</div>
<div class="footer">
<!-- <div > -->
<ul class="swiper">
<li>
<div class="title">新能源充电场景模型</div>
<span class="introduce">
动态功率调节
<br />
动态成本定价
<br />
充电站营收预测
<br />
充电站推荐
</span>
</li>
<li>
<div class="title">UBI保险场景模型</div>
<span class="introduce">
驾驶行为评分
<br />
个性化定价
<br />
自动泊车风险评估
<br />
续保个性化AI外呼
</span>
</li>
<li>
<div class="title">金融风控场景模型</div>
<span class="introduce">
车辆风险等级
<br />
高危用户判定
<br />
警情复核筛查
<br />
催收策略分析
</span>
</li>
<li>
<div class="title">数字维保场景模型</div>
<span class="introduce">
智能碰撞识别
<br />
上门维修匹配
<br />
出险概率评估
<br />
保养自动提醒
</span>
</li>
<li>
<div class="title">数字化营销场景模型</div>
<span class="introduce">
精准用户营销
<br />
智能碰撞识别
<br />
智能销售辅助
<br />
千人千面推荐
</span>
</li>
<li>
<div class="title">二手车交易场景模型</div>
<span class="introduce">
车辆车况识别
<br />
车辆残值估算
<br />
车辆行情预测
<br />
竞拍价格匹配
</span>
</li>
</ul>
<!-- </div> -->
<div class="titleCon">
<div class="title title1">广联新能源</div>
<div class="title title2">车主服务行业大模型</div>
<div class="title3">基于行业数据共建</div>
</div>
<div class="item item_1">
交易数据
<br />
触达数据
<br />
转化数据
</div>
<div class="itemIcon icon1"></div>
<div class="item item_2">
风控数据
<br />
轨迹数据
<br />
设备数据
<br />
告警数据
</div>
<div class="itemIcon icon2"></div>
<div class="item item_3">
车辆数据
<br />
用车数据
<br />
竞拍数据
</div>
<div class="itemIcon icon3"></div>
<div class="item item_4">
轻改产品数据
<br />
话术数据
<br />
技能数据
</div>
<div class="itemIcon icon4"></div>
<img class="bg" src="../../../assets/images/viewEntireLifecycleOfCar/footer_ring.png" alt="" />
</div>
</div>
</div>
</template>
<script>
import Introduce from '@/components/Introduce'
export default {
name: 'ViewEntireLifecycleOfCar',
components: { Introduce },
data() {
return {
headerLabelList: [
{
header: '个性化',
footer: '推荐'
},
{
header: '车辆风',
footer: '险评级'
},
{
header: '个性化',
footer: '定价'
},
{
header: '二手车',
footer: '检测'
},
{
header: '二手车',
footer: '拍卖'
},
{
header: '建站',
footer: '选址'
},
{
header: '充电',
footer: '调节'
},
{
header: '电池回',
footer: '收评估'
},
{
header: '知识库',
footer: ''
},
{
header: '销售',
footer: '助手'
},
{
header: '碰撞',
footer: '检查'
}
]
}
},
// created() {
// return {}
// },
created() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.view-content {
width: 100%;
height: 100%;
box-sizing: border-box;
position: relative;
padding: 7.78vh 160px;
gap: 0 16px;
display: flex;
.top-tab {
margin-bottom: 1.78vh;
height: 5vh;
}
.rightCon {
width: 1280px;
margin-left: auto;
text-align: center;
.header {
margin: 24px auto 0;
width: 1040px;
text-align: center;
height: 194px;
position: relative;
// line-height: 194px;
.title {
position: absolute;
top: 42%;
left: 50%;
height: 42px;
transform: translate(-50%, -50%);
// width: 154px;
// height: 32px;
text-align: center;
font-family: SourceHanSansCN-Bold;
font-weight: 700;
font-size: 22px;
// color: #FFFFFF;
background: linear-gradient(to right, #01a4f9, #6df5f9);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
z-index: 3;
// letter-spacing: 0;
// text-align: center;
// line-height: 32px;
}
.item {
box-sizing: border-box;
width: 84px;
height: 84px;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/ring.png);
background-size: 100% 100%;
font-family: SourceHanSansCN-Medium;
font-weight: 500;
font-size: 16px;
color: #56e3f9;
text-align: center;
padding-top: 21px;
// line-height: 42px;
}
.item_1 {
position: absolute;
bottom: 8px;
left: 478px;
}
.item_2 {
position: absolute;
bottom: 12px;
left: 618px;
}
.item_3 {
position: absolute;
bottom: 30px;
left: 758px;
}
.item_4 {
position: absolute;
bottom: 68px;
left: 876px;
}
.item_5 {
position: absolute;
bottom: 120px;
left: 696px;
}
.item_6 {
position: absolute;
bottom: 138px;
left: 550px;
}
.item_7 {
position: absolute;
bottom: 138px;
left: 406px;
}
.item_8 {
position: absolute;
bottom: 120px;
left: 264px;
}
.item_9 {
position: absolute;
bottom: 66px;
left: 82px;
}
.item_10 {
position: absolute;
bottom: 30px;
left: 198px;
}
.item_11 {
position: absolute;
bottom: 14px;
left: 340px;
}
.oneLine {
padding-top: 32px;
}
}
.bg {
position: absolute;
bottom: 0;
left: 50%; // 居中
transform: translateX(-50%);
margin-top: auto;
width: 1040px;
height: 194px;
}
.footer {
position: relative;
width: 1280px;
height: 705px;
.swiper {
li {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.title {
// position: absolute;
position: relative;
margin-bottom: 20px;
width: 180px;
height: 24px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18px;
// color: #56E3F9;
background: linear-gradient(to right, #01a4f9, #6df5f9);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
// letter-spacing: 0;
text-align: center;
line-height: 24px;
&::after {
content: '';
position: absolute;
left: 0;
bottom: -2px;
display: block;
width: 100%;
height: 10px;
opacity: 0.2;
background-image: linear-gradient(90deg, #00c8ff 0%, #0069f2 100%);
}
}
.introduce {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 16px;
color: #dedede;
letter-spacing: 0;
text-align: center;
line-height: 28px;
}
}
.titleCon {
position: absolute;
bottom: 191px;
left: 50%;
height: 100px;
transform: translateX(-50%);
z-index: 1;
.title {
font-family: SourceHanSansCN-Bold;
font-weight: 700;
font-size: 24px;
height: 42px;
line-height: 42px;
text-align: center;
background: linear-gradient(to right, #01a4f9, #6df5f9);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.title3 {
margin-top: 10px;
opacity: 0.9;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 18px;
color: #dedede;
}
// line-height: 32px;
}
.itemIcon {
width: 80px;
height: 80px;
position: absolute;
background-size: 100% 100%;
z-index: 1;
}
.item {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 16px;
color: #56e3f9;
letter-spacing: 0;
line-height: 26px;
position: absolute;
z-index: 1;
text-align: left;
}
.item_1 {
left: 190px;
bottom: 100px;
}
.item_2 {
left: 382px;
bottom: 111px;
}
.item_3 {
left: 834px;
bottom: 111px;
}
.item_4 {
left: 1021px;
bottom: 100px;
}
.icon1 {
left: 268px;
bottom: 138px;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/footer_item01.png);
}
.icon2 {
left: 450px;
bottom: 58px;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/footer_item02.png);
}
.icon3 {
left: 750px;
bottom: 58px;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/footer_item03.png);
}
.icon4 {
left: 932px;
bottom: 138px;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/footer_item04.png);
}
.bg {
position: absolute;
bottom: 0;
// left: 0;
left: 50%; // 居中
transform: translateX(-50%);
width: 100%;
height: 100%;
z-index: 0;
// left: 50%; // 居中
// transform: translateX(-50%);
// margin-top: auto;
// width: 1040px;
// height: 783px;
}
}
}
}
ul {
padding: 0;
// list-style: none;
margin-left: -30px;
list-style: none;
// width: 400px;
// height: 400px;
width: 260px;
height: 230px;
margin: 0 auto;
// margin-top: 200px;
position: relative;
transform-style: preserve-3d;
// transform: rotateX(-10deg);
transform: rotateX(-6deg);
z-index: 1;
animation: spin 60s infinite linear;
}
@keyframes spin {
to {
// transform: rotateX(0deg) rotateY(360deg);
transform: rotateX(-6deg) rotateY(360deg);
}
}
// ul:hover {
// animation-play-state: paused;
// }
li {
position: absolute;
width: 260px;
height: 208px;
top: 120px;
left: 0;
background: url(../../../assets/images/viewEntireLifecycleOfCar/horseRaceLampItemBg.png);
background-size: 100% 100%;
}
li:nth-child(1) {
transform: translateZ(600px);
}
li:nth-child(2) {
transform: translateZ(-600px) rotateY(180deg);
// transform: translateZ(-600px) rotateY(180deg);
// transform: rotateY(51.4deg) translateZ(600px);
}
li:nth-child(3) {
transform: rotateY(60deg) scaleX(-1) translateZ(-600px);
}
li:nth-child(4) {
transform: rotateY(60deg) translateZ(600px);
// transform: rotateY(60deg) translateZ(600px);
// transform: rotateY(154.2deg) translateZ(600px);
}
li:nth-child(5) {
transform: rotateY(-60deg) translateZ(600px);
}
li:nth-child(6) {
transform: rotateY(-60deg) scaleX(-1) translateZ(-600px);
// transform: rotateY(-60deg) translateZ(600px);
}
</style>
<!--
* @Description:
* @Description:
* @Author: huyue
* @Date: 2024-07-09 10:35:58
* @LastEditors: huyue
* @LastEditTime: 2024-07-10 14:16:38
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:50:49
-->
<template>
<div class="AI-box">
<BoxTitle :title="'AI对话调用次数及覆盖门店'" :fontSize="18"></BoxTitle>
<BoxTitle :title="'AI对话调用次数及覆盖门店'" :fontSize="15"></BoxTitle>
<img class="bottom-line" src="@/assets/images/bottomLine.png" alt="" />
<BarLineChart ref="AITalkRef" height="15.83vh" domId="AITalk" :dataList.sync="AIBarLineData"></BarLineChart>
<BarLineChart ref="AITalkRef" height="16.83vh" domId="AITalk" :dataList.sync="AIBarLineData"></BarLineChart>
</div>
</template>
......
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-01-26 16:23:12
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:10:27
* @FilePath: \glsk-data-view-scene\src\views\lifeSceneDataPage\components\ActivityRate.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="rate-box">
<BoxTitle :title="'各活动类型占比'" :fontSize="16"></BoxTitle>
<pie-chart :id="chart.id" :keys="chart.keys" :list="activityListData" :formatter="'total'" :formatterName="'累计营销活动'" :formtUnit="'场'" :height="chart.height" :colors="chart.colors"></pie-chart>
<BoxTitle :title="'各活动类型占比'" :fontSize="14"></BoxTitle>
<pie-chart
:id="chart.id"
:keys="chart.keys"
:list="activityListData"
:formatter="'total'"
:formatterName="'累计营销活动'"
:formtUnit="'场'"
:height="chart.height"
:colors="chart.colors"
></pie-chart>
<Legend class="legend" :list="activityListData" :legentList="legentList" :colors="chart.colors"></Legend>
</div>
</template>
<script>
import { activityListData } from "../const/index"
import { activityListData } from '../const/index'
export default {
name: 'ActivityRate',
......@@ -51,8 +68,8 @@ export default {
width: 15vw;
height: 34.23vh;
background-image: url(../../../assets/images/rate-bg.png);
background-size: 100% 100%;
padding: 3.61vh 1.59vw 2.69vh 1.04vw;
background-size: 100% 100%;
padding: 3.61vh 1.59vw 2.69vh 1.04vw;
}
.legend {
margin-top: 2vh;
......
......@@ -39,8 +39,8 @@ function getBarLineOptions(obj) {
],
grid: {
left: '3%',
right: '2%',
top: '20%',
right: '0%',
top: '25%',
bottom: '6%',
containLabel: true
},
......@@ -53,27 +53,28 @@ function getBarLineOptions(obj) {
show: true,
position: 'top',
color: '#fff',
formatter: (params) => {
formatter: params => {
return utils.numAddSymbol(params.value)
}
},
itemStyle: {
barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function(params) {
return new echarts.graphic.LinearGradient(
0, 0, 0, 1, [{ // 代表渐变色从正上方开始
color: function (params) {
return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
// 代表渐变色从正上方开始
offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
color: '#00C8FF'
}, // 柱图渐变色
// {
// offset: 0.5, // 指100%处的颜色
// color: '#223FA9'
// },
// {
// offset: 0.5, // 指100%处的颜色
// color: '#223FA9'
// },
{
offset: 1, // 指100%处的颜色
color: '#0069F2'
}]
)
}
])
}
}
},
......
......@@ -2,12 +2,12 @@
* @Description: 右下
* @Author: huyue
* @Date: 2024-01-26 21:05:56
* @LastEditors: huyue
* @LastEditTime: 2024-07-12 10:47:23
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:12:54
-->
<template>
<div class="big-module-marketing-box" @click="openDia">
<BoxTitle :title="'基于大模型生成营销活动话术'" :textAlign="'center'" class="top-title" :fontSize="20"></BoxTitle>
<BoxTitle :title="'基于大模型生成营销活动话术'" :textAlign="'center'" class="top-title" :fontSize="12"></BoxTitle>
<div>基于大模型能力,快速生成个性化的活动标题、营销文案和活动海报,提升门店营销效率。</div>
<div v-show="isLoading" class="loadding">
<div class="wrap">
......@@ -98,7 +98,7 @@ export default {
console.log(111)
},
closeDialog() {
console.log(7777777);
console.log(7777777)
this.dialogShow = false
}
},
......@@ -123,6 +123,7 @@ export default {
margin-top: 1.4vh;
.top-title {
margin-bottom: 1.93vh;
padding-top: 15px;
}
img {
width: 19.33vw;
......
<!--
* @Description:
* @Description:
* @Author: huyue
* @Date: 2024-07-09 10:35:58
* @LastEditors: huyue
* @LastEditTime: 2024-07-10 15:44:05
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:10:06
-->
<template>
<div class="big-module-box">
<BoxTitle :title="'使用大模型创建活动的趋势'" :fontSize="16"></BoxTitle>
<BoxTitle :title="'使用大模型创建活动的趋势'" :fontSize="14"></BoxTitle>
<BarChart class="bar-chart" ref="bigModuleChartRef" :height="'25.83vh'" domId="bigModuleChart" :dataList.sync="bigModuleChartDataList"></BarChart>
</div>
</template>
......@@ -25,7 +25,7 @@ export default {
},
mounted() {
let _this = this;
let _this = this
_this.$nextTick(function () {
_this.$refs.bigModuleChartRef.drawBar()
})
......@@ -41,7 +41,7 @@ export default {
width: 15vw;
height: 34.23vh;
background-image: url(../../../assets/images/big-module-bg.png);
background-size: 100% 100%;
padding: 3.61vh 1.59vw 5.93vh 0.78vw;
background-size: 100% 100%;
padding: 3.61vh 1.59vw 5.93vh 0.78vw;
}
</style>
......@@ -2,12 +2,12 @@
* @Description: 3D
* @Author: huyue
* @Date: 2024-01-26 11:36:05
* @LastEditors: huyue
* @LastEditTime: 2024-07-10 10:43:14
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:09:50
-->
<template>
<div class="hot-box">
<BoxTitle class="hot-title" :title="'提问热词'" :fontSize="16"></BoxTitle>
<BoxTitle class="hot-title" :title="'提问热词'" :fontSize="14"></BoxTitle>
<div class="tagcloud"></div>
</div>
</template>
......@@ -64,7 +64,7 @@ export default {
}
&::after {
content: '';
display:block;
display: block;
width: 0.73vw;
height: 2.04vh;
position: absolute;
......@@ -84,8 +84,8 @@ export default {
span {
font-size: 10px;
color: #5894FF;
background-image: -webkit-linear-gradient(left, #d8ffed, #53FAFF);
color: #5894ff;
background-image: -webkit-linear-gradient(left, #d8ffed, #53faff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
......
<!--
* @Description:
* @Description:
* @Author: huyue
* @Date: 2024-01-26 11:36:05
* @LastEditors: huyue
* @LastEditTime: 2024-07-10 15:14:45
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:09:11
-->
<template>
<div class="near-thread-box">
<BoxTitle :title="'近12个月的线索推送情况'" :fontSize="18"></BoxTitle>
<BoxTitle :title="'近12个月的线索推送情况'" :fontSize="15"></BoxTitle>
<!-- <img class="bottom-line" src="@/assets/images/bottomLine.png" alt="" /> -->
<BarChart ref="nearThreadChartRef" :height="'28.77vh'" domId="nearThreadChart" :dataList.sync="nearThreadDataList"></BarChart>
</div>
......@@ -26,8 +26,8 @@ export default {
},
mounted() {
let _this = this;
_this.$nextTick(function(){
let _this = this
_this.$nextTick(function () {
_this.$refs.nearThreadChartRef.drawBar()
})
},
......
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:46:24
* @LastEditors: huyue
* @LastEditTime: 2024-09-23 11:37:42
* @FilePath: \dj-data-view\src\components\barOptions.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import * as echarts from 'echarts'
import utils from '../../../utils/util'
function getBarOptions(obj, colorList) {
const { analysisList, rotate } = obj
const num = analysisList.map(item => item.ratio * 100)
const name = analysisList.map(item => item.name)
var options = {
xAxis: {
type: 'category',
axisLabel: {
color: '#fff',
fontSize: '0.72em'
},
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
data: name
},
grid: {
left: '6%',
right: '6%',
top: '6%',
bottom: '4%',
// bottom: obj.rotate ? '4%' : '12%',
containLabel: true
},
yAxis: {
type: 'value',
splitLine: {
lineStyle: {
color: '#2F314F'
}
},
axisLabel: {
color: '#fff',
fontSize: '0.75em',
formatter: '{value}%'
},
splitNumber: 4
},
series: [
{
type: 'bar',
symbol: 'circle',
backgroundStyle: {
color: 'rgba(36, 74, 243, 0.39)'
},
itemStyle: {
// barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function (params) {
// var colorItem = []
return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
// 代表渐变色从正上方开始
offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
color: colorList[0]
}, // 柱图渐变色
{
offset: 0.5, // 指100%处的颜色
color: colorList[1]
},
{
offset: 1, // 指100%处的颜色
color: colorList[2]
}
])
}
},
barWidth: '35%',
data: num
}
]
}
return options
}
function getBarReverseOptions(obj, colorList) {
const { analysisList, ValueAnalysis } = obj
// const value = Object.values(analysisList)
const entries = Object.entries(analysisList)
ValueAnalysis.forEach(sis => {
entries.forEach(key => {
if (sis.name == key[0]) {
sis.value = key[1]
}
})
})
const value = utils.deepClone(ValueAnalysis).sort((a, b) => b.order - a.order)
var options = {
tooltip: {
trigger: 'axis',
showContent: false,
axisPointer: {
type: 'shadow',
shadowStyle: {
color: 'rgba(36, 74, 243, 0.4)'
}
},
borderWidth: 0,
backgroundColor: 'rgba(68,68,68,0.80)',
confine: true,
textStyle: {
color: '#ffffff',
fontSize: 8
}
},
yAxis: {
type: 'category',
axisLabel: {
color: '#ccc',
fontSize: '0.7em'
},
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
data: value.map(item => item.label)
},
grid: {
left: '8%',
right: '0%',
top: '0%',
bottom: '0%',
containLabel: true
},
xAxis: {
nameGap: 30,
type: 'value',
splitLine: {
show: false
},
axisLabel: {
show: false
},
splitNumber: 4
},
series: [
{
type: 'bar',
symbol: 'circle',
backgroundStyle: {
color: '#6578FF'
},
itemStyle: {
normal: {
label: {
show: true,
position: 'center',
textStyle: {
fontSize: 10,
color: '#fff',
height: 16,
padding: [0, 2, 2, 4],
lineHeight: 16
}
},
// barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function (params) {
// var colorItem = []
return {
colorStops: [{
offset: 0.3, // 颜色的开始位置
color: colorList[0] // 0% 处的颜色
},
{
offset: 0.6, // 颜色的结束位置
color: colorList[1] // 100% 处的颜色
}]
}
}
}
},
data: value.map(item => item.value)
}
]
}
return options
}
function getBarReverseOptions1(obj, colorList) {
const { analysisList } = obj
const value = utils.deepClone(analysisList)
var options = {
tooltip: {
trigger: 'axis',
showContent: false,
axisPointer: {
type: 'shadow',
shadowStyle: {
color: 'rgba(36, 74, 243, 0.4)'
}
},
borderWidth: 0,
backgroundColor: 'rgba(68,68,68,0.80)',
confine: true,
textStyle: {
color: '#ffffff',
fontSize: 8
}
},
yAxis: {
type: 'category',
axisLabel: {
color: '#ccc',
fontSize: '0.7em'
},
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
data: value.map(item => item.label)
},
grid: {
left: '10%',
right: '0%',
top: '0%',
bottom: '0%',
containLabel: true
},
xAxis: {
nameGap: 30,
type: 'value',
splitLine: {
show: false
},
axisLabel: {
show: false
},
splitNumber: 4
},
series: [
{
type: 'bar',
symbol: 'circle',
backgroundStyle: {
color: '#6578FF'
},
itemStyle: {
normal: {
label: {
show: true,
position: 'center',
textStyle: {
fontSize: 10,
color: '#fff',
height: 16,
padding: [0, 2, 2, 4],
lineHeight: 16
},
formatter: function(params) {
return params.value + ' ' + params.data.ratio + '%'
}
},
// barBorderRadius: [0, 2, 2, 0], // 柱体圆角
color: function(params) {
// var colorItem = []
return {
colorStops: [{
offset: 0.3, // 颜色的开始位置
color: colorList[0] // 0% 处的颜色
},
{
offset: 0.6, // 颜色的结束位置
color: colorList[1] // 100% 处的颜色
}]
}
}
}
},
data: value
}
]
}
return options
}
function getLineOptions(obj) {
const { dataList, name } = obj
const statDate = dataList.map(item => item.statDate)
const num = dataList.map(item => item.num)
var options = {
tooltip: {
trigger: 'axis',
// axisPointer: {
// lineStyle: {
// type: 'solid'
// }
// },
// padding: 5,
// borderWidth: 0.5,
// backgroundColor: '#161C60',
// borderRadius: 4,
// borderColor: '#089FF1',
// textStyle: {
// color: 'color: #FFFFFF',
// fontSize: 10
// },
borderWidth: 0,
padding: 0,
formatter: function(item) {
return `<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;"><div style="color: #FFFFFF">${name}:${utils.numAddSymbol(item[0].value)}</div></div>`
}
},
xAxis: {
type: 'category',
axisLabel: {
color: '#fff',
fontSize: '0.7em',
rotate: 30
},
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
data: statDate
},
grid: {
left: '6%',
right: '6%',
top: '14%',
bottom: '3%',
containLabel: true
},
yAxis: {
nameGap: 30,
type: 'value',
splitLine: {
lineStyle: {
color: '#2F314F'
}
},
axisLabel: {
color: '#ccc',
fontSize: '0.7em'
},
splitNumber: 4
},
series: [
{
type: 'line',
symbol: 'circle',
itemStyle: {
color: '#56FEFE'
},
// 平滑曲线
smooth: true,
showSymbol: false,
// 折线背景色
areaStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: 'rgba(86, 254, 254, .24)'
},
{
offset: 1,
color: 'rgba(86, 254, 254, 0.01)'
}
]
}
},
data: num
}
]
}
return options
}
function lineAndBarOptions(list) {
const statDate = list.map(item => item.statDate)
const totalNum = list.map(item => item.totalNum)
const increNum = list.map(item => item.increNum)
var options = {
tooltip: {
trigger: 'axis',
borderWidth: 0,
padding: 0,
// axisPointer: {
// lineStyle: {
// type: 'solid'
// }
// },
// padding: 5,
// borderWidth: 1,
backgroundColor: 'transparent',
// borderRadius: 4,
// textStyle: {
// color: 'rgba(255,255,255,1)',
// fontSize: 10
// },
formatter: function(item) {
const items = list[item[0].dataIndex]
return `<div style="background-color: rgba(0, 0, 3, 0.8);font-size: 9px;border: 2px solid;border-image: linear-gradient(90deg, #01A4F9, #6DF5F9) 1;padding: 10px;border-radius: 4px;"><div style="display:flex;"><div style="color: #fff">当月总门店数:${utils.numAddSymbol(item[0].value)}<br>
当月新增:${utils.numAddSymbol(item[1].value)}<br>
${items.tongbi ? `同比增长:${items.tongbi}%` : ''}
</div>
</div>`
}
},
xAxis: [
{
type: 'category',
axisLabel: {
color: '#fff',
fontSize: '11px',
margin: 20
},
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
data: statDate
}
],
grid: {
left: '3%',
right: '6%',
top: '8%',
bottom: '5%',
containLabel: true
},
yAxis: [
{
name: 'bar',
nameGap: 30,
type: 'value',
splitLine: {
lineStyle: {
color: '#2F314F'
}
},
axisLabel: {
color: '#FFF'
},
max: 5000,
interval: 1000,
splitNumber: 5
},
{
name: 'line',
nameGap: 30,
type: 'value',
splitLine: {
show: true,
lineStyle: {
type: 'dashed',
color: '#2F314F'
}
},
axisLabel: {
color: '#FFF'
},
max: 200,
interval: 40,
splitNumber: 5
}
],
series: [
{
name: 'line',
type: 'line',
symbol: 'circle',
// 平滑曲线
smooth: true,
showSymbol: false,
data: totalNum,
itemStyle: {
color: '#56FEFE'
},
lineStyle: {
width: 1
},
// 折线背景色
areaStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: 'rgba(86, 254, 254, .24)'
},
{
offset: 1,
color: 'rgba(86, 254, 254, 0.01)'
}
]
}
}
},
{
name: 'bar',
type: 'bar',
symbol: 'circle',
backgroundStyle: {
color: '#6578FF'
},
yAxisIndex: 1,
barWidth: '24%',
data: increNum,
itemStyle: {
// barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function(params) {
const colorList = [
// ['#2AD191', '#00A89E', '#061422'],
['#00c7ff', '#009cf8', '#006af2'],
['#00c7ff', '#009cf8', '#006af2']
]
var colorItem = []
colorItem = params.dataIndex % 2 === 0 ? colorList[0] : colorList[1]
return new echarts.graphic.LinearGradient(
0, 0, 0, 1, [{ // 代表渐变色从正上方开始
offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
color: colorItem[0]
}, // 柱图渐变色
{
offset: 0.5, // 指100%处的颜色
color: colorItem[1]
},
{
offset: 1, // 指100%处的颜色
color: colorItem[2]
}]
)
}
}
}
]
}
return options
}
export { getBarReverseOptions, getBarOptions, lineAndBarOptions, getLineOptions, getBarReverseOptions1 }
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:46:24
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-02-13 14:42:55
* @FilePath: \dj-data-view\src\components\barOptions.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import * as echarts from 'echarts'
import utils from '../../../utils/util'
function getBarOptions(obj, colorList) {
const { analysisList, rotate } = obj
const num = analysisList.map(item => item.ratio * 100)
const name = analysisList.map(item => item.name)
var options = {
xAxis: {
type: 'category',
axisLabel: {
color: '#fff',
fontSize: '0.72em'
},
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
data: name
},
grid: {
left: '6%',
right: '6%',
top: '6%',
bottom: '4%',
// bottom: obj.rotate ? '4%' : '12%',
containLabel: true
},
yAxis: {
type: 'value',
splitLine: {
lineStyle: {
color: '#2F314F'
}
},
axisLabel: {
color: '#fff',
fontSize: '0.75em',
formatter: '{value}%'
},
splitNumber: 4
},
series: [
{
type: 'bar',
symbol: 'circle',
backgroundStyle: {
color: 'rgba(36, 74, 243, 0.39)'
},
itemStyle: {
// barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function (params) {
// var colorItem = []
return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
// 代表渐变色从正上方开始
offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
color: colorList[0]
}, // 柱图渐变色
{
offset: 0.5, // 指100%处的颜色
color: colorList[1]
},
{
offset: 1, // 指100%处的颜色
color: colorList[2]
}
])
}
},
barWidth: '35%',
data: num
}
]
}
return options
}
function getBarReverseOptions(obj, colorList) {
const { analysisList, ValueAnalysis } = obj
// const value = Object.values(analysisList)
const entries = Object.entries(analysisList)
ValueAnalysis.forEach(sis => {
entries.forEach(key => {
if (sis.name == key[0]) {
sis.value = key[1]
}
})
})
const value = utils.deepClone(ValueAnalysis).sort((a, b) => b.order - a.order)
var options = {
tooltip: {
trigger: 'axis',
showContent: false,
axisPointer: {
type: 'shadow',
shadowStyle: {
color: 'rgba(36, 74, 243, 0.4)'
}
},
borderWidth: 0,
backgroundColor: 'rgba(68,68,68,0.80)',
confine: true,
textStyle: {
color: '#ffffff',
fontSize: 6
}
},
yAxis: {
type: 'category',
axisLabel: {
color: '#ccc',
fontSize: '0.6em'
},
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
data: value.map(item => item.label)
},
grid: {
left: '8%',
right: '0%',
top: '0%',
bottom: '0%',
containLabel: true
},
xAxis: {
nameGap: 30,
type: 'value',
splitLine: {
show: false
},
axisLabel: {
show: false
},
splitNumber: 4
},
series: [
{
type: 'bar',
symbol: 'circle',
backgroundStyle: {
color: '#6578FF'
},
itemStyle: {
normal: {
label: {
show: true,
position: 'center',
textStyle: {
fontSize: 10,
color: '#fff',
height: 16,
padding: [0, 2, 2, 4],
lineHeight: 16
}
},
// barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function (params) {
// var colorItem = []
return {
colorStops: [
{
offset: 0.3, // 颜色的开始位置
color: colorList[0] // 0% 处的颜色
},
{
offset: 0.6, // 颜色的结束位置
color: colorList[1] // 100% 处的颜色
}
]
}
}
}
},
data: value.map(item => item.value)
}
]
}
return options
}
function getBarReverseOptions1(obj, colorList) {
const { analysisList } = obj
const value = utils.deepClone(analysisList)
var options = {
tooltip: {
trigger: 'axis',
showContent: false,
axisPointer: {
type: 'shadow',
shadowStyle: {
color: 'rgba(36, 74, 243, 0.4)'
}
},
borderWidth: 0,
backgroundColor: 'rgba(68,68,68,0.80)',
confine: true,
textStyle: {
color: '#ffffff',
fontSize: 6
}
},
yAxis: {
type: 'category',
axisLabel: {
color: '#ccc',
fontSize: '0.7em'
},
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
data: value.map(item => item.label)
},
grid: {
left: '10%',
right: '0%',
top: '0%',
bottom: '0%',
containLabel: true
},
xAxis: {
nameGap: 30,
type: 'value',
splitLine: {
show: false
},
axisLabel: {
show: false
},
splitNumber: 4
},
series: [
{
type: 'bar',
symbol: 'circle',
backgroundStyle: {
color: '#6578FF'
},
itemStyle: {
normal: {
label: {
show: true,
position: 'center',
textStyle: {
fontSize: 10,
color: '#fff',
height: 16,
padding: [0, 2, 2, 4],
lineHeight: 16
},
formatter: function (params) {
return params.value + ' ' + params.data.ratio + '%'
}
},
// barBorderRadius: [0, 2, 2, 0], // 柱体圆角
color: function (params) {
// var colorItem = []
return {
colorStops: [
{
offset: 0.3, // 颜色的开始位置
color: colorList[0] // 0% 处的颜色
},
{
offset: 0.6, // 颜色的结束位置
color: colorList[1] // 100% 处的颜色
}
]
}
}
}
},
data: value
}
]
}
return options
}
function getLineOptions(obj) {
const { dataList, name } = obj
const statDate = dataList.map(item => item.statDate)
const num = dataList.map(item => item.num)
var options = {
tooltip: {
trigger: 'axis',
// axisPointer: {
// lineStyle: {
// type: 'solid'
// }
// },
// padding: 5,
// borderWidth: 0.5,
// backgroundColor: '#161C60',
// borderRadius: 4,
// borderColor: '#089FF1',
// textStyle: {
// color: 'color: #FFFFFF',
// fontSize: 10
// },
borderWidth: 0,
padding: 0,
formatter: function (item) {
return `<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;"><div style="color: #FFFFFF">${name}:${utils.numAddSymbol(
item[0].value
)}</div></div>`
}
},
xAxis: {
type: 'category',
axisLabel: {
color: '#fff',
fontSize: '0.7em',
rotate: 30
},
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
data: statDate
},
grid: {
left: '6%',
right: '6%',
top: '14%',
bottom: '3%',
containLabel: true
},
yAxis: {
nameGap: 30,
type: 'value',
splitLine: {
lineStyle: {
color: '#2F314F'
}
},
axisLabel: {
color: '#ccc',
fontSize: '0.7em'
},
splitNumber: 4
},
series: [
{
type: 'line',
symbol: 'circle',
itemStyle: {
color: '#56FEFE'
},
// 平滑曲线
smooth: true,
showSymbol: false,
// 折线背景色
areaStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: 'rgba(86, 254, 254, .24)'
},
{
offset: 1,
color: 'rgba(86, 254, 254, 0.01)'
}
]
}
},
data: num
}
]
}
return options
}
function lineAndBarOptions(list) {
const statDate = list.map(item => item.statDate)
const totalNum = list.map(item => item.totalNum)
const increNum = list.map(item => item.increNum)
var options = {
tooltip: {
trigger: 'axis',
borderWidth: 0,
padding: 0,
// axisPointer: {
// lineStyle: {
// type: 'solid'
// }
// },
// padding: 5,
// borderWidth: 1,
backgroundColor: 'transparent',
// borderRadius: 4,
// textStyle: {
// color: 'rgba(255,255,255,1)',
// fontSize: 10
// },
formatter: function (item) {
const items = list[item[0].dataIndex]
return `<div style="background-color: rgba(0, 0, 3, 0.8);font-size: 9px;border: 2px solid;border-image: linear-gradient(90deg, #01A4F9, #6DF5F9) 1;padding: 10px;border-radius: 4px;"><div style="display:flex;"><div style="color: #fff">当月总门店数:${utils.numAddSymbol(
item[0].value
)}<br>
当月新增:${utils.numAddSymbol(item[1].value)}<br>
${items.tongbi ? `同比增长:${items.tongbi}%` : ''}
</div>
</div>`
}
},
xAxis: [
{
type: 'category',
axisLabel: {
color: '#fff',
fontSize: '11px',
margin: 20
},
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
data: statDate
}
],
grid: {
left: '3%',
right: '6%',
top: '8%',
bottom: '5%',
containLabel: true
},
yAxis: [
{
name: 'bar',
nameGap: 30,
type: 'value',
splitLine: {
lineStyle: {
color: '#2F314F'
}
},
axisLabel: {
color: '#FFF'
},
max: 5000,
interval: 1000,
splitNumber: 5
},
{
name: 'line',
nameGap: 30,
type: 'value',
splitLine: {
show: true,
lineStyle: {
type: 'dashed',
color: '#2F314F'
}
},
axisLabel: {
color: '#FFF'
},
max: 200,
interval: 40,
splitNumber: 5
}
],
series: [
{
name: 'line',
type: 'line',
symbol: 'circle',
// 平滑曲线
smooth: true,
showSymbol: false,
data: totalNum,
itemStyle: {
color: '#56FEFE'
},
lineStyle: {
width: 1
},
// 折线背景色
areaStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: 'rgba(86, 254, 254, .24)'
},
{
offset: 1,
color: 'rgba(86, 254, 254, 0.01)'
}
]
}
}
},
{
name: 'bar',
type: 'bar',
symbol: 'circle',
backgroundStyle: {
color: '#6578FF'
},
yAxisIndex: 1,
barWidth: '24%',
data: increNum,
itemStyle: {
// barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function (params) {
const colorList = [
// ['#2AD191', '#00A89E', '#061422'],
['#00c7ff', '#009cf8', '#006af2'],
['#00c7ff', '#009cf8', '#006af2']
]
var colorItem = []
colorItem = params.dataIndex % 2 === 0 ? colorList[0] : colorList[1]
return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
// 代表渐变色从正上方开始
offset: 0, // offset范围是0~1,用于表示位置,0是指0%处的颜色
color: colorItem[0]
}, // 柱图渐变色
{
offset: 0.5, // 指100%处的颜色
color: colorItem[1]
},
{
offset: 1, // 指100%处的颜色
color: colorItem[2]
}
])
}
}
}
]
}
return options
}
export { getBarReverseOptions, getBarOptions, lineAndBarOptions, getLineOptions, getBarReverseOptions1 }
......@@ -93,7 +93,7 @@ export default {
// border: 4px solid rgba(18, 117, 248, 0.5);
box-sizing: border-box;
// margin: 20px calc((100vw - 1560px) / 2);
margin: 20px auto;
margin: 200px auto;
position: relative;
display: flex;
justify-content: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!