drainage.vue
33.6 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
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
<template>
<div class="square-main">
<div class="drainage-wrap scrm-box-f">
<div class="drainage-title">客户引流企微</div>
<div class="drainage-panel">
<div class="drainage-config-wrap">
<div class="drainage-item-label">通过自动下发引流短信,用户一键接入微信生态。用户接入企微后可领取会员权益卡,实现高效锁客及后续营销策略提供精准触达的通道。</div>
<div class="drainage-item-switch">
<el-switch @change="handleSwitch" v-model="addValue" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div>
</div>
<div class="config-title">
<el-button type="primary" icon="el-icon-edit-outline" size="small" v-if="!editStatus" @click="editStatus = true">编辑配置</el-button>
</div>
<div class="config-market">
<div class="config-market-item checked">
<div class="config-market-title">首次营销</div>
<div class="config-market-select">
<div class="config-market-s1">
<div class="config-line"></div>
<div class="config-market-icon">
<img src="@/assets/img/square/icon1.png" />
</div>
<div class="config-market-name">非企微客户</div>
</div>
<div class="config-market-s1">
<div class="config-line"></div>
<div class="config-market-icon">
<img src="@/assets/img/square/icon2.png" />
</div>
<div class="config-market-name">导入客户信息后</div>
</div>
<div class="config-market-s1">
<div class="config-market-icon">
<img src="@/assets/img/square/icon3.png" />
</div>
<div class="config-market-name">首次营销</div>
</div>
</div>
</div>
<div class="config-market-item checked">
<div class="config-market-title">二次营销</div>
<div class="config-market-select">
<div class="config-market-s1">
<div class="config-line"></div>
<div class="config-market-icon">
<img src="@/assets/img/square/icon1.png" />
</div>
<div class="config-market-name">非企微客户</div>
</div>
<div class="config-market-s1">
<div class="config-line"></div>
<div class="config-market-icon">
<img src="@/assets/img/square/icon4.png" />
</div>
<div class="config-market-name">首次营销30天后</div>
</div>
<div class="config-market-s1">
<div class="config-market-icon">
<img src="@/assets/img/square/icon5.png" />
</div>
<div class="config-market-name">再次营销</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="drainage-wrap scrm-box-f">
<div class="drainage-title">营销配置</div>
<div class="form-main">
<div class="drainage-form">
<div class="drainage-form-item">
<!-- <label>群发短信</label> -->
<div class="gl-form-page">
<el-form ref="configForm" label-width="154px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="推送时间:">系统将在「开始营销时间」之后启动智系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信发送。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</el-form-item>
<el-form-item size="small" label="营销时间:" prop="time">
<el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item>
<el-form-item label="短信内容:" prop="content">
<el-input :disabled="!editStatus" type="textarea" v-model="addForm.content" rows="5" maxlength="280" show-word-limit></el-input>
<div class="select-panel" v-if="editStatus">
<div @click="handleSelectMessage">
<i class="el-icon-circle-plus-outline"><span>选择模板</span></i>
</div>
</div>
<div class="form-tips">70字內(含70字)计一条,超过70字,按70字/条计费。</div>
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<div class="drainage-form-item">
<label style="width: 140px;font-size:14px; text-align: right; color: #666">
自动打标签:
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</label>
<div class="tag-item-panel" v-if="editStatus">
<div>
<el-button size="small" @click="handleAddTag">添加</el-button>
<div class="el-input-tag input-tag-wrapper" v-if="taggingLength">
<template v-for="(item, index) in addForm.tagging">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item, idx, index)">
{{ tag.name }}
</el-tag>
</template>
</div>
</div>
</div>
<div v-else class="drainage-emp">
<template v-for="item in addForm.tagging">
<div :key="index" v-for="(tag, index) in item.labelList">
{{ tag.name }}
</div>
</template>
</div>
</div>
</el-form>
</div>
</div>
<div class="drainage-form-item" v-if="editStatus">
<label class="is-require" style="width: 140px;font-size:14px; text-align: right; color: #666">
跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</label>
<div style="position: relative">
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i>
选择跟进专员
</el-button>
<span class="drainage-coutom-count">已经选择{{ addForm.staffIds.length }}人</span>
<div class="el-input-tag input-tag-wrapper" v-if="addForm.staffIds.length">
<el-tag effect="plain" type="info" v-for="(tag, idx) in addForm.staffIds" :key="idx" closable :disable-transitions="false" @close="remove(idx)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
<div class="el-form-item__error" v-if="empStatus">请选择跟进专员</div>
</div>
</div>
<div class="drainage-form-item" v-else>
<label style="width: 140px;font-size:14px; text-align: right; color: #666;margin-left:20px;">
跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</label>
<div class="drainage-emp" v-if="addForm.staffIds.length">
<div :key="index" v-for="(item, index) in addForm.staffIds">
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
</div>
</div>
</div>
<div class="form-image">
<img src="@/assets/img/marketing/phone.png" />
<div class="preview-content">
<div class="preview-info">
<div class="preview-text text" v-for="(item, index) in content" :key="index">{{ item }}</div>
</div>
</div>
</div>
</div>
</div>
<div class="channel-main-welcome scrm-box-f">
<div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel">
<div class="welcome-switch">
<label>自动发送欢迎语:</label>
<el-switch :disabled="!editStatus" v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div>
<div class="welcome-box" v-show="editStatus && autoWelcome">
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
</div>
<div class="welcome-box" v-show="!editStatus && autoWelcome">
<div class="welcome-box-contaner">
<div :key="index" v-for="(item, index) in welcomeInfo">
<div v-if="item.attType == 1">
<div v-html="item.attContent" class="welcome-box-name"></div>
</div>
<div v-else-if="item.attType == 2">
<img src="@/assets/img/guestCustom/icon-img.png" alt="" />
<span>{{ item.attContent }}</span>
</div>
<div v-else-if="item.attType == 3">
<img src="@/assets/img/guestCustom/icon-img.png" alt="" />
<span>{{ item.attContent }}</span>
</div>
<div v-else-if="item.attType == 4">
<img src="@/assets/img/guestCustom/icon-link.png" alt="" />
<span>{{ item.attContent }}</span>
</div>
<div v-else-if="item.attType == 5">
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ item.attContent }}</span>
</div>
<div v-else-if="item.attType == 7">
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ item.attContent.marketingName }}</span>
</div>
</div>
</div>
</div>
</div>
</div>
<GLFooter>
<el-button type="primary" @click="handleSave" v-if="editStatus">提交</el-button>
<el-button @click="goback">取消</el-button>
</GLFooter>
<select-emp ref="selectEmpForm" @selectTable="selectTable"></select-emp>
<select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag>
<message-model ref="selectMessageForm" @selectItem="selectItem"></message-model>
<div class="dialog-wrap-box" v-show="dialogVisible">
<div class="dialog-wrap-panel">
<div class="dialog-step">
<div class="el-steps el-steps--horizontal">
<div class="el-step is-horizontal" style="flex-basis: 50%; margin-right: 0px">
<div class="el-step__head is-finish">
<div class="el-step__line" style="margin-right: 0px">
<i class="el-step__line-inner" style="transition-delay: 0ms; border-width: 0px; width: 0%"></i>
</div>
<div class="el-step__icon is-text">
<div class="el-step__icon-inner">1</div>
</div>
<div class="el-step__main el-step__desc">
<div class="el-step__title">智能外呼</div>
<div class="el-step__title">精准触达</div>
</div>
</div>
</div>
<div class="el-step is-horizontal" style="flex-basis: 50%; margin-right: 0px">
<div class="el-step__head is-finish">
<div class="el-step__line" style="margin-right: 0px">
<i class="el-step__line-inner" style="transition-delay: -150ms; border-width: 0px; width: 0%"></i>
</div>
<div class="el-step__icon is-text">
<!---->
<div class="el-step__icon-inner">2</div>
</div>
<div class="el-step__main el-step__desc">
<div class="el-step__title">智能短信</div>
<div class="el-step__title">快速引流</div>
</div>
</div>
</div>
<div class="el-step is-horizontal is-flex" style="flex-basis: 50%; max-width: 33.3333%">
<div class="el-step__head is-finish">
<div class="el-step__line"><i class="el-step__line-inner"></i></div>
<div class="el-step__icon is-text">
<!---->
<div class="el-step__icon-inner">3</div>
</div>
<div class="el-step__main el-step__desc">
<div class="el-step__title">会员权益</div>
<div class="el-step__title">留存锁客</div>
</div>
</div>
</div>
</div>
</div>
<div class="dialog-wrap-items">
<div class="dialog-wrap-item"></div>
<div class="dialog-wrap-item"></div>
<div class="dialog-wrap-item"></div>
</div>
<div class="dialog-wrap-footer">
<el-button type="primary" @click="open">一键体验</el-button>
<el-button type="primary" @click="dialogVisible = false">创建配置</el-button>
</div>
</div>
</div>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisibleTips = false" type="warning" content="当前有内容信息未保存,是否继续返回?" :visible.sync="dialogVisibleTips" mode="small"></GLDialog>
</div>
</template>
<script>
import Vue from 'vue'
import word from '@/mixins/word'
import { utils } from 'glsx-common'
import selectEmp from '@/components/selectEmp'
import selectTag from '@/components/selectTag'
import messageModel from '../market/components/messageModel'
const validateTime = (rule, value, callback) => {
if ((new Date(`2000-1-1 ${value[1]}`).getTime() - new Date(`2000-1-1 ${value[0]}`).getTime()) / (1000 * 60) < 120) {
callback(new Error('因营销类短信内容需人工审核,建议预留2小时的营销时长。'))
} else {
callback()
}
}
export default {
mixins: [word],
name: 'drainage',
components: {
selectEmp,
selectTag,
messageModel
},
data() {
return {
welcomeInfo: [],
dialogVisibleTips: false,
eventBus: new Vue(),
autoWelcome: true,
editStatus: false,
saveStatus: false,
footerLeft: 0,
footerWidth: 0,
taggingLength: 0,
addForm: {
configType: 3,
content: '',
endTime: [],
id: '',
staffIds: [],
startTime: '',
tagging: [],
templateId: ''
},
previewListStart: [],
content: [],
dialogVisible: false,
addValue: false,
empStatus: false,
value1: false,
dracImFollowStaffResponses: [],
addRules: {
time: [
{ required: true, message: '请选择营销时间', trigger: 'change' },
{ validator: validateTime, trigger: 'change' }
],
content: [{ required: true, message: '请选择短信模板', trigger: 'change' }]
}
}
},
watch: {
'addForm.content': {
handler: function() {
this.content = []
if (this.addForm.content) {
let str = this.addForm.content
let num = 70
let len = str.length
for (let i = 0; i < len / num; i++) {
let str1 = str.substring(i * num, (i + 1) * num)
this.content.push(str1)
}
}
}
},
'addForm.tagging': {
handler: function() {
this.taggingLength = 0
if (this.addForm.tagging) {
this.addForm.tagging.forEach(item => {
this.taggingLength += item.labelList.length
})
}
},
deep: true
},
addForm: {
handler() {
this.saveStatus = true
},
deep: true
},
autoWelcome: {
handler() {
this.saveStatus = true
},
deep: true
}
},
methods: {
selectItem(item) {
this.addForm.templateId = item.id
this.addForm.content = item.content
},
tagSelected(item) {
this.addForm.tagging = item
},
selectTable(item) {
this.addForm.staffIds = item.map(item => {
return {
staffId: item.relationId,
staffName: item.staffName
}
})
console.log(this.addForm.staffIds)
},
remove(index) {
this.addForm.staffIds.splice(index, 1)
},
removeTag(item, idx, index) {
item.labelList.splice(idx, 1)
if (item.labelList.length == 0) {
this.addForm.tagging.splice(index, 1)
}
},
handleAddEmp() {
this.$refs.selectEmpForm.init(this.addForm.staffIds)
},
handleAddTag() {
this.$refs.selectTagForm.init(this.addForm.tagging)
},
handleSelectMessage() {
this.$refs.selectMessageForm.init()
},
handleSelectModel() {
this.$refs.selectModelForm.init()
},
open() {
this.dialogVisible = false
this.$prompt('请输入手机号', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputPattern: /^(13[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9]|14[0-9])[0-9]{8}$/,
inputErrorMessage: '手机号格式不正确'
})
.then(({ value }) => {})
.catch(() => {})
},
goback() {
this.previewListStart.forEach(item => {
this.$refs.welcome.previewList.forEach(itm => {
if (item.attType == itm.attType) {
if (typeof item.attContent != 'object' && item.attContent != itm.attContent) {
this.saveStatus = true
}
if (typeof item.attContent == 'object' && item.attContent.marketingName != itm.attContent.marketingName) {
this.saveStatus = true
}
}
})
})
if (this.previewListStart.length == 0 && this.$refs.welcome.previewList.length > 0) {
this.saveStatus = true
}
if (this.saveStatus) {
this.dialogVisibleTips = true
} else {
this.$router.go(-1)
}
},
handleSure() {
this.$router.go(-1)
},
//开关
handleSwitch() {
let params = {
id: this.addForm.id,
delFlag: this.addValue ? 0 : 1,
configType: 3
}
let config
if (this.addForm.id) {
config = 'updateConfig'
} else {
config = 'addConfig'
}
this.$apis.marketing[config](params).then(res => {
if (res) {
this.$message({
message: '操作成功',
type: 'success'
})
}
})
},
//提交
handleSave() {
if (this.editStatus && this.addForm.staffIds.length == 0) {
this.empStatus = true
return
}
this.$refs['configForm'].validate(valid => {
if (valid) {
let params = utils.deepClone(this.addForm)
if (this.addForm.time) {
params.startTime = this.addForm.time[0]
params.endTime = this.addForm.time[1]
}
let tagging = params.tagging.map(item => {
let tagIds = item.labelList.map(tag => {
return tag.id
})
let name = item.labelList.map(tag => {
return tag.name
})
return {
groupId: item.labelGroup.id,
tagIds: tagIds.join(','),
name: name.join(','),
labelType: item.labelGroup.name
}
})
params.tagging = JSON.stringify(tagging)
params.staffIds = JSON.stringify(params.staffIds)
params.autoWelcome = this.autoWelcome ? 1 : 0
const previewList = this.$common.utils.deepClone(this.$refs.welcome.previewList)
const attachmentList = previewList.map(item => {
if (item.attType == 1) {
console.log(item.attContent)
item.attContent = item.attContent.replaceAll('[@昵称]', '@昵称')
item.attContent = item.attContent.replaceAll('@昵称', '[@昵称]')
} else if (item.attType == 7 && item.attContent) {
item.attContent = JSON.stringify(item.attContent)
}
return item
})
params.welcomeInfo = attachmentList
let config
if (this.addForm.id) {
config = 'updateConfig'
params.delFlag = this.addValue ? 0 : 1
} else {
config = 'addConfig'
}
this.$apis.marketing[config](params).then(res => {
if (res) {
this.$message({
message: '操作成功',
type: 'success'
})
this.findConfig()
}
})
}
})
},
findConfig() {
this.editStatus = false
this.$apis.marketing.findConfig({ configType: 3 }).then(res => {
if (res) {
if (!res.staffIds) {
this.addForm.id = res.id
this.addForm.content = ''
return
}
this.addForm = res
this.addForm.staffIds = res.staffIds ? eval(res.staffIds) : []
if (this.addForm.tagging) {
const tagging = eval(this.addForm.tagging)
const taggingList = tagging.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
console.log(ids)
let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.addForm.tagging = taggingList ? taggingList : []
}
this.$set(this.addForm, 'time', [this.addForm.startTime, this.addForm.endTime])
this.addValue = res.delFlag == 0 ? true : false
this.autoWelcome = res.autoWelcome ? true : false
if (res.dracScrmWelcomeConfigDTOS) {
const dracScrmWelcomeConfigDTOS = utils.deepClone(res.dracScrmWelcomeConfigDTOS)
const previewListDesc = dracScrmWelcomeConfigDTOS.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
if (item.attType == 1) item.attContent = item.attContent.replaceAll('[@昵称]', '<span style="color:#5850FF">@昵称</span>')
return item
})
this.welcomeInfo = previewListDesc
const previewList = res.dracScrmWelcomeConfigDTOS.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
return item
})
this.$refs.welcome.updateList(previewList)
}
this.$nextTick(() => {
this.saveStatus = false
this.previewListStart = this.$common.utils.deepClone(this.$refs.welcome.previewList)
})
}
})
}
},
mounted() {
this.findConfig()
}
}
</script>
<style lang="scss" scoped>
.channel-main-welcome {
margin: 20px 0px 16px;
.chanel-form-title {
padding-left: 20px;
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 57px;
height: 57px;
border-bottom: 1px solid #d8d8d8;
}
.welcome-panel {
margin: 10px;
padding: 0px 42px 20px;
.welcome-switch {
margin-bottom: 20px;
label {
margin-right: 10px;
font-size: 14px;
font-weight: 400;
color: #666666;
}
}
.welcome-box {
margin-left: 60px;
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
border-radius: 2px;
line-height: 22px;
padding: 10px;
min-width: 500px;
}
img {
width: 16px;
height: 16px;
vertical-align: sub;
margin-right: 5px;
}
}
}
}
.dialog-step {
width: 80%;
margin: 0 auto 20px;
}
.el-steps {
transform: translateX(-30px);
}
.el-step.is-vertical .el-step__head {
width: 32px;
}
.el-step__line {
background: rgba(0, 0, 0, 0.15);
}
.el-step__icon {
width: 32px;
height: 32px;
border: 1px solid rgba(0, 0, 0, 0.15);
}
.el-step.is-horizontal .el-step__line {
top: 14px;
left: 120px;
right: 4%;
}
.el-step__icon-inner {
color: rgba(0, 0, 0, 0.25);
}
.el-step__head.is-finish {
color: #ffffff;
border-color: #5850ff;
}
.el-step__desc {
position: absolute;
display: inline-block;
top: -5px;
left: 36px;
width: 134px;
font-size: 16px;
font-weight: 600;
color: rgba(0, 0, 0, 0.85);
line-height: 24px;
}
.el-step__head.is-finish .el-step__icon-inner {
color: #ffffff;
}
.el-step__head.is-finish .el-step__line {
background: #5850ff;
}
.el-step__head.is-finish .el-step__icon.is-text {
background-color: #5850ff;
}
.el-step__title {
font-size: 16px;
line-height: 24px;
}
.el-step__description {
font-size: 13px;
}
.el-step__title.is-wait {
color: #999999;
}
.el-step__title.is-finish {
color: #333333;
font-weight: 700;
}
.drainage-emp {
display: flex;
margin-top: 6px;
flex-wrap: wrap;
div {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
}
}
.dialog-wrap-box {
z-index: 2001;
position: fixed;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
background: rgba(0, 0, 0, 0.5);
.dialog-wrap-panel {
background: #ffffff;
position: absolute;
top: 50%;
left: 10%;
transform: translateY(-50%);
width: 80%;
padding: 40px;
box-sizing: border-box;
.dialog-wrap-items {
margin-top: 60px;
display: flex;
justify-content: space-between;
.dialog-wrap-item {
width: 200px;
height: 350px;
border: 1px solid #999999;
}
}
.dialog-wrap-footer {
display: flex;
justify-content: space-between;
width: 80%;
margin: 30px auto 0px;
}
}
}
.drainage-wrap {
margin-bottom: 20px;
.drainage-title {
padding-left: 20px;
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 57px;
height: 57px;
border-bottom: 1px solid #d8d8d8;
}
.form-main {
display: flex;
.form-image {
width: 280px;
height: 546px;
margin: 20px 10px;
position: relative;
.preview-content {
position: absolute;
width: 250px;
height: 320px;
overflow-y: auto;
top: 125px;
left: 50px;
.preview-text {
padding: 10px;
position: relative;
width: 160px;
color: #333;
background-color: #f4f4f4;
border-radius: 4px;
word-wrap: break-word;
margin-bottom: 10px;
}
}
img {
width: 100%;
height: auto;
}
}
.drainage-form {
flex: 1;
}
}
.form-tips {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
margin-top: 5px;
}
.drainage-form {
padding: 20px;
.drainage-form-item {
display: flex;
margin-top: 20px;
label {
width: 140px;
text-align: right;
margin-right: 12px;
height: 36px;
line-height: 36px;
img {
width: 14px;
height: 14px;
vertical-align: middle;
}
&.is-require {
padding-left: 20px;
&::before {
content: '*';
color: #f56c6c;
margin-right: 4px;
}
}
}
}
/deep/ {
.el-textarea__inner {
border-radius: 0px;
border: 1px solid #dcdfe6;
}
}
.tag-item-panel {
display: flex;
}
.select-panel {
padding-left: 20px;
background: #fff;
display: flex;
font-size: 14px;
font-weight: 400;
color: #717171;
line-height: 30px;
border: 1px solid #dcdfe6;
border-top: 0px;
width: 580px!important;
box-sizing: border-box;
> div {
cursor: pointer;
margin-right: 10px;
span {
margin-left: 3px;
}
}
}
.upload-box {
margin-bottom: 10px;
.upload-file-panel {
display: flex;
align-items: center;
> a {
margin-left: 10px;
text-decoration: underline;
font-size: 12px;
font-weight: 400;
color: #5850ff;
line-height: 17px;
}
}
.upload-btn {
text-align: center;
width: 96px;
background: #ffffff;
border-radius: 4px;
border: 1px solid #dcdfe6;
font-size: 14px;
font-weight: 400;
color: #999999;
padding: 6px 0px;
}
.upload-tips {
margin-top: 6px;
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
}
.message-panel {
// background: #f7f7f7;
// border: 1px solid #dcdfe6;
padding: 20px;
flex: 1;
box-sizing: border-box;
font-size: 14px;
color: #3a3a3a;
}
.input-tag-wrapper {
position: relative;
font-size: 14px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #666;
display: inline-block;
outline: none;
padding: 5px 5px 0px 5px;
max-height: 68px;
overflow: auto;
flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 450px;
display: flex;
align-items: center;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
.drainage-coutom-count {
font-size: 14px;
font-weight: 400;
color: #7d7d7d;
line-height: 36px;
margin-left: 20px;
}
}
.drainage-panel {
padding: 20px;
.drainage-config-wrap {
display: flex;
justify-content: space-between;
align-items: center;
.drainage-item-label {
width: 50%;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
}
}
.config-title {
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 40px;
height: 40px;
margin: 8px 0px;
span {
cursor: pointer;
}
i {
margin-left: 6px;
}
}
.config-market {
display: flex;
&-item {
position: relative;
padding: 10px;
width: 50%;
height: 150px;
background: #f6f6ff;
border-radius: 4px;
opacity: 0.8;
box-sizing: border-box;
&:first-child {
margin-right: 20px;
}
&.checked {
border: 1px solid #5850ff;
.config-market-title {
color: #5850ff;
}
.config-market-icon {
background: linear-gradient(153deg, #8085ef 0%, #6f76ee 100%, #6f76ee 100%) !important;
}
.config-market-name {
color: #333333 !important;
}
.config-line {
border: 1px solid #5850ff !important;
}
}
.config-market-title {
font-size: 16px;
font-weight: 400;
color: #999999;
line-height: 22px;
text-align: center;
}
.config-switch-icon {
position: absolute;
right: 10px;
top: 10px;
}
.config-market-select {
display: flex;
.config-market-s1 {
width: 33.33%;
margin: 0 auto;
text-align: center;
position: relative;
.config-line {
position: absolute;
top: 45px;
right: -30%;
width: 60%;
border: 1px solid #999999;
}
.config-market-icon {
width: 56px;
height: 56px;
background: #999999;
border-radius: 50%;
margin: 20px auto 10px;
}
.config-market-name {
font-size: 14px;
font-weight: 400;
color: #adadad;
line-height: 20px;
}
}
}
}
}
}
}
.footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0px;
height: 64px;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
</style>