index copy.vue
16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
<template>
<div>
<div class="scrm-sub-client-container">
<h3 class="pageSubTitle">客户分层</h3>
<div class="topmsg">
<div class="leftPieEcharts">
<span class="clientTotal">{{ 10000 | overThousandFilter }}人</span>
<div class="topIcon">
<span class="top-inWechat">已加企微</span>
<span class="top-outWechat">未加企微</span>
</div>
<span class="inWechat">已加企微</span>
<span class="blueNum">{{ 7000 | overThousandFilter }}人</span>
<span class="outWechat">未加企微</span>
<span class="yellowNum">{{ 3000 | overThousandFilter }}人</span>
<!-- 引入echart组件 -->
<pie-echart width="100%" height="360px"></pie-echart>
<div class="personsMap">
<pictorial-bar width="100%" height="496px"></pictorial-bar>
</div>
</div>
<div class="itembox">
<div class="no-buy">
<div class="no-buy-total item">
<span>潜在(意向)客户数</span>
<span>{{ 70000 | overThousandFilter }}人</span>
<span>未购车且无交易行为的所有客户</span>
<span>环比:30%</span>
<i class="triangle" :class="{ active: !isNoBuyUp }"></i>
<i class="vertical-line"></i>
</div>
<div class="rightWrap">
<div class="inCompanyWechatNum item smallWrap">
<span>已加企微客户数</span>
<span>{{ 70000 | overThousandFilter }}人</span>
<span>已加企微的潜在(意向)客户</span>
<i class="horizontal-line"></i>
</div>
<div class="outCompanyWechatNum item smallWrap">
<span>未加企微客户数</span>
<span>{{ 70000 | overThousandFilter }}人</span>
<span>未加加企微的潜在(意向)客户</span>
<button class="btn">智能短信外呼>></button>
</div>
</div>
</div>
<div class="buy">
<div class="buy-total item">
<span>购买(存档)客户数</span>
<span>{{ 100000 | overThousandFilter }}人</span>
<span>已购车且有交易行为的所有客户</span>
<span>环比:30%</span>
<i class="triangle" :class="{ active: !isBuyUp }"></i>
<i class="vertical-line"></i>
</div>
<div class="rightWrap">
<div class="inCompanyWechatNum item smallWrap">
<span>已加企微客户数</span>
<span>{{ 70000 | overThousandFilter }}人</span>
<span>已加企微的购买(存档)客户</span>
<button class="btn">企微魔方>></button>
<i class="horizontal-line"></i>
</div>
<div class="outCompanyWechatNum item smallWrap">
<span>未加企微客户数</span>
<span>{{ 70000 | overThousandFilter }}人</span>
<span>未加企微的购买(存档)客户</span>
<button class="btn">智能短信外呼>></button>
</div>
</div>
</div>
</div>
</div>
<div class="middlemsg">
<h3 class="pageSubTitle">客户分群</h3>
<div class="itembox">
<div class="item" v-for="(item, index) in titles" :key="index">
<p>{{ item.name }}</p>
<p>{{ item.subName }}</p>
<p>{{ item.num | overThousandFilter }}人</p>
<img :src="item.url" alt="" />
</div>
</div>
</div>
<h3 class="pageSubTitle">客户增长趋势</h3>
<div class="bottommsg">
<span class="timeDuring">2021/08/03~2021/09/03</span>
<span class="lastest">近30天</span>
<button class="btn30 optionBtn">近30天</button>
<button class="btn7 optionBtn">近7天</button>
<div class="clientAddTrend">
<div class="one1">
<span>区间统计:</span>
<span>
全部客户:
<a>{{ 10000 | overThousandFilter }}人</a>
</span>
<span>
企微客户:
<a>{{ 10000 | overThousandFilter }}人</a>
</span>
</div>
<div class="one2">
<span>
日均新增:
<a>{{ 1000 | overThousandFilter }}人</a>
</span>
<span>
日均新增:
<a>{{ 1000 | overThousandFilter }}人</a>
</span>
</div>
</div>
<multiple-echart width="100%" height="420px"></multiple-echart>
</div>
</div>
</div>
</template>
<script>
import pieEchart from '@/components/echarts/pieEchart'
import multipleEchart from '@/components/echarts/multipleEchart'
import pictorialBar from '@/components/echarts/pictorialBar'
import url1 from '../../assets/clientDataOverview/1.png'
import url2 from '../../assets/clientDataOverview/2.png'
import url3 from '../../assets/clientDataOverview/3.png'
import url4 from '../../assets/clientDataOverview/4.png'
export default {
name: 'clientManage',
components: {
pieEchart,
multipleEchart,
pictorialBar
},
// filters: { filters },
// filters: {
// overThousandFilter: function (val) {
// if (val < 1000) return val;
// let a = val + "";
// let b = a.split("");
// b.splice(-3, 0, ",");
// return b.join("");
// },
// },
data() {
return {
titles: [
{
name: '新车客户数',
subName: '购车时间3个月的客户',
num: 10,
url: url1
},
{
name: '沉默客户数',
subName: '超过180天未到店的客户',
num: 100,
url: url2
},
{
name: '车险待续保客户数',
subName: '近一个月内车险即将到期的客户',
num: 1000,
url: url3
},
{
name: '新车待首保客户数',
subName: '购车时间5~7个月内,且无保养记录的客户',
num: 10000,
url: url4
}
],
isNoBuyUp: true, //默认环比为增
isBuyUp: false
}
},
methods: {
btnClick(ptype, scope) {}
}
}
</script>
<style lang="scss" scoped>
.scrm-sub-client-container {
.pageSubTitle {
position: relative;
height: 20px;
font-size: 20px;
font-weight: 700;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
}
.topmsg {
display: flex;
.leftPieEcharts {
position: relative;
background-color: #fff;
width: 372px;
height: 496px; //470
box-sizing: border-box;
// border: 1px solid rgba(121, 121, 121, 1);
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.clientTotal {
position: absolute;
right: 20px;
top: 20px;
height: 26px;
font-size: 26px;
font-weight: 500;
color: #333333;
line-height: 26px;
z-index: 9;
}
.topIcon {
position: absolute;
left: 125px;
top: 100px;
width: 160px;
height: 17px;
align-items: center;
font-size: 12px;
color: #8c8c8c;
display: flex;
justify-content: space-between;
.top-inWechat {
position: relative;
&::before {
content: '';
position: absolute;
width: 9px;
height: 9px;
border-radius: 50%;
left: -18px;
top: 4px;
background-color: #716aff;
}
}
.top-outWechat {
position: relative;
&::before {
content: '';
position: absolute;
width: 9px;
height: 9px;
border-radius: 50%;
left: -18px;
top: 4px;
background-color: #fe9c1c;
}
}
}
.inWechat {
position: absolute;
left: 57px;
top: 365px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
z-index: 9;
}
.blueNum {
position: absolute;
left: 57px;
top: 389px;
height: 25px;
font-size: 18px;
font-weight: 600;
color: #716aff;
line-height: 25px;
z-index: 9;
}
.outWechat {
position: absolute;
right: 57px;
top: 365px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
background-color: #fff;
z-index: 9;
}
.yellowNum {
position: absolute;
right: 57px;
top: 389px;
font-size: 18px;
font-weight: 600;
color: #fe9c1c;
line-height: 25px;
}
.personsMap {
width: 468px;
position: absolute;
left: 0;
bottom: 0px;
// z-index: 9;
}
}
.itembox {
width: calc(100% - 372px);
.item {
// border: 1px solid rgba(121, 121, 121, 1);
height: 119px;
box-sizing: border-box;
}
.item.no-buy-total,
.item.buy-total {
height: 238px;
width: 50%;
position: relative;
span {
position: absolute;
&:first-child {
font-weight: bold;
height: 22px;
font-size: 16px;
color: #333333;
line-height: 22px;
top: 20px;
left: 24px;
}
&:nth-child(2) {
top: 109px;
// left: 126px;
left: 33%;
height: 26px;
font-size: 26px;
font-weight: 500;
color: #333333;
line-height: 26px;
letter-spacing: 1px;
}
&:nth-child(3) {
top: 50px;
left: 24px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
&:nth-child(4) {
top: 160px;
// left: 136px;
left: 35.5%;
height: 22px;
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 22px;
}
}
.triangle {
position: absolute;
left: 50.8%;
top: 165px;
width: 0px;
height: 0px;
border-bottom: 10px solid #ff2020;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
&.active {
border-bottom: 10px solid #2cca74;
transform: rotate(180deg);
}
}
.vertical-line {
position: absolute;
width: 2px;
height: 200px;
background: #f0f0f0;
top: 20px;
right: 0;
}
}
.no-buy,
.buy {
display: flex;
margin-left: 20px;
background-color: #fff;
&:last-child {
margin-top: 20px;
}
}
.rightWrap {
width: 48%;
margin-left: 20px;
position: relative;
.smallWrap {
position: relative;
span {
position: absolute;
&:first-child {
font-weight: bold;
height: 22px;
font-size: 16px;
color: #333333;
line-height: 22px;
top: 20px;
}
&:nth-child(2) {
height: 26px;
font-size: 26px;
font-weight: 500;
color: #333333;
line-height: 26px;
right: 20px;
top: 20px;
}
&:nth-child(3) {
top: 50px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
}
.btn {
position: absolute;
right: 20px;
bottom: 12px;
}
}
.inCompanyWechatNum {
// background-color: red;
// position: absolute;
width: 100%;
.horizontal-line {
position: absolute;
width: 100%;
height: 2px;
background: #f0f0f0;
bottom: 0;
right: 0;
}
}
}
}
}
.middlemsg {
.itembox {
display: flex;
width: 100%;
.item {
width: 25%;
// padding: 20px;
position: relative;
height: 160px;
border: 1px solid #fff;
background-color: #fff;
box-sizing: border-box;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
// border: 1px solid rgba(121, 121, 121, 1);
&:not(:first-child) {
margin-left: 20px;
}
&:hover {
border: 1px solid #5850ff;
}
p {
position: absolute;
&:first-child {
left: 20px;
top: 20px;
height: 22px;
font-size: 16px;
font-weight: bold;
color: #333333;
line-height: 22px;
}
&:nth-child(2) {
left: 20px;
top: 46px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
&:nth-child(3) {
left: 20px;
bottom: 32px;
height: 26px;
font-size: 26px;
font-weight: 600;
color: #333333;
line-height: 26px;
}
}
img {
position: absolute;
right: 20px;
top: 20px;
}
}
}
}
.bottommsg {
width: 100%;
height: 578px;
background-color: #fff;
.timeDuring {
margin-left: 20px;
margin-top: 20px;
display: inline-block;
padding-right: 8px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
border-right: 1px solid #d9d9d9;
}
.lastest {
// margin-top: 20px;
display: inline-block;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
padding-left: 8px;
}
.clientAddTrend {
width: 100%;
height: 80px;
.one1 {
margin-top: 30px;
height: 44px;
position: relative;
span {
position: absolute;
font-size: 14px;
font-weight: 400;
color: #333333;
height: 20px;
line-height: 20px;
> i {
font-weight: 500;
}
}
span:nth-child(1) {
left: 31.5%;
}
span:nth-child(2) {
left: 38.4%;
}
span:nth-child(3) {
left: 57%;
}
}
.one2 {
height: 40px;
position: relative;
span {
position: absolute;
font-size: 14px;
font-weight: 400;
color: #333333;
height: 20px;
line-height: 20px;
> a {
font-weight: 500;
}
}
span:nth-child(1) {
left: 38.4%;
}
span:nth-child(2) {
left: 57%;
}
}
}
.btn30 {
float: right;
margin: 20px 20px 0 20px;
}
.btn7 {
float: right;
margin-top: 20px;
}
.optionBtn {
width: 68px;
height: 36px;
background-color: #fff;
border-radius: 2px;
border: 1px solid #999999;
font-size: 14px;
font-weight: 400;
color: #999999;
&:hover {
cursor: pointer;
border: 1px solid #5850ff;
color: #5850ff;
}
&:focus {
border: 1px solid #5850ff;
color: #5850ff;
}
}
}
}
</style>