Commit f46a59ce by 胡悦

Merge branch 'v2.1.0' of http://192.168.3.233:8090/h5/glsk-data-view-pd into v2.1.0

2 parents fd807ece 21be848f
......@@ -23,7 +23,7 @@ import '@/assets/css/index.scss'
import './utils/util'
import 'components'
import * as echarts from 'echarts'
// import dialog from './plugins/dialog'
// import dialog from './plugins/dialog'
import Bus from '../src/bus' // 这是我的路径,正确引用你们的路径
Vue.prototype.$bus = Bus
Vue.prototype.$echarts = echarts
......
......@@ -98,11 +98,14 @@ export default {
},
created() {
this.$bus.$on('selectAreaChange', val => {
console.log(11111);
this.area = val
})
this.$bus.$on('selectMonthChange', val => {
console.log(2222);
this.month = val
})
console.log(33333);
this.getRetailOverview()
this.getRetailTrend()
},
......
......@@ -18,21 +18,25 @@
<div class="container">
<BarChart domId="analyseChart" :revese="true" boxHeight="14.54vh" :analysisList="analysisList" :colorList="colorList"></BarChart>
</div>
<MyDialog :isShow="dialogShow" @closeDialog="closeDialog"></MyDialog>
</div>
</template>
<script>
import BarChart from './BarChart.vue'
import MyDialog from './Dialog.vue'
export default {
name: 'Analyse',
components: {
BarChart
BarChart,
MyDialog
},
data() {
return {
analysisList: {},
isShow: true,
colorList: ['#5C56FF', '#22D8FF']
colorList: ['#5C56FF', '#22D8FF'],
dialogShow: false
}
},
mounted() {
......@@ -47,7 +51,10 @@ export default {
})
},
goAnalyse() {
this.$Dialog()
this.dialogShow = true
},
closeDialog() {
this.dialogShow = false
}
}
}
......
<template>
<div class="mask" v-if="isShow">
<div class="dialog-wrap">
<div class="dialog">
<div class="dialog-title">
客户价值分析
<div class="close" @click="closeHandle">
<img src="@/assets/images/close.png" />
</div>
</div>
<div class="dialog-content flex">
<div class="content-top axis">
<img src="@/assets/images/axis.png" />
</div>
<div class="content-top bg">
<div class="content-top-title">
<!-- <img class="title-icon" src="@/assets/images/title-icon.png" /> -->
<div class="title">客户价值</div>
<!-- <img class="title-icon" src="@/assets/images/title-icon.png" /> -->
</div>
<div class="content-info">
重要价值:R高、F高、M高
<br />
重要发展:R高、F低、M高
<br />
重要召回:R低、F高、M高
<br />
重要挽留:R低、F低、M高
<br />
一般价值:R高、F高、M低
<br />
一般发展:R高、F低、M低
<br />
一般召回:R低、F高、M低
<br />
一般挽留:R低、F低、M低
</div>
</div>
<div class="content-bottom bg">
<div class="title">售后客户价值模型</div>
<div class="info">
R=最近一次和上一次到店间隔时间
<br />
F=一年内到店频次
<br />
M=一年内售后工单金额
</div>
</div>
<div class="content-bottom bg">
<div class="title">当前逻辑</div>
<div class="info">
6个月内(高)< R ≤ 超6个月(低)
<br />
2次以内(低)≤ F <超2次(高)
<br />
3000元 (低)≤ M <超 3000元(高)
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'MyDialog',
props: {
isShow: Boolean
},
data() {
return {
msg: ''
}
},
methods: {
closeHandle() {
this.$emit('closeDialog')
}
}
}
</script>
<style lang="scss" scoped>
.mask {
width: 100%;
height: 100%;
position: fixed;
z-index: 99;
left: 0px;
top: 0px;
background: rgba(0, 0, 0, 0.8);
}
.dialog-wrap {
width: 61.11vw;
height: 73.29vh;
position: absolute;
z-index: 1;
left: 50%;
top: 50%;
background-image: url('../../../assets/images/bg-5.png');
background-repeat: no-repeat;
background-size: 100% 100%;
transform: translate(-50%, -50%);
border-radius: 5px;
padding: 3.9vh 3.67vw;
box-sizing: border-box;
.close {
width: 20px;
height: 20px;
position: absolute;
right: -330px;
top: -5px;
cursor: pointer;
}
.dialog-title {
width: 13.19vw;
height: 4.39vh;
background-image: url('../../../assets/images/title-dialog.png');
background-repeat: no-repeat;
background-size: 100% 100%;
text-align: center;
font-size: 20px;
color: #ffffff;
margin: 0 auto;
position: relative;
line-height: 4.39vh;
}
.dialog-content {
flex-wrap: wrap;
justify-content: space-between;
margin-top: 3.5vh;
.axis {
width: 26.88vw;
height: 34.97vh;
margin-right: 1.25vw;
img {
height: 100%;
}
}
.content-top-title {
width: 10vw;
margin: 7px auto;
display: flex;
align-items: center;
height: 2.68vh;
.title-icon {
width: 21px;
height: 7px;
}
.title {
font-weight: 500;
font-size: 16px;
color: #ffffff;
margin: 0 auto;
height: 2.68vh;
line-height: 2.68vh;
}
}
.content-info {
font-weight: 400;
font-size: 14px;
color: #c0c8d4;
margin: 0 auto;
text-align: center;
}
}
.content-top {
width: 25.14vw;
height: 27.93vh;
margin-bottom: 4.45vh;
}
.content-bottom {
width: 25.14vw;
height: 14.88vh;
font-weight: 400;
font-size: 14px;
color: #ffffff;
padding: 1.2vh 1.39vw;
box-sizing: border-box;
.title {
font-weight: 500;
font-size: 16px;
margin-bottom: 8px;
height: 2.68vh;
}
.info {
font-weight: 400;
font-size: 14px;
color: #c0c8d4;
}
}
.bg {
background: #001d43;
box-shadow: inset 0 0 20px 0 #003587;
border-radius: 4px;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!