Commit e9b3db57 by 匡雅琴

Merge branch 'v2.3.3' into kuangyq_v2.3.3

2 parents 2d38ede8 8c43e480
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"dev": "npm run serve" "dev": "npm run serve"
}, },
"dependencies": { "dependencies": {
"@antv/f2": "^4.0.20", "@antv/f2": "^3.8.10-beta.1",
"autoprefixer": "^8.0.0", "autoprefixer": "^8.0.0",
"core-js": "^3.6.4", "core-js": "^3.6.4",
"dayjs": "^1.10.5", "dayjs": "^1.10.5",
......
...@@ -104,6 +104,10 @@ img { ...@@ -104,6 +104,10 @@ img {
.font-12 { .font-12 {
font-size: 12px; font-size: 12px;
} }
.font-20 {
font-size: 20px;
}
.font-24 { .font-24 {
font-size: 24px; font-size: 24px;
...@@ -122,6 +126,9 @@ img { ...@@ -122,6 +126,9 @@ img {
.line-28 { .line-28 {
line-height: 28px; line-height: 28px;
} }
.line-18 {
line-height: 18px;
}
.line-36 { .line-36 {
line-height: 36px; line-height: 36px;
} }
...@@ -148,12 +155,24 @@ img { ...@@ -148,12 +155,24 @@ img {
.m-t-8 { .m-t-8 {
margin-top: 8px; margin-top: 8px;
} }
.m-t-16 {
margin-top: 16px;
}
.m-t-4 { .m-t-4 {
margin-top: 4px; margin-top: 4px;
} }
.m-t-6 {
margin-top: 6px;
}
.m-l-8 { .m-l-8 {
margin-left: 8px; margin-left: 8px;
} }
.m-l-16 {
margin-left: 16px;
}
.m-l-14{
margin-left: 14px;
}
.fw4 { .fw4 {
font-weight: 400; font-weight: 400;
} }
...@@ -163,6 +182,9 @@ img { ...@@ -163,6 +182,9 @@ img {
.fw7 { .fw7 {
font-weight: 700; font-weight: 700;
} }
.bold{
font-weight: bold;
}
.button { .button {
width: 343px; width: 343px;
height: 42px; height: 42px;
...@@ -185,6 +207,7 @@ img { ...@@ -185,6 +207,7 @@ img {
font-weight: 500; font-weight: 500;
height: 44px; height: 44px;
border-bottom: 1px solid rgba(216, 216, 216, 0.3); border-bottom: 1px solid rgba(216, 216, 216, 0.3);
box-sizing: border-box;
} }
.title-info::before { .title-info::before {
content: ''; content: '';
......
.sprite-icon { background-image: url(../images/sprite.png);background-size: 158px 144px;} .sprite-icon { background-image: url(../images/sprite.png);background-size: 158px 148px;}
.icon-active { width: 20px; height: 20px; background-position: 0px -96px;} .icon-active { width: 20px; height: 20px; background-position: -72px -96px;}
.icon-append { width: 32px; height: 32px; background-position: -54px 0px;} .icon-append { width: 32px; height: 32px; background-position: -54px 0px;}
.icon-appoint { width: 32px; height: 32px; background-position: 0px -54px;} .icon-appoint { width: 32px; height: 32px; background-position: 0px -54px;}
.icon-arrow { width: 7px; height: 11px; background-position: -96px -72px;} .icon-arrow { width: 7px; height: 11px; background-position: -140px -130px;}
.icon-avatar { width: 44px; height: 44px; background-position: 0px 0px;} .icon-avatar { width: 44px; height: 44px; background-position: 0px 0px;}
.icon-customer-active { width: 16px; height: 16px; background-position: -56px -126px;} .icon-customer-active { width: 16px; height: 16px; background-position: -114px -130px;}
.icon-customer-add { width: 28px; height: 20px; background-position: -96px -42px;} .icon-customer-add { width: 28px; height: 20px; background-position: -34px -96px;}
.icon-customer-copy { width: 18px; height: 20px; background-position: -138px -30px;} .icon-customer-copy { width: 18px; height: 20px; background-position: -138px -90px;}
.icon-customer-phone { width: 20px; height: 20px; background-position: -30px -96px;} .icon-customer-phone { width: 20px; height: 20px; background-position: -102px -96px;}
.icon-factory { width: 32px; height: 32px; background-position: -42px -54px;} .icon-factory { width: 32px; height: 32px; background-position: -42px -54px;}
.icon-fllow { width: 18px; height: 18px; background-position: -138px -88px;}
.icon-follow { width: 32px; height: 32px; background-position: -96px 0px;} .icon-follow { width: 32px; height: 32px; background-position: -96px 0px;}
.icon-followRecord { width: 20px; height: 20px; background-position: -60px -96px;}
.icon-identifier { width: 20px; height: 20px; background-position: -90px -96px;}
.icon-maintant { width: 20px; height: 20px; background-position: -138px 0px;}
.icon-message { width: 18px; height: 18px; background-position: 0px -126px;}
.icon-open-arrow { width: 8px; height: 7px; background-position: -113px -72px;}
.icon-sendwechat { width: 20px; height: 18px; background-position: -138px -60px;}
.icon-tel { width: 18px; height: 18px; background-position: -28px -126px;}
\ No newline at end of file \ No newline at end of file
.icon-identifier { width: 20px; height: 20px; background-position: -138px 0px;}
.icon-open-arrow { width: 8px; height: 7px; background-position: -96px -76px;}
.icon-fllow { width: 18px; height: 18px; background-position: -30px -130px;}
.icon-followRecord { width: 20px; height: 20px; background-position: -138px -30px;}
.icon-maintant { width: 20px; height: 20px; background-position: -138px -60px;}
.icon-message { width: 18px; height: 18px; background-position: -58px -130px;}
.icon-sendwechat { width: 20px; height: 18px; background-position: 0px -130px;}
.icon-tel { width: 18px; height: 18px; background-position: -86px -130px;}
.icon-fail { width: 24px; height: 24px; background-position: -96px -42px;}
.icon-succeed { width: 24px; height: 24px; background-position: 0px -96px;}
\ No newline at end of file \ No newline at end of file

32.8 KB | W: | H:

36.2 KB | W: | H:

src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<van-dropdown-menu active-color="#3369B1" class="qw-drop-down">
<van-dropdown-item v-model="value1" :options="option1" @change="selectChange" />
<van-dropdown-item v-model="value2" :disabled="disabled" :options="option2" @change="selectSecondChange" />
</van-dropdown-menu>
</template>
<script>
export default {
name: 'DropDown',
data() {
return {
option1: this.selectOption1,
option2: this.selectOption2,
value1: this.currentValue1,
value2: this.currentValue2,
disabled: true
}
},
props: {
selectOption1: {
type: Array,
default: () => {
return []
}
},
selectOption2: {
type: Array,
default: () => {
return []
}
},
currentValue1: {
type: Number,
default: 0
},
currentValue2: {
type: Number,
default: 0
}
},
methods: {
selectChange(value) {
this.disabled = false
this.value1 = value
this.$emit('changeFirst', value)
},
selectSecondChange(value) {
this.value2 = value
this.$emit('changeSecond', value)
}
}
}
</script>
<style lang="scss" scoped>
.qw-drop-down /deep/ .van-ellipsis {
font-size: 14px;
font-weight: 400;
}
</style>
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
background-color: #dfe7f1; background-color: #dfe7f1;
.item { .item {
width: 50%; width: 50%;
transition: all 0.5s; // transition: all 0.5s;
font-size: 14px; font-size: 14px;
} }
.active-0 { .active-0 {
......
...@@ -17,11 +17,12 @@ import store from './store' ...@@ -17,11 +17,12 @@ import store from './store'
import api from './api' import api from './api'
import { fetchConfig, cfg } from '@/config' import { fetchConfig, cfg } from '@/config'
import '@/assets/css/index.scss' import '@/assets/css/index.scss'
import { bus, tools, store as local, util } from './utils' import { bus, tools, store as local, util,constants } from './utils'
import './utils/util' import './utils/util'
import 'components' import 'components'
import { components } from '@/plugins/vant' import { components } from '@/plugins/vant'
components.forEach(component => Vue.use(component)) components.forEach(component => Vue.use(component))
Vue.prototype.$constants = constants
Vue.prototype.api = api Vue.prototype.api = api
Vue.prototype.bus = bus Vue.prototype.bus = bus
Vue.prototype.tools = tools Vue.prototype.tools = tools
......
...@@ -107,16 +107,16 @@ const pages = { ...@@ -107,16 +107,16 @@ const pages = {
} }
}, },
{ {
name: 'follow', name: 'marketing',
meta: { meta: {
title: '查看客户详情', title: '一键营销',
backgroundColor: '#F7F7F7' backgroundColor: '#F7F7F7'
} }
}, },
{ {
name: 'overview', name: 'succeed',
meta: { meta: {
title: '查看客户详情', title: '招揽跟进',
backgroundColor: '#F7F7F7' backgroundColor: '#F7F7F7'
} }
}, },
...@@ -126,6 +126,13 @@ const pages = { ...@@ -126,6 +126,13 @@ const pages = {
title: '触达统计', title: '触达统计',
backgroundColor: '#F7F7F7' backgroundColor: '#F7F7F7'
} }
},
{
name: 'lookCustomer',
meta: {
title: '触达统计',
backgroundColor: '#F7F7F7'
}
} }
] ]
} }
......
...@@ -7,3 +7,91 @@ ...@@ -7,3 +7,91 @@
* @LastEditTime: 2021-06-15 14:45:39 * @LastEditTime: 2021-06-15 14:45:39
*/ */
export const STORE_USER_KEY = 'STORE_USER_KEY' export const STORE_USER_KEY = 'STORE_USER_KEY'
export const BULLETINLIST = [
{
todayText: '今日跟进 (人)',
todayValue: obj => {
return obj.addWayName
},
currentMonth: '本月跟进 ',
currentValue: obj => {
return obj.addWayName
},
icon: 'icon-follow'
},
{
todayText: '今日添加 (人)',
todayValue: obj => {
return obj.addWayName
},
currentMonth: '本月添加 ',
currentValue: obj => {
return obj.addWayName
},
icon: 'icon-append'
},
{
todayText: '今日预约 (人)',
todayValue: obj => {
return obj.addWayName
},
currentMonth: '本月预约 ',
currentValue: obj => {
return obj.addWayName
},
icon: 'icon-appoint'
},
{
todayText: '今日返厂 (人)',
todayValue: obj => {
return obj.addWayName
},
currentMonth: '本月返厂 ',
currentValue: obj => {
return obj.addWayName
},
icon: 'icon-factory'
}
]
export const STATICLIST = [
{
text: '总招揽数',
value: obj => {
return obj.addWayName
}
},
{
text: '企微客户',
value: obj => {
return obj.addWayName
}
},
{
text: '未加企微',
value: obj => {
return obj.addWayName
}
}
]
export const FOLLOWLIST = [
{
text: '平均跟进',
value: obj => {
return obj.addWayName+'次/人'
}
},
{
text: '最多跟进',
value: obj => {
return obj.addWayName+'次'
}
},
{
text: '最少跟进',
value: obj => {
return obj.addWayName+'次'
}
}
]
<template>
<div class="bar-container">
<canvas class="canvas" :id="refId"></canvas>
</div>
</template>
<script>
import F2 from '@antv/f2/lib/index-all'
export default {
name: 'barChart',
data() {
return {
chart: null,
chartColor: this.color,
refId: this.id
}
},
props: {
color: {
type: Array,
default: () => []
},
list: {
type: Array,
default: () => []
},
id: {
type: String,
default: () => ''
}
},
mounted() {
this.initCanvas()
},
methods: {
initCanvas() {
let id = this.refId
const data = [
{
year: '1951 年',
sales: 38
},
{
year: '1952 年',
sales: 52
},
{
year: '1956 年',
sales: 61
},
{
year: '1957 年',
sales: 145
},
{
year: '1958 年',
sales: 61
},
{
year: '1959 年',
sales: 145
}
]
this.chart && this.chart.clear()
this.chart = null
this.chart = new F2.Chart({
id,
pixelRatio: window.devicePixelRatio,
padding: [16, 24, 24, 120],
height: data.length * 45
})
this.chart.source(data, {
sales: {
tickCount: 7
}
})
this.chart.coord({
transposed: true
})
this.chart.interval().position('year*sales')
this.chart.render()
// 绘制柱状图文本
const offset = -6
const canvas = this.chart.get('canvas')
const group = canvas.addGroup()
const shapes = {}
data.forEach(obj => {
const point = this.chart.getPosition(obj)
const text = group.addShape('text', {
attrs: {
x: 134,
y: point.y - offset,
text: obj.sales,
fill: '#ffffff',
fontSize: 10
}
})
shapes[obj.year] = text // 缓存该 shape, 便于后续查找
})
}
}
}
</script>
<style lang="scss" scoped>
.canvas {
width: 100%;
// height: 160px;
}
</style>
<template>
<div class="pie-container flex">
<canvas class="canvas" :id="refId"></canvas>
<div class="list-info">
<div class="list-info-item">
<div class="font-12 color-2f line-18 flex">
<div class="circle"></div>
已跟进 (人)
</div>
<div class="font-16 color-3 line-24 bold m-l-14">396</div>
</div>
<div class="list-info-item">
<div class="font-12 color-2f line-18 flex">
<div class="circle"></div>
已跟进 (人)
</div>
<div class="font-16 color-3 line-24 bold m-l-14">396</div>
</div>
</div>
</div>
</template>
<script>
import F2 from '@antv/f2/lib/index-all'
export default {
name:'pieChart',
data() {
return {
chart: null,
chartColor: this.color,
refId: this.id
}
},
props: {
color: {
type: Array,
default: () => []
},
list: {
type: Array,
default: () => []
},
id: {
type: String,
default: () => ''
}
},
mounted() {
this.initCanvas()
},
methods: {
initCanvas() {
let id = this.refId
// let { productionValueReportList, orderSource } = this
// productionValueReportList.map(e => {
// e.count = 'count'
// })
const data = [
{
const: 'const',
type: '交通出行',
money: 51.39
},
{
const: 'const',
type: '饮食',
money: 356.68
}
]
this.chart && this.chart.clear()
this.chart = null
this.chart = new F2.Chart({
id,
pixelRatio: window.devicePixelRatio,
padding: [20, 20, 20, 20]
})
this.chart.source(data)
this.chart.coord('polar', {
transposed: true,
radius: 0.9,
innerRadius: 0.6
})
this.chart.axis(false)
this.chart.legend(false)
this.chart.tooltip(false)
this.chart.guide().html({
position: ['50%', '55%'],
html: '<div style="text-align: center;width:150px;height: 50px;">\n <p style="font-size: 10px;color: #999;margin: 0" id="title"></p>\n <p style="font-size: 18px;color: #343434;margin: 0;font-weight: bold;" id="money"></p>\n </div>'
})
this.chart.interval().position('const*money').adjust('stack').color('type', this.chartColor)
this.chart.pieLabel({
activeShape: false,
lineStyle: {
stroke: '#fff' // 线的颜色
},
anchorStyle: {
fill: '#fff'
},
onClick(ev) {
const data = ev.data
if (data) {
document.getElementById('title').innerText = data.type
document.getElementById('money').innerText = data.money
}
}
})
this.chart.render()
}
}
}
</script>
<style lang="scss" scoped>
.canvas {
width: calc(100% - 135px);
height: 160px;
}
.list-info-item {
margin-top: 16px;
.circle {
width: 8px;
height: 8px;
background: #3975c6;
border-radius: 2px;
margin-right: 6px;
}
}
.list-info-item:nth-child(1) {
margin-top: 0;
}
</style>
<template> <template>
<div class="follow-container"> <div class="follow-container">
<div class="follow-statistics flex m-b-16"> <div class="follow-statistics flex m-b-16">
<template v-for="i in 3"> <template v-for="(s,i) in statisticList">
<div class="follow-statistics-single" :key="i"> <div class="follow-statistics-single" :key="i">
<div class="font-24 color-3 fw7 line-36">875</div> <div class="font-24 color-3 fw7 line-36">875</div>
<div class="font-12 color-2f m-t-4">总招揽数</div> <div class="font-12 color-2f m-t-4">{{s.text}}</div>
</div> </div>
</template> </template>
</div> </div>
...@@ -24,14 +24,14 @@ ...@@ -24,14 +24,14 @@
</div> </div>
<template v-if="follewIndex == 0"> <template v-if="follewIndex == 0">
<div class="flex-around follow-btn"> <div class="flex-around follow-btn">
<div class="color39 font-14">一键营销</div> <div class="color39 font-14" @click="goTo('solicit.marketing')">一键营销</div>
<div class="colord8">|</div> <div class="colord8">|</div>
<div class="color39 font-14">触达统计</div> <div class="color39 font-14" @click="goTo('solicit.statistic')">触达统计</div>
</div> </div>
</template> </template>
<template v-else> <template v-else>
<div class="follow-btn"> <div class="follow-btn">
<div class="color39 font-14">查看客户</div> <div class="color39 font-14" @click="goTo('solicit.lookCustomer')">查看客户</div>
</div> </div>
</template> </template>
</div> </div>
...@@ -41,15 +41,20 @@ ...@@ -41,15 +41,20 @@
</div> </div>
</template> </template>
<script> <script>
import ScrollView from '../../components/ScrollView.vue'
export default { export default {
components: { ScrollView },
data() { data() {
return { return {
follewIndex: 0 follewIndex: 0,
statisticList: []
} }
}, },
created() {
this.statisticList = this.$constants.STATICLIST
},
methods: { methods: {
goTo(name) {
this.$router.push({ name })
},
changeFollow(index) { changeFollow(index) {
this.follewIndex = index this.follewIndex = index
}, },
...@@ -74,7 +79,7 @@ export default { ...@@ -74,7 +79,7 @@ export default {
} }
} }
.content { .content {
height: calc(100vh - 202px); height: calc(100vh - 232px);
.follow-content { .follow-content {
padding: 16px 12px; padding: 16px 12px;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -2,24 +2,27 @@ ...@@ -2,24 +2,27 @@
<div class="solicit-container"> <div class="solicit-container">
<tab :list="['总览', '跟进(5)', '结果(672)']" :index="currentIndex" @change="changeIndex"></tab> <tab :list="['总览', '跟进(5)', '结果(672)']" :index="currentIndex" @change="changeIndex"></tab>
<div class="solicit-content"> <div class="solicit-content">
<overview v-if="currentIndex== 0"></overview> <overview v-if="currentIndex == 0"></overview>
<follow v-if="currentIndex== 1"></follow> <follow v-if="currentIndex == 1"></follow>
<result v-if="currentIndex == 2"></result>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import overview from './overview.vue' import overview from './overview.vue'
import follow from './follow.vue' import follow from './follow.vue'
import result from './result.vue'
export default { export default {
name: 'index', name: 'index',
data() { data() {
return { return {
currentIndex: 1 currentIndex: 0
} }
}, },
components: { components: {
overview, overview,
follow follow,
result
}, },
methods: { methods: {
changeIndex(index) { changeIndex(index) {
......
<template>
<div class="customer-container">
<div class="customer-container-head">
<div class="font-16 color54 line-24 title">定保N-5</div>
<div class="search-head flex">
<van-dropdown-menu active-color="#3369B1">
<van-dropdown-item v-model="searchType" :options="seachArray" />
</van-dropdown-menu>
<search :keyword="keyWord" placeholder="请输入关键字" @search="searchkeyWord"></search>
</div>
<!-- <select-bar :list="['全部', '未跟进', '未接听']" :index="currentIndex" @change="changeCurrent"></select-bar> -->
<drop-down
:selectOption1="statusList"
:selectOption2="resultList"
:currentValue1="status"
:currentValue2="result"
@changeFirst="changeFirst"
@selectSecondChange="selectSecondChange"
></drop-down>
</div>
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<customer-card :customerInfo="customerInfo"></customer-card>
</scroll-view>
</div>
</template>
<script>
export default {
data() {
return {
keyWord: '',
currentIndex: 0,
status: 0,
result: 0,
searchType: 0,
seachArray: [
{ text: '客户姓名', value: 0 },
{ text: '车牌号', value: 1 },
{ text: '车架号', value: 2 },
{ text: '手机号码', value: 3 }
],
customerInfo: [
{
id: 1,
name: '林先生',
carNumber: '月A8888',
carBrand: 'BMW',
result: '未接听',
wechatMarketing: '一查看',
joinWechat: '美女',
date: '05-07 15:30',
updateDate: '05-07 15:30',
telNumber: ''
},
{
id: 2,
name: 'kuang先生',
carNumber: '',
carBrand: 'BMW',
result: '未接听',
wechatMarketing: '一查看',
joinWechat: '美女',
date: '05-07 15:30',
updateDate: '05-07 15:30',
telNumber: '18818188989'
},
{
id: 3,
name: 'xu先生',
carNumber: '粤B 8888',
carBrand: '兰博基尼',
result: '未接听',
wechatMarketing: '一查看',
joinWechat: '美女',
date: '05-07 15:30',
updateDate: '05-07 15:30',
telNumber: '18818188989'
},
{
id: 4,
name: '林先生',
carNumber: '月A8888',
carBrand: 'BMW',
result: '未接听',
wechatMarketing: '一查看',
joinWechat: '美女',
date: '05-07 15:30',
updateDate: '05-07 15:30',
telNumber: ''
},
{
id: 5,
name: 'kuang先生',
carNumber: '',
carBrand: 'BMW',
result: '未接听',
wechatMarketing: '一查看',
joinWechat: '美女',
date: '05-07 15:30',
updateDate: '05-07 15:30',
telNumber: '18818188989'
},
{
id: 6,
name: 'xu先生',
carNumber: '粤B 8888',
carBrand: '兰博基尼',
result: '未接听',
wechatMarketing: '一查看',
joinWechat: '美女',
date: '05-07 15:30',
updateDate: '05-07 15:30',
telNumber: '18818188989'
}
],
statusList: [
{ text: '全部状态', value: 0 },
{ text: '已跟进', value: 1 },
{ text: '未跟进', value: 2 }
],
resultList: [
{ text: '全部结果', value: 0 },
{ text: '预约到店', value: 1 },
{ text: '价格高', value: 2 },
{ text: '已保养', value: 3 },
{ text: '未接听', value: 4 },
{ text: '不感兴趣', value: 5 },
{ text: '空号', value: 6 },
{ text: '距离远', value: 7 },
{ text: '非本人', value: 8 },
{ text: '其他', value: 9 }
]
}
},
methods: {
onReachBottom() {
this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true
},
searchkeyWord(e) {
this.keyWord = e
},
changeFirst(index) {
this.status = index
},
selectSecondChange(index) {
this.result = index
}
}
}
</script>
<style lang="scss" scoped>
.customer-container {
&-head {
height: 142px;
background: #fff;
margin-bottom: 12px;
.search-head {
padding: 0 16px;
height: 50px;
box-sizing: border-box;
border-bottom: 1px solid rgba(216, 216, 216, 0.3);
/deep/.van-dropdown-menu__bar {
box-shadow: 0 0 0 #fff;
font-size: 14px;
font-weight: 400;
color: #333333;
width: 77px;
margin-right: 13px;
}
/deep/ .van-search {
width: 250px;
padding: 0;
}
/deep/ .van-dropdown-item__content {
width: 160px;
background: #ffffff;
border-radius: 8px;
margin: 4px 0 0 8px;
/deep/ .van-cell__title {
text-align: center;
}
/deep/ .van-cell__value {
display: none;
width: 0;
}
}
}
.title {
padding: 10px 16px;
}
}
.content {
height: calc(100vh - 154px);
}
}
</style>
<template>
<div class="marking-container">
<div class="marking-container-content m-b-16">
<div class="font-16 color-3 fw5 m-b-12 line-24">发送内容</div>
<template v-if="isEmpty">
<div class="font-14 color-3">尊敬的客户,您好!我店本月推出自费喷漆特惠活动,折扣后单面喷漆低至200元,点击下方链接享受优惠:</div>
</template>
<template v-else>
<empty class="marking-empty" description="门店尚未针对该人群设置营销物料"></empty>
</template>
</div>
<div class="marking-container-customer flex-between">
<div class="font-16 color-3 fw5">发送客户</div>
<div class="color-2f font-14 flex" @click="goTo('solicit.customer')">
共200人
<div class="sprite-icon icon-arrow m-l-8"></div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
isEmpty: false
}
},
methods: {
goTo(name) {
this.$router.push({ name })
}
}
}
</script>
<style lang="scss" scoped>
.marking-container {
padding: 16px;
&-content {
background: #fff;
padding: 16px;
.marking-empty {
padding: 39px 0 24px 0 !important;
/deep/ .van-empty__description {
padding: 0;
}
}
}
&-customer {
height: 56px;
background: #ffffff;
box-shadow: 0px 3px 10px 0px rgba(223, 228, 234, 0.81);
border-radius: 4px;
padding: 0 16px;
}
}
</style>
...@@ -2,25 +2,28 @@ ...@@ -2,25 +2,28 @@
<div class="overview-container"> <div class="overview-container">
<div class="overview-wrap m-b-16"> <div class="overview-wrap m-b-16">
<div class="title-info">客户招揽概况</div> <div class="title-info">客户招揽概况</div>
<div class="overview-content"></div> <div class="overview-content">
<pieChart :color="styleColor" id="overviewRef"></pieChart>
</div>
</div> </div>
<div class="overview-wrap m-b-16"> <div class="overview-wrap m-b-16">
<div class="title-info">客户分群</div> <div class="title-info">客户分群</div>
<div class="overview-content"></div> <div class="overview-group">
<barChart :color="styleColor" id="groupingRef"></barChart>
</div>
</div> </div>
<div class="overview-wrap m-b-16"> <div class="overview-wrap m-b-16">
<div class="title-info">工作简报</div> <div class="title-info">工作简报</div>
<div class="bulletin flex"> <div class="bulletin flex">
<template v-for="i in 4"> <template v-for="(item,index) in bulletinList">
<div class="bulletin-single flex-top m-b-16" :key="i"> <div class="bulletin-single flex-top m-b-16" :key="index">
<div class="logo sprite-icon icon-append"> <div :class="['logo' ,'sprite-icon', item.icon]"></div>
</div>
<div class="bulletin-info"> <div class="bulletin-info">
<div class="color-2f font-12">今日跟进 (人)</div> <div class="color-2f font-12">{{item.todayText}}</div>
<div class="number color-3 font-24 fw7">3</div> <div class="number color-3 font-24 fw7">3</div>
<div class="color-2f font-12 m-t-8"> <div class="color-2f font-12 m-t-8">
本月跟进 {{item.currentMonth}}
<span class="font-14 color-3 fw5">240</span> <span class="font-14 color-3 fw5">240</span>
</div> </div>
</div> </div>
...@@ -31,7 +34,23 @@ ...@@ -31,7 +34,23 @@
</div> </div>
</template> </template>
<script> <script>
export default {} import pieChart from '../solicit/components/pie.vue'
import barChart from '../solicit/components/bar.vue'
export default {
components: {
pieChart,
barChart
},
data() {
return {
styleColor: ['#3975C6', '#E6E7EB'],
bulletinList: []
}
},
created(){
this.bulletinList = this.$constants.BULLETINLIST
}
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.overview-container { .overview-container {
...@@ -39,6 +58,10 @@ export default {} ...@@ -39,6 +58,10 @@ export default {}
background: #fff; background: #fff;
.overview-content { .overview-content {
height: 160px; height: 160px;
box-sizing: border-box;
}
.overview-group {
box-sizing: border-box;
} }
.bulletin { .bulletin {
height: 236px; height: 236px;
......
<template>
<div class="result-container">
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<div class="result-container-content">
<template v-for="i in 10">
<div :key="i" class="result-container-content-item">
<div class="title-info">定保 N-6</div>
<div class="result-content flex-between">
<div class="result-content-list flex-top" @click="goto('solicit.succeed')">
<div class="sprite-icon icon-succeed"></div>
<div class="m-l-8">
<div class="font-14 color-3 fw5">成功到店</div>
<div class="font-12 color-2f m-t-4">客户:200人</div>
</div>
</div>
<div class="result-content-list flex-top">
<div class="sprite-icon icon-fail"></div>
<div class="m-l-8">
<div class="font-14 color-3 fw5">成功到店</div>
<div class="font-12 color-2f m-t-4">客户:200人</div>
</div>
</div>
</div>
</div>
</template>
</div>
</scroll-view>
</div>
</template>
<script>
export default {
methods: {
goto(name) {
this.$router.push({ name })
},
onReachBottom() {
this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true
}
}
}
</script>
<style lang="scss" scoped>
.result-container {
/deep/ .van-list {
background: #f7f7f7;
}
.content {
height: calc(100vh - 82px);
}
&-content-item {
background: #fff;
height: 144px;
margin-bottom: 16px;
overflow: hidden;
.title-info::before {
content: '';
width: 3px;
height: 14px;
background: #fff;
border-radius: 1.5px;
margin-right: 13px;
display: inline-block;
}
.result-content {
padding: 16px;
&-list {
width: 150px;
height: 68px;
background: #f7f7f7;
border-radius: 6px;
padding: 12px;
box-sizing: border-box;
}
}
}
}
</style>
<template>
<div class="succeed-container">
<div class="succeed-title font-20 color-3 fw5">
定保 N-6
<span class="color39 font-16 m-l-8">- 成功到店</span>
</div>
<div class="succeed-content">
<div class="succeed-wrap m-b-16">
<div class="title-info">客户分布</div>
<div class="succeed-wrap-info">
<pieChart :color="styleColor" id="customerRef"></pieChart>
</div>
</div>
<div class="succeed-wrap m-b-16">
<div class="title-info">跟进频次</div>
<div class="succeed-wrap-frequency flex-between">
<template v-for="(f,i) in followList">
<div class="succeed-wrap-frequency-single" :key="i">
<div class="font-16 color-3 bold line-24">5次/人</div>
<div class="font-12 color-2f m-t-6">{{f.text}}</div>
</div>
</template>
</div>
</div>
<div class="succeed-wrap m-b-16">
<div class="title-info">
预约与到店
<div class="flex fact-wrap">
<div class="fact flex">
<div class="reserved"></div>
预约到店
</div>
<div class="fact flex m-l-16">
<div class="arrive"></div>
实际到店
</div>
</div>
</div>
<div class="succeed-wrap-order-info">
<lineChart id="orderRef"></lineChart>
</div>
</div>
<div class="succeed-wrap m-b-16">
<div class="title-info">企微营销</div>
<barChart :color="styleColor" id="markingRef"></barChart>
</div>
</div>
</div>
</template>
<script>
import pieChart from '../solicit/components/pie.vue'
import lineChart from '../solicit/components/line.vue'
import barChart from '../solicit/components/bar.vue'
export default {
components: {
pieChart,
lineChart,
barChart
},
data() {
return {
styleColor: ['#FDB757', '#3975C6'],
followList:[]
}
},
created(){
this.followList =this.$constants.FOLLOWLIST
}
}
</script>
<style lang="scss" scoped>
.succeed-container {
.succeed-title {
height: 52px;
background: #ffffff;
box-shadow: 0px 1px 0px 0px #e9e9e9;
padding: 11px 16px;
box-sizing: border-box;
}
.succeed-content {
padding: 12px;
.succeed-wrap {
background: #fff;
.title-info {
position: relative;
}
.title-info::before {
content: '';
width: 3px;
height: 14px;
background: #fff;
border-radius: 1.5px;
margin-right: 13px;
display: inline-block;
}
&-order-info {
height: 180px;
box-sizing: border-box;
}
&-info {
height: 160px;
box-sizing: border-box;
}
&-frequency {
padding: 24px 45px;
height: 96px;
box-sizing: border-box;
&-single {
width: auto;
div {
text-align: center;
}
}
}
.fact-wrap {
position: absolute;
right: 16px;
top: 13px;
.fact {
font-size: 12px;
font-weight: 400;
color: rgba(47, 64, 86, 0.7);
line-height: 18px;
}
.reserved {
width: 8px;
height: 3px;
background: #fa7c0b;
border-radius: 2px;
margin-right: 6px;
}
.arrive {
width: 8px;
height: 3px;
background: #3975c6;
border-radius: 2px;
margin-right: 6px;
display: inline-block;
}
}
}
}
}
</style>
...@@ -51,7 +51,7 @@ const spritesmithFunction = data => { ...@@ -51,7 +51,7 @@ const spritesmithFunction = data => {
return `${shared}\n${perSprite}` return `${shared}\n${perSprite}`
} }
module.exports = { module.exports = {
publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main-kuangyq/', // 署应用包时的基本 URL。 vue-router hash 模式使用 publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main-test/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用 // publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用 // publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用 // publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!