Parcourir la Source

外呼软电话

miaofuhao il y a 6 ans
Parent
commit
fabf13aeda

BIN
CallCenterWeb.UI/css/fonts/iconfont.ttf


BIN
CallCenterWeb.UI/css/fonts/iconfont.woff


+ 858 - 0
CallCenterWeb.UI/css/index.css

@@ -0,0 +1,858 @@
1
+@font-face {
2
+	font-family: 'iconfont';
3
+	src: url('../fonts/iconfont.eot');
4
+	/* IE9*/
5
+	src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
6
+	url('../fonts/iconfont.woff') format('woff'), /* chrome、firefox */
7
+	url('../fonts/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
8
+	url('../fonts/iconfont.svg#iconfont') format('svg');
9
+	/* iOS 4.1- */
10
+}
11
+
12
+body {
13
+	font-family: "微软雅黑";
14
+}
15
+
16
+.ldtp-con {
17
+	display: block;
18
+}
19
+
20
+.ld-sercon select {
21
+	height: auto;
22
+}
23
+
24
+ul li {
25
+	list-style: none;
26
+	overflow: hidden;
27
+}
28
+
29
+.iconfont {
30
+	font-family: "iconfont";
31
+	font-style: normal;
32
+	color: #FFFFFF;
33
+}
34
+
35
+.fr {
36
+	float: right;
37
+}
38
+
39
+.fl {
40
+	float: left;
41
+}
42
+
43
+.size-12 {
44
+	font-size: 12px;
45
+}
46
+
47
+.title-box {
48
+	margin-top: 5px;
49
+}
50
+
51
+.title-box li {
52
+	margin-left: 30px;
53
+}
54
+
55
+.title-box li:hover {
56
+	cursor: pointer;
57
+}
58
+
59
+.HoverColor {
60
+	color: #f8ac59;
61
+}
62
+
63
+.FailureColor {
64
+	color: #f95f5e;
65
+}
66
+
67
+.navbar-header {
68
+	width: 100%;
69
+	background-color: #2f4050;
70
+	padding-top: 10px;
71
+}
72
+
73
+.title-box li p {
74
+	color: #FFFFFF;
75
+	font-size: 14px;
76
+	font-weight: bold;
77
+	letter-spacing: 2px;
78
+	margin-top: 5px;
79
+}
80
+
81
+.size-14 {
82
+	font-size: 14px;
83
+	color: #FFFFFF !important;
84
+}
85
+
86
+.img-circle {
87
+	width: 58px;
88
+}
89
+
90
+.xian {
91
+	border: 1px solid #FFFFFF;
92
+	display: inline-block;
93
+	width: 15%;
94
+	margin: 5px;
95
+}
96
+
97
+.ss {
98
+	margin-left: 20px;
99
+}
100
+
101
+.fe-3 {
102
+	font-size: 3em;
103
+}
104
+
105
+.title-box p {
106
+	text-align: center;
107
+}
108
+
109
+.closed {
110
+	display: inline-block;
111
+	/*				margin-left: 5%;*/
112
+	cursor: pointer;
113
+	color: #FFFFFF;
114
+	float: right;
115
+	margin-right: 5%;
116
+	width: 25%;
117
+}
118
+
119
+.closed div {
120
+	overflow: hidden;
121
+}
122
+
123
+.closed ul {
124
+	margin-bottom: 0px;
125
+}
126
+
127
+.closed li {
128
+	float: left;
129
+	margin-right: 20px;
130
+}
131
+
132
+.closed i {
133
+	display: inline-block;
134
+	background: url(../img/chilun.png) no-repeat;
135
+	margin-right: 5px;
136
+	width: 14px;
137
+	height: 16px;
138
+	vertical-align: middle;
139
+}
140
+
141
+.ga {
142
+	background-position: 0 0 !important;
143
+}
144
+
145
+.sz {
146
+	background-position: 0 -15px !important;
147
+}
148
+
149
+.tc {
150
+	background-position: 0 -33px !important;
151
+}
152
+
153
+.zhuangtai {
154
+	display: block;
155
+	width: 30%;
156
+	margin-left: 10px;
157
+	font-size: 14px;
158
+	font-weight: 800;
159
+}
160
+
161
+.wq {
162
+	color: #f95f5e;
163
+}
164
+
165
+#top-search li:hover {
166
+	color: #eaeaea;
167
+}
168
+
169
+.content-tabs1 ul {
170
+	padding-left: 0;
171
+}
172
+
173
+.content-tabs1 li {
174
+	list-style: none;
175
+	float: left;
176
+	height: 5px;
177
+}
178
+
179
+.top1 {
180
+	background-color: #68adfe;
181
+}
182
+
183
+.top2 {
184
+	background-color: #9897f0;
185
+}
186
+
187
+.top3 {
188
+	background-color: #87eebf;
189
+}
190
+
191
+.top4 {
192
+	background-color: #68b0fe;
193
+}
194
+
195
+.top5 {
196
+	background-color: #f95a83;
197
+}
198
+
199
+.top6 {
200
+	background-color: #eb76dd;
201
+}
202
+
203
+.top7 {
204
+	background-color: #69cbd0;
205
+}
206
+
207
+.top8 {
208
+	background-color: #69cbd0;
209
+}
210
+
211
+.top9 {
212
+	background-color: #aaf58d;
213
+}
214
+
215
+.top10 {
216
+	background-color: #f76a53;
217
+}
218
+
219
+.top11 {
220
+	background-color: #eb76dd;
221
+}
222
+
223
+.top12 {
224
+	background-color: #6c77da;
225
+}
226
+
227
+.top13 {
228
+	background: -webkit-linear-gradient(left, #f073db, #65abfc);
229
+	background: -moz-linear-gradient(left, #f073db, #65abfc);
230
+	background: -o-linear-gradient(left, #f073db, #65abfc);
231
+	background: -webkit-gradient(linear, 100% 0, 0 0, from(#65abfc), to(#f073db));
232
+	background: linear-gradient(left, #f073db, #65abfc);
233
+	/* Opera 11.1 - 12.0 */
234
+	/* Firefox 3.6 - 15 */
235
+	/* 标准的语法 */
236
+}
237
+
238
+.zts {
239
+	height: 30px;
240
+	margin-left: 2%;
241
+	line-height: 30px;
242
+	padding-top: 15px;
243
+}
244
+
245
+.zts li {
246
+	height: 20px;
247
+	line-height: 20px;
248
+	font-weight: bold;
249
+	letter-spacing: 2px;
250
+}
251
+
252
+.quan {
253
+	width: 15px;
254
+	height: 15px !important;
255
+	border-radius: 50%;
256
+	margin-right: 2%;
257
+	margin-left: 5px;
258
+	margin-top: 2px;
259
+}
260
+
261
+.lx {
262
+	background: #6a6d69;
263
+}
264
+
265
+.br {
266
+	background: red;
267
+}
268
+
269
+.bl {
270
+	background: #7ab85b;
271
+}
272
+
273
+.LH {
274
+	line-height: 35px;
275
+}
276
+
277
+.zts span {
278
+	line-height: 20px;
279
+	margin-right: 50px;
280
+	font-size: 12px;
281
+}
282
+
283
+.photo {
284
+	width: 40px;
285
+	height: 40px;
286
+	border-width: 2px;
287
+	border-style: solid;
288
+	border-radius: 50%;
289
+	border-color: #ffb400 #fc3c04 #fdfc01 #00e3c0;
290
+	margin-bottom: 1px;
291
+}
292
+
293
+.photo img {
294
+	display: block;
295
+	width: 100%;
296
+	height: 100%;
297
+}
298
+
299
+.ls {
300
+	/*margin-left: 20px;*/
301
+	text-align: center;
302
+}
303
+
304
+.ls span {
305
+	margin-right: 10px;
306
+}
307
+
308
+.min-right {
309
+	margin-right: 10px;
310
+}
311
+
312
+.navbar-top-links i {
313
+	width: 24px;
314
+	height: 21px;
315
+	display: block;
316
+	background: url(../img/topIcon.png) no-repeat;
317
+	background-position: center center;
318
+	margin: 0 auto;
319
+}
320
+
321
+
322
+/*挂断*/
323
+
324
+.DropCall {
325
+	background-position: 0px 0 !important;
326
+}
327
+
328
+
329
+/*外呼*/
330
+
331
+.MakeCall {
332
+	background-position: 0px -20px !important;
333
+}
334
+
335
+
336
+/*置忙*/
337
+
338
+.SayBusy {
339
+	background-position: 0px -42px !important;
340
+}
341
+
342
+
343
+/*置闲*/
344
+
345
+.SayFree {
346
+	background-position: 0px -65px !important;
347
+}
348
+
349
+
350
+/*多方通话*/
351
+
352
+.Meeting {
353
+	background-position: 0px -85px !important;
354
+}
355
+
356
+
357
+/*转移*/
358
+
359
+.Transfer {
360
+	background-position: 0px -108px !important;
361
+}
362
+
363
+
364
+/*保持*/
365
+
366
+.Hold {
367
+	background-position: 0px -131px !important;
368
+}
369
+
370
+
371
+/*接回*/
372
+
373
+.Retrieve {
374
+	background-position: 0px -153px !important;
375
+}
376
+
377
+
378
+/*签入*/
379
+
380
+.Login {
381
+	background-position: 0px -197px !important;
382
+}
383
+
384
+
385
+/*签出*/
386
+
387
+.Logout {
388
+	background-position: 0px -175px !important;
389
+}
390
+
391
+.navbar-top-links .active {
392
+	background-position-x: -23px !important;
393
+}
394
+
395
+.ldcr-bottom .detail-con ul li .active a {
396
+	color: #f95a83 !important;
397
+}
398
+
399
+.ldcr-bottom .detail-con ul li .active em {
400
+	color: #f95a83 !important;
401
+}
402
+
403
+.ldcr-bottom .detail-con ul li .active+.explancon {
404
+	display: block !important;
405
+}
406
+
407
+.searchbtn {
408
+	width: 2.5em;
409
+	height: 24px;
410
+	border-radius: 5px;
411
+	position: absolute;
412
+	background-color: #f8ac59;
413
+	background-image: url(../img/searIcon.png);
414
+	background-repeat: no-repeat;
415
+	background-position: center center;
416
+	cursor: pointer;
417
+}
418
+
419
+.max-box {
420
+	height: 42px;
421
+	width: 100%;
422
+}
423
+
424
+.laydate_body .laydate_bottom,
425
+.laydate_body .laydate_top {
426
+	height: 31px !important;
427
+}
428
+
429
+.laydate_body .laydate_y .laydate_yms ul li {
430
+	width: 59px !important;
431
+}
432
+
433
+.col-sm-1 {
434
+	padding-right: 0;
435
+	line-height: 34px;
436
+}
437
+
438
+ul.ztree {
439
+	overflow-y: scroll;
440
+	overflow-x: auto;
441
+}
442
+
443
+.minBacha {
444
+	position: absolute;
445
+	top: 0;
446
+	right: 80px;
447
+	z-index: 10;
448
+	overflow: hidden;
449
+}
450
+
451
+.minBacha>div {
452
+	float: left;
453
+	height: 35px;
454
+	width: 35px;
455
+	margin-left: 2px;
456
+}
457
+
458
+.minBacha>div a {
459
+	display: block;
460
+	height: 100%;
461
+	width: 100%;
462
+	text-align: center;
463
+	background-position: center center;
464
+	background-color: #2f4050;
465
+	opacity: .5;
466
+}
467
+
468
+.minBacha>div a:hover {
469
+	opacity: 1;
470
+}
471
+
472
+.minClosed>a {
473
+	background: url("../img/min.png") no-repeat;
474
+}
475
+
476
+.Bacha>a {
477
+	background: url("../img/gb.png") no-repeat;
478
+}
479
+
480
+.lblcount {
481
+	position: absolute;
482
+	right: 5px;
483
+	top: 7px;
484
+}
485
+
486
+.first {
487
+	z-index: 1000;
488
+}
489
+
490
+.khzl {
491
+	font-size: 12px;
492
+	border: 0;
493
+	margin: 35px auto;
494
+	color: #fff;
495
+}
496
+
497
+.khzl tr {
498
+	border: 0;
499
+}
500
+
501
+.khzl th {
502
+	padding: 5px 8px 5px 0;
503
+	text-align: right;
504
+	width: 40%;
505
+	font-weight: normal;
506
+	border: 0;
507
+}
508
+
509
+.khzl tbody>tr>td,
510
+.khzl tbody>tr>th {
511
+	border: 0;
512
+}
513
+
514
+.khzl tbody>tr>td input {
515
+	border: 0;
516
+	outline: none;
517
+	background: #243747;
518
+	padding-left: 5px;
519
+	width: 100%;
520
+}
521
+
522
+.khbtn {
523
+	/*background: #97a0a8;*/
524
+	color: #1ab394;
525
+	font-size: 14px;
526
+	vertical-align: middle;
527
+}
528
+
529
+.hei-list {
530
+	width: 400px;
531
+	margin: 0 auto;
532
+}
533
+
534
+.heiTop {
535
+	height: 35px;
536
+	background: #1ab394;
537
+	color: #fff;
538
+	line-height: 35px;
539
+	padding: 0 15px;
540
+	border-top-left-radius: 3px;
541
+	border-top-right-radius: 3px;
542
+}
543
+
544
+.heiTop .htl {
545
+	float: left;
546
+	margin: 0;
547
+}
548
+
549
+.heiTop .bacha {
550
+	float: right;
551
+	font-size: 18px;
552
+	cursor: pointer;
553
+	margin: 0;
554
+}
555
+
556
+.heiCon {
557
+	width: 100%;
558
+	background: #fff;
559
+	text-align: center;
560
+	padding: 25px 15px;
561
+	height: auto;
562
+	overflow-y: auto;
563
+	border: 1px solid #eee;
564
+}
565
+
566
+#time-word {
567
+	border: 1px solid #1ab394;
568
+	padding: 5px 0 5px 10px;
569
+	width: 120px;
570
+	outline: none;
571
+	color: #000;
572
+}
573
+
574
+.chooses {
575
+	margin-top: 10px;
576
+}
577
+
578
+.btns {
579
+	background: #1ab394;
580
+	color: #fff;
581
+	padding: 3px 10px;
582
+	outline: none;
583
+	font-size: 12px;
584
+	margin-left: 15px;
585
+	border: 0;
586
+	border-radius: 3px;
587
+	box-sizing: border-box;
588
+}
589
+
590
+.bianji {
591
+	display: inline-block;
592
+	height: 16px;
593
+	width: 16px;
594
+	vertical-align: middle;
595
+	margin-right: 5px;
596
+}
597
+
598
+.bianji.edi {
599
+	background: url(../img/xgai.png) no-repeat;
600
+}
601
+
602
+.bianji.sav {
603
+	background: url(../img/bbc.png) no-repeat;
604
+}
605
+
606
+.bianji.canc {
607
+	background: url(../img/quxi.png) no-repeat;
608
+}
609
+
610
+.t-shade {
611
+	position: fixed;
612
+	top: 0;
613
+	left: 0;
614
+	width: 100%;
615
+	height: 100%;
616
+	background: rgba(0, 0, 0, 0.48);
617
+	z-index: 10004;
618
+	display: none;
619
+}
620
+
621
+.shade_k {
622
+	z-index: 10005;
623
+	width: 40%;
624
+	margin: 10% auto;
625
+	background-color: #fff;
626
+	box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
627
+	border-radius: 5px;
628
+}
629
+
630
+.shade_title {
631
+	padding: 0 80px 0 20px;
632
+	height: 42px;
633
+	line-height: 42px;
634
+	border-bottom: 1px solid #eee;
635
+	font-size: 16px;
636
+	color: #FFFFFF;
637
+	overflow: hidden;
638
+	background-color: rgb(26, 179, 148);
639
+	border-radius: 2px 2px 0 0;
640
+	position: relative;
641
+}
642
+
643
+.setwin {
644
+	position: absolute;
645
+	right: 15px;
646
+	top: 5px;
647
+	font-size: 20px;
648
+	line-height: initial;
649
+}
650
+
651
+.setwin a {
652
+	font-size: 20px;
653
+	color: #fff;
654
+}
655
+
656
+.shade_content {
657
+	overflow-y: auto;
658
+	position: relative;
659
+	padding-bottom: 50px;
660
+	padding: 10px;
661
+}
662
+
663
+.wh_btn {
664
+	width: 80%;
665
+	text-align: center;
666
+	padding-top: 20px;
667
+	margin: 0 auto;
668
+	margin-bottom: 20px;
669
+}
670
+
671
+.wh_btn input {
672
+	padding: 7px 20px;
673
+	color: #FFF;
674
+	border-radius: 5px;
675
+	margin-right: 30px;
676
+	border: 1px solid #999;
677
+	border-color: rgb(26, 179, 148);
678
+}
679
+
680
+.sc_btn {
681
+	color: rgb(255, 255, 255);
682
+	font-size: 12px;
683
+	margin-left: 15px;
684
+	box-sizing: border-box;
685
+	background: rgb(26, 179, 148);
686
+	padding: 6px 10px;
687
+	outline: none;
688
+	border-width: 0px;
689
+	border-style: initial;
690
+	border-color: initial;
691
+	border-image: initial;
692
+	border-radius: 3px;
693
+}
694
+
695
+.sc_btn:hover {
696
+	color: #fff !important;
697
+}
698
+
699
+.cx {
700
+	display: block;
701
+}
702
+
703
+.phoneBZ {
704
+	display: inline-block;
705
+	height: 15px;
706
+	width: 15px;
707
+	position: absolute;
708
+	right: 0px;
709
+	bottom: -15px;
710
+	background: url(../img/phoneBZ.png) no-repeat;
711
+	display: none;
712
+}
713
+
714
+#menuContent {
715
+	background: #fff;
716
+	position: absolute;
717
+	width: 100%;
718
+	border: 1px solid darkgrey;
719
+	right: 0;
720
+	top: 21px;
721
+	z-index: 10;
722
+	/*				display: none;*/
723
+	overflow-y: auto;
724
+}
725
+
726
+#organizer {
727
+	height: 25px;
728
+	width: 128px;
729
+	display: inline-block;
730
+	position: relative;
731
+}
732
+
733
+#treeDemo li {
734
+	width: 100%;
735
+}
736
+
737
+.bootstrap-select>.dropdown-toggle.bs-placeholder {
738
+	background-color: #ffffff !important;
739
+	border-color: #e5e6e7 !important;
740
+}
741
+
742
+.filter-option {
743
+	color: #676b6d;
744
+}
745
+
746
+.bootstrap-select>.dropdown-toggle.btn-default {
747
+	background-color: #ffffff !important;
748
+	border-color: #e5e6e7 !important;
749
+	color: #555;
750
+}
751
+
752
+#fkdep_market {
753
+	display: nones;
754
+}
755
+
756
+.roll-right.J_tabRight {
757
+	right: 0;
758
+}
759
+/*软电话*/
760
+.open-softphone{
761
+	position: fixed;
762
+	bottom: 70px;
763
+	right: 40px;
764
+	width: 30px;
765
+	height: 30px;
766
+}
767
+.open-softphone img{
768
+	width: 100%;
769
+	height: 100%;
770
+}
771
+.open-softphone i{
772
+	font-size:24px
773
+}
774
+.softphone-box{
775
+	display: none;
776
+	position: fixed;
777
+	bottom: 70px;
778
+	right: 100px;
779
+	width: 270px;
780
+	height: 435px;
781
+	background:linear-gradient(to bottom,#6a95cb,#1f4379);
782
+	box-shadow: 3px 3px 1px #888888;
783
+}
784
+.phone_tooltip{
785
+	width: 88%;
786
+	height: 20%;
787
+	background: #FFFFFF;
788
+	margin: 8% auto;
789
+	border-radius:8%;
790
+	padding: 3% 5%;
791
+}
792
+.phone_tooltip p{
793
+	margin: 0;
794
+	padding: 1% 0;
795
+}
796
+
797
+.phone_btn_div{
798
+	width: 100%;
799
+	height: 8%;
800
+}
801
+.phone_btn_div ul{
802
+	overflow: hidden;
803
+	height: 100%;
804
+}
805
+.phone_btn_div ul li{
806
+	cursor: pointer;
807
+	width: 25%;
808
+	margin-left: 6%;
809
+	height: 100%;
810
+	text-align: center;
811
+	padding: 3% 0;
812
+	font-size: 13px;
813
+	border-radius: 5%;
814
+	background: #FFFFFF;
815
+	float: left;
816
+}
817
+.phoneNum_box ul{
818
+	overflow: hidden;
819
+}
820
+.phoneNum_box ul li{
821
+	cursor: pointer;
822
+	font-size: 28px;
823
+	width: 25%;
824
+	margin-left: 6%;
825
+	height: 100%;
826
+	text-align: center;
827
+	padding: 3% 0;
828
+	border-radius: 5%;
829
+	float: left;
830
+	color: #FFFFFF;
831
+}
832
+.phone_btn_bot{
833
+	position: relative;
834
+}
835
+.phone_btn_bot .posbtn1{
836
+	position: absolute;
837
+	left:10%;
838
+	cursor: pointer;
839
+}
840
+.phone_btn_bot .posbtn2{
841
+	position: absolute;
842
+	left: 50%;
843
+	font-size: 15px;
844
+	margin-left: -18px;
845
+	color: #FFFFFF;
846
+	padding: 3% 0;
847
+	cursor: pointer;
848
+}
849
+.phone_btn_bot .posbtn3{
850
+	position: absolute;
851
+	right: 10%;
852
+	cursor: pointer;
853
+}
854
+
855
+
856
+
857
+
858
+

BIN
CallCenterWeb.UI/img/call_out-icon.png


BIN
CallCenterWeb.UI/img/hangu-iconp.png


BIN
CallCenterWeb.UI/img/softphone-icon.png


+ 49 - 743
CallCenterWeb.UI/index.html

@@ -14,751 +14,12 @@
14 14
     <link href="./css/plugins/iCheck/custom.css" rel="stylesheet">
15 15
     <link rel="stylesheet" href="./css/call.css" />
16 16
     <link rel="stylesheet" href="./css/personal.css" />
17
+    <link rel="stylesheet" href="css/index.css" />
17 18
     <link rel="stylesheet" href="./js/zTree/zTreeStyle.css" />
18 19
     <link href="./css/plugins/cropper/cropper.min.css" rel="stylesheet">
19 20
     <link href="./css/plugins/jasny/jasny-bootstrap.min.css" rel="stylesheet">
20 21
     <link href="./js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
21 22
     <script src="./js/jquery.select.js"></script>
22
-    <style>
23
-        @font-face {
24
-            font-family: 'iconfont';
25
-            src: url('./fonts/iconfont.eot');
26
-            /* IE9*/
27
-            src: url('./fonts/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
28
-            url('./fonts/iconfont.woff') format('woff'), /* chrome、firefox */
29
-            url('./fonts/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
30
-            url('./fonts/iconfont.svg#iconfont') format('svg');
31
-            /* iOS 4.1- */
32
-        }
33
-
34
-        body {
35
-            font-family: "微软雅黑";
36
-        }
37
-
38
-        .ldtp-con {
39
-            display: block;
40
-        }
41
-
42
-        .ld-sercon select {
43
-            height: auto;
44
-        }
45
-
46
-        ul li {
47
-            list-style: none;
48
-            overflow: hidden;
49
-        }
50
-
51
-        .iconfont {
52
-            font-family: "iconfont";
53
-            font-style: normal;
54
-            color: #FFFFFF;
55
-        }
56
-
57
-        .fr {
58
-            float: right;
59
-        }
60
-
61
-        .fl {
62
-            float: left;
63
-        }
64
-
65
-        .size-12 {
66
-            font-size: 12px;
67
-        }
68
-
69
-        .title-box {
70
-            margin-top: 5px;
71
-        }
72
-
73
-            .title-box li {
74
-                margin-left: 30px;
75
-            }
76
-
77
-                .title-box li:hover {
78
-                    cursor: pointer;
79
-                }
80
-
81
-        .HoverColor {
82
-            color: #f8ac59;
83
-        }
84
-
85
-        .FailureColor {
86
-            color: #f95f5e;
87
-        }
88
-
89
-        .navbar-header {
90
-            width: 100%;
91
-            background-color: #2f4050;
92
-            padding-top: 10px;
93
-        }
94
-
95
-        .title-box li p {
96
-            color: #FFFFFF;
97
-            font-size: 14px;
98
-            font-weight: bold;
99
-            letter-spacing: 2px;
100
-            margin-top: 5px;
101
-        }
102
-
103
-        .size-14 {
104
-            font-size: 14px;
105
-            color: #FFFFFF !important;
106
-        }
107
-
108
-        .img-circle {
109
-            width: 58px;
110
-        }
111
-
112
-        .xian {
113
-            border: 1px solid #FFFFFF;
114
-            display: inline-block;
115
-            width: 15%;
116
-            margin: 5px;
117
-        }
118
-
119
-        .ss {
120
-            margin-left: 20px;
121
-        }
122
-
123
-        .fe-3 {
124
-            font-size: 3em;
125
-        }
126
-
127
-        .title-box p {
128
-            text-align: center;
129
-        }
130
-
131
-        .closed {
132
-            display: inline-block;
133
-            /*				margin-left: 5%;*/
134
-            cursor: pointer;
135
-            color: #FFFFFF;
136
-            float: right;
137
-            margin-right: 5%;
138
-            width: 25%;
139
-        }
140
-
141
-            .closed div {
142
-                overflow: hidden;
143
-            }
144
-
145
-            .closed ul {
146
-                margin-bottom: 0px;
147
-            }
148
-
149
-            .closed li {
150
-                float: left;
151
-                margin-right: 20px;
152
-            }
153
-
154
-            .closed i {
155
-                display: inline-block;
156
-                background: url(./img/chilun.png) no-repeat;
157
-                margin-right: 5px;
158
-                width: 14px;
159
-                height: 16px;
160
-                vertical-align: middle;
161
-            }
162
-
163
-        .ga {
164
-            background-position: 0 0 !important;
165
-        }
166
-
167
-        .sz {
168
-            background-position: 0 -15px !important;
169
-        }
170
-
171
-        .tc {
172
-            background-position: 0 -33px !important;
173
-        }
174
-
175
-        .zhuangtai {
176
-            display: block;
177
-            width: 30%;
178
-            margin-left: 10px;
179
-            font-size: 14px;
180
-            font-weight: 800;
181
-        }
182
-
183
-        .wq {
184
-            color: #f95f5e;
185
-        }
186
-
187
-        #top-search li:hover {
188
-            color: #eaeaea;
189
-        }
190
-
191
-        .content-tabs1 ul {
192
-            padding-left: 0;
193
-        }
194
-
195
-        .content-tabs1 li {
196
-            list-style: none;
197
-            float: left;
198
-            height: 5px;
199
-        }
200
-
201
-        .top1 {
202
-            background-color: #68adfe;
203
-        }
204
-
205
-        .top2 {
206
-            background-color: #9897f0;
207
-        }
208
-
209
-        .top3 {
210
-            background-color: #87eebf;
211
-        }
212
-
213
-        .top4 {
214
-            background-color: #68b0fe;
215
-        }
216
-
217
-        .top5 {
218
-            background-color: #f95a83;
219
-        }
220
-
221
-        .top6 {
222
-            background-color: #eb76dd;
223
-        }
224
-
225
-        .top7 {
226
-            background-color: #69cbd0;
227
-        }
228
-
229
-        .top8 {
230
-            background-color: #69cbd0;
231
-        }
232
-
233
-        .top9 {
234
-            background-color: #aaf58d;
235
-        }
236
-
237
-        .top10 {
238
-            background-color: #f76a53;
239
-        }
240
-
241
-        .top11 {
242
-            background-color: #eb76dd;
243
-        }
244
-
245
-        .top12 {
246
-            background-color: #6c77da;
247
-        }
248
-
249
-        .top13 {
250
-            background: -webkit-linear-gradient(left, #f073db, #65abfc);
251
-            background: -moz-linear-gradient(left, #f073db, #65abfc);
252
-            background: -o-linear-gradient(left, #f073db, #65abfc);
253
-            background: -webkit-gradient(linear, 100% 0, 0 0, from(#65abfc), to(#f073db));
254
-            background: linear-gradient(left, #f073db, #65abfc);
255
-            /* Opera 11.1 - 12.0 */
256
-            /* Firefox 3.6 - 15 */
257
-            /* 标准的语法 */
258
-        }
259
-
260
-        .zts {
261
-            height: 30px;
262
-            margin-left: 2%;
263
-            line-height: 30px;
264
-            padding-top: 15px;
265
-        }
266
-
267
-            .zts li {
268
-                height: 20px;
269
-                line-height: 20px;
270
-                font-weight: bold;
271
-                letter-spacing: 2px;
272
-            }
273
-
274
-        .quan {
275
-            width: 15px;
276
-            height: 15px !important;
277
-            border-radius: 50%;
278
-            margin-right: 2%;
279
-            margin-left: 5px;
280
-            margin-top: 2px;
281
-        }
282
-
283
-        .lx {
284
-            background: #6a6d69;
285
-        }
286
-
287
-        .br {
288
-            background: red;
289
-        }
290
-
291
-        .bl {
292
-            background: #7ab85b;
293
-        }
294
-
295
-        .LH {
296
-            line-height: 35px;
297
-        }
298
-
299
-        .zts span {
300
-            line-height: 20px;
301
-            margin-right: 50px;
302
-            font-size: 12px;
303
-        }
304
-
305
-        .photo {
306
-            width: 40px;
307
-            height: 40px;
308
-            border-width: 2px;
309
-            border-style: solid;
310
-            border-radius: 50%;
311
-            border-color: #ffb400 #fc3c04 #fdfc01 #00e3c0;
312
-            margin-bottom: 1px;
313
-        }
314
-
315
-            .photo img {
316
-                display: block;
317
-                width: 100%;
318
-                height: 100%;
319
-            }
320
-
321
-        .ls {
322
-            /*margin-left: 20px;*/
323
-            text-align: center;
324
-        }
325
-
326
-            .ls span {
327
-                margin-right: 10px;
328
-            }
329
-
330
-        .min-right {
331
-            margin-right: 10px;
332
-        }
333
-
334
-        .navbar-top-links i {
335
-            width: 24px;
336
-            height: 21px;
337
-            display: block;
338
-            background: url(./img/topIcon.png) no-repeat;
339
-            background-position: center center;
340
-            margin: 0 auto;
341
-        }
342
-        /*挂断*/
343
-
344
-        .DropCall {
345
-            background-position: 0px 0 !important;
346
-        }
347
-        /*外呼*/
348
-
349
-        .MakeCall {
350
-            background-position: 0px -20px !important;
351
-        }
352
-        /*置忙*/
353
-
354
-        .SayBusy {
355
-            background-position: 0px -42px !important;
356
-        }
357
-        /*置闲*/
358
-
359
-        .SayFree {
360
-            background-position: 0px -65px !important;
361
-        }
362
-        /*多方通话*/
363
-
364
-        .Meeting {
365
-            background-position: 0px -85px !important;
366
-        }
367
-        /*转移*/
368
-
369
-        .Transfer {
370
-            background-position: 0px -108px !important;
371
-        }
372
-        /*保持*/
373
-
374
-        .Hold {
375
-            background-position: 0px -131px !important;
376
-        }
377
-        /*接回*/
378
-
379
-        .Retrieve {
380
-            background-position: 0px -153px !important;
381
-        }
382
-        /*签入*/
383
-
384
-        .Login {
385
-            background-position: 0px -197px !important;
386
-        }
387
-        /*签出*/
388
-
389
-        .Logout {
390
-            background-position: 0px -175px !important;
391
-        }
392
-
393
-        .navbar-top-links .active {
394
-            background-position-x: -23px !important;
395
-        }
396
-
397
-        .ldcr-bottom .detail-con ul li .active a {
398
-            color: #f95a83 !important;
399
-        }
400
-
401
-        .ldcr-bottom .detail-con ul li .active em {
402
-            color: #f95a83 !important;
403
-        }
404
-
405
-        .ldcr-bottom .detail-con ul li .active + .explancon {
406
-            display: block !important;
407
-        }
408
-
409
-        .searchbtn {
410
-            width: 2.5em;
411
-            height: 24px;
412
-            border-radius: 5px;
413
-            position: absolute;
414
-            background-color: #f8ac59;
415
-            background-image: url(./img/searIcon.png);
416
-            background-repeat: no-repeat;
417
-            background-position: center center;
418
-            cursor: pointer;
419
-        }
420
-
421
-        .max-box {
422
-            height: 42px;
423
-            width: 100%;
424
-        }
425
-
426
-        .laydate_body .laydate_bottom,
427
-        .laydate_body .laydate_top {
428
-            height: 31px !important;
429
-        }
430
-
431
-        .laydate_body .laydate_y .laydate_yms ul li {
432
-            width: 59px !important;
433
-        }
434
-
435
-        .col-sm-1 {
436
-            padding-right: 0;
437
-            line-height: 34px;
438
-        }
439
-
440
-        ul.ztree {
441
-            overflow-y: scroll;
442
-            overflow-x: auto;
443
-        }
444
-
445
-        .minBacha {
446
-            position: absolute;
447
-            top: 0;
448
-            right: 80px;
449
-            z-index: 10;
450
-            overflow: hidden;
451
-        }
452
-
453
-            .minBacha > div {
454
-                float: left;
455
-                height: 35px;
456
-                width: 35px;
457
-                margin-left: 2px;
458
-            }
459
-
460
-                .minBacha > div a {
461
-                    display: block;
462
-                    height: 100%;
463
-                    width: 100%;
464
-                    text-align: center;
465
-                    background-position: center center;
466
-                    background-color: #2f4050;
467
-                    opacity: .5;
468
-                }
469
-
470
-                    .minBacha > div a:hover {
471
-                        opacity: 1;
472
-                    }
473
-
474
-        .minClosed > a {
475
-            background: url("./img/min.png") no-repeat;
476
-        }
477
-
478
-        .Bacha > a {
479
-            background: url("./img/gb.png") no-repeat;
480
-        }
481
-
482
-        .lblcount {
483
-            position: absolute;
484
-            right: 5px;
485
-            top: 7px;
486
-        }
487
-
488
-        .first {
489
-            z-index: 1000;
490
-        }
491
-
492
-        .khzl {
493
-            font-size: 12px;
494
-            border: 0;
495
-            margin: 35px auto;
496
-            color: #fff;
497
-        }
498
-
499
-            .khzl tr {
500
-                border: 0;
501
-            }
502
-
503
-            .khzl th {
504
-                padding: 5px 8px 5px 0;
505
-                text-align: right;
506
-                width: 40%;
507
-                font-weight: normal;
508
-                border: 0;
509
-            }
510
-
511
-            .khzl tbody > tr > td,
512
-            .khzl tbody > tr > th {
513
-                border: 0;
514
-            }
515
-
516
-                .khzl tbody > tr > td input {
517
-                    border: 0;
518
-                    outline: none;
519
-                    background: #243747;
520
-                    padding-left: 5px;
521
-                    width: 100%;
522
-                }
523
-
524
-        .khbtn {
525
-            /*background: #97a0a8;*/
526
-            color: #1ab394;
527
-            font-size: 14px;
528
-            vertical-align: middle;
529
-        }
530
-
531
-        .hei-list {
532
-            width: 400px;
533
-            margin: 0 auto;
534
-        }
535
-
536
-        .heiTop {
537
-            height: 35px;
538
-            background: #1ab394;
539
-            color: #fff;
540
-            line-height: 35px;
541
-            padding: 0 15px;
542
-            border-top-left-radius: 3px;
543
-            border-top-right-radius: 3px;
544
-        }
545
-
546
-            .heiTop .htl {
547
-                float: left;
548
-                margin: 0;
549
-            }
550
-
551
-            .heiTop .bacha {
552
-                float: right;
553
-                font-size: 18px;
554
-                cursor: pointer;
555
-                margin: 0;
556
-            }
557
-
558
-        .heiCon {
559
-            width: 100%;
560
-            background: #fff;
561
-            text-align: center;
562
-            padding: 25px 15px;
563
-            height: auto;
564
-            overflow-y: auto;
565
-            border: 1px solid #eee;
566
-        }
567
-
568
-        #time-word {
569
-            border: 1px solid #1ab394;
570
-            padding: 5px 0 5px 10px;
571
-            width: 120px;
572
-            outline: none;
573
-            color: #000;
574
-        }
575
-
576
-        .chooses {
577
-            margin-top: 10px;
578
-        }
579
-
580
-        .btns {
581
-            background: #1ab394;
582
-            color: #fff;
583
-            padding: 3px 10px;
584
-            outline: none;
585
-            font-size: 12px;
586
-            margin-left: 15px;
587
-            border: 0;
588
-            border-radius: 3px;
589
-            box-sizing: border-box;
590
-        }
591
-
592
-        .bianji {
593
-            display: inline-block;
594
-            height: 16px;
595
-            width: 16px;
596
-            vertical-align: middle;
597
-            margin-right: 5px;
598
-        }
599
-
600
-            .bianji.edi {
601
-                background: url(img/xgai.png) no-repeat;
602
-            }
603
-
604
-            .bianji.sav {
605
-                background: url(img/bbc.png) no-repeat;
606
-            }
607
-
608
-            .bianji.canc {
609
-                background: url(img/quxi.png) no-repeat;
610
-            }
611
-
612
-        .t-shade {
613
-            position: fixed;
614
-            top: 0;
615
-            left: 0;
616
-            width: 100%;
617
-            height: 100%;
618
-            background: rgba(0, 0, 0, 0.48);
619
-            z-index: 10004;
620
-            display: none;
621
-        }
622
-
623
-        .shade_k {
624
-            z-index: 10005;
625
-            width: 40%;
626
-            margin: 10% auto;
627
-            background-color: #fff;
628
-            box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
629
-            border-radius: 5px;
630
-        }
631
-
632
-        .shade_title {
633
-            padding: 0 80px 0 20px;
634
-            height: 42px;
635
-            line-height: 42px;
636
-            border-bottom: 1px solid #eee;
637
-            font-size: 16px;
638
-            color: #FFFFFF;
639
-            overflow: hidden;
640
-            background-color: rgb(26, 179, 148);
641
-            border-radius: 2px 2px 0 0;
642
-            position: relative;
643
-        }
644
-
645
-        .setwin {
646
-            position: absolute;
647
-            right: 15px;
648
-            top: 5px;
649
-            font-size: 20px;
650
-            line-height: initial;
651
-        }
652
-
653
-            .setwin a {
654
-                font-size: 20px;
655
-                color: #fff;
656
-            }
657
-
658
-        .shade_content {
659
-            overflow-y: auto;
660
-            position: relative;
661
-            padding-bottom: 50px;
662
-            padding: 10px;
663
-        }
664
-
665
-        .wh_btn {
666
-            width: 80%;
667
-            text-align: center;
668
-            padding-top: 20px;
669
-            margin: 0 auto;
670
-            margin-bottom: 20px;
671
-        }
672
-
673
-            .wh_btn input {
674
-                padding: 7px 20px;
675
-                color: #FFF;
676
-                border-radius: 5px;
677
-                margin-right: 30px;
678
-                border: 1px solid #999;
679
-                border-color: rgb(26, 179, 148);
680
-            }
681
-
682
-        .sc_btn {
683
-            color: rgb(255, 255, 255);
684
-            font-size: 12px;
685
-            margin-left: 15px;
686
-            box-sizing: border-box;
687
-            background: rgb(26, 179, 148);
688
-            padding: 6px 10px;
689
-            outline: none;
690
-            border-width: 0px;
691
-            border-style: initial;
692
-            border-color: initial;
693
-            border-image: initial;
694
-            border-radius: 3px;
695
-        }
696
-
697
-            .sc_btn:hover {
698
-                color: #fff !important;
699
-            }
700
-
701
-        .cx {
702
-            display: block;
703
-        }
704
-
705
-        .phoneBZ {
706
-            display: inline-block;
707
-            height: 15px;
708
-            width: 15px;
709
-            position: absolute;
710
-            right: 0px;
711
-            bottom: -15px;
712
-            background: url(img/phoneBZ.png) no-repeat;
713
-            display: none;
714
-        }
715
-
716
-        #menuContent {
717
-            background: #fff;
718
-            position: absolute;
719
-            width: 100%;
720
-            border: 1px solid darkgrey;
721
-            right: 0;
722
-            top: 21px;
723
-            z-index: 10;
724
-            /*				display: none;*/
725
-            overflow-y: auto;
726
-        }
727
-
728
-        #organizer {
729
-            height: 25px;
730
-            width: 128px;
731
-            display: inline-block;
732
-            position: relative;
733
-        }
734
-
735
-        #treeDemo li {
736
-            width: 100%;
737
-        }
738
-
739
-        .bootstrap-select > .dropdown-toggle.bs-placeholder {
740
-            background-color: #ffffff !important;
741
-            border-color: #e5e6e7 !important;
742
-        }
743
-
744
-        .filter-option {
745
-            color: #676b6d;
746
-        }
747
-
748
-        .bootstrap-select > .dropdown-toggle.btn-default {
749
-            background-color: #ffffff !important;
750
-            border-color: #e5e6e7 !important;
751
-            color: #555;
752
-        }
753
-
754
-        #fkdep_market {
755
-            display: nones;
756
-        }
757
-
758
-        .roll-right.J_tabRight {
759
-            right: 0;
760
-        }
761
-    </style>
762 23
 </head>
763 24
 
764 25
 <body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
@@ -1316,9 +577,53 @@
1316 577
         </div>
1317 578
 
1318 579
     </div>
1319
-
1320 580
     <!--修改密码结束-->
1321
-
581
+    
582
+    <!--软电话图标-->
583
+    <a class="open-softphone" id="small-chat">
584
+    	<img src="img/softphone-icon.png"/>
585
+    </a>
586
+    <!--软电话弹框-->
587
+    <div class="softphone-box">
588
+    	<div class="phone_tooltip">
589
+    		<p>呼叫……</p>
590
+    		<p class="phTooltipResult" id="sip_phone_number"></p>
591
+    	</div>
592
+    	<div class="phone_btn_div">
593
+    		<ul>
594
+    			<li onclick="testStart()">初始</li>
595
+    			<li onclick="reg()" style="background: #24c792;">注册</li>
596
+    			<li onclick="unReg()">注销</li>
597
+    		</ul>
598
+    	</div>
599
+        <input hidden="hidden" id="sip_uri" type="text" value="sip:1009@sip.800100.com.cn"/></td>
600
+        <input hidden="hidden" id="sip_password" type="password" value="1009"/></td>
601
+        <input hidden="hidden" id="ws_uri" class="last unset" type="text" value="wss://sip.800100.com.cn:7443"/>
602
+        <input hidden="hidden" id="sip_phone_number" type="text" value="1010">
603
+    	
604
+		<div class="phoneNum_box">
605
+            <ul class="phoneNum_ul">
606
+                <li>1</li>
607
+                <li>2</li>
608
+                <li>3</li>
609
+                <li>4</li>
610
+                <li>5</li>
611
+                <li>6</li>
612
+                <li>7</li>
613
+                <li>8</li>
614
+                <li>9</li>
615
+                <li>*</li>
616
+                <li>0</li>
617
+                <li>#</li>
618
+            </ul>
619
+        </div>
620
+        <div class="phone_btn_bot">
621
+    		<div class="posbtn1" onclick="testCall()"><img src="img/call_out-icon.png"/></div>
622
+    		<div class="posbtn2 phoneNum_clear">清除</div>
623
+    		<div class="posbtn3" onclick="hangup()"><img src="img/hangu-iconp.png"/></div>
624
+    	</div>
625
+    </div>
626
+    
1322 627
     <script src="./js/plugins/pace/pace.min.js"></script>
1323 628
     <script src="./js/plugins/iCheck/icheck.min.js"></script>
1324 629
     <script src="./css/laydate/laydate.js"></script>
@@ -1335,7 +640,8 @@
1335 640
     <script src="./js/plugins/layer/layer.min.js"></script>
1336 641
     <script src="./js/hplus.min.js?v=4.1.0"></script>
1337 642
     <script src="./js/contabs.min.js"></script>
1338
-
643
+    <script src="js/jssip-3.0.13.min.js" type="text/javascript"></script>
644
+	<script src="js/softphone.js"></script>
1339 645
 </body>
1340 646
 
1341 647
 </html>

Fichier diff supprimé car celui-ci est trop grand
+ 29 - 150
CallCenterWeb.UI/js/index.js


Fichier diff supprimé car celui-ci est trop grand
+ 17 - 0
CallCenterWeb.UI/js/jssip-3.0.13.min.js


+ 177 - 0
CallCenterWeb.UI/js/softphone.js

@@ -0,0 +1,177 @@
1
+ var outgoingSession = null;
2
+ var incomingSession = null;
3
+ var currentSession = null;
4
+ var videoView = document.getElementById('videoView');
5
+
6
+ var constraints = {
7
+ 	audio: true,
8
+ 	video: false,
9
+ 	mandatory: {
10
+ 		maxWidth: 640,
11
+ 		maxHeight: 360
12
+ 	}
13
+ };
14
+ URL = window.URL || window.webkitURL;
15
+
16
+ var localStream = null;
17
+ var userAgent = null;
18
+
19
+ function testStart() {
20
+
21
+ 	var sip_uri_ = huayi.config.sip_uri_.toString();
22
+ 	var sip_password_ = huayi.config.sip_password_.toString();
23
+ 	var ws_uri_ = huayi.config.ws_uri_.toString();
24
+ 	console.log(sip_uri_+'-'+sip_password_+'-'+ws_uri_)
25
+ 	console.info("get input info: sip_uri = ", sip_uri_, " sip_password = ", sip_password_, " ws_uri = ", ws_uri_);
26
+ 	JsSIP.C.SESSION_EXPIRES = 120, JsSIP.C.MIN_SESSION_EXPIRES = 120;
27
+ 	var socket = new JsSIP.WebSocketInterface(ws_uri_);
28
+ 	var configuration = {
29
+ 		sockets: [socket],
30
+ 		outbound_proxy_set: ws_uri_,
31
+ 		uri: sip_uri_,
32
+ 		password: sip_password_,
33
+ 		register: true,
34
+ 		session_timers: true
35
+ 	};
36
+
37
+ 	userAgent = new JsSIP.UA(configuration);
38
+
39
+ 	//注册成功
40
+ 	userAgent.on('registered', function(data) {
41
+ 		console.info("registered: ", data.response.status_code, ",", data.response.reason_phrase);
42
+ 	});
43
+
44
+ 	//注册失败
45
+ 	userAgent.on('registrationFailed', function(data) {
46
+ 		console.log("registrationFailed, ", data);
47
+ 		//console.warn("registrationFailed, ", data.response.status_code, ",", data.response.reason_phrase, " cause - ", data.cause);
48
+ 	});
49
+
50
+ 	//注册超时
51
+ 	userAgent.on('registrationExpiring', function() {
52
+ 		console.warn("registrationExpiring");
53
+ 	});
54
+
55
+ 	userAgent.on('newRTCSession', function(data) {
56
+ 		console.info('onNewRTCSession: ', data);
57
+
58
+ 		//通话呼入
59
+ 		if(data.originator == 'remote') {
60
+ 			console.info("incomingSession, answer the call----------------------");
61
+ 			incomingSession = data.session;
62
+ 			data.session.answer({
63
+ 				'mediaConstraints': {
64
+ 					'audio': true,
65
+ 					'video': false,
66
+ 					mandatory: {
67
+ 						maxWidth: 640,
68
+ 						maxHeight: 360
69
+ 					}
70
+ 				},
71
+ 				'mediaStream': localStream
72
+ 			});
73
+ 		} else {
74
+ 			console.info("outgoingSession");
75
+ 			outgoingSession = data.session;
76
+ 			outgoingSession.on('connecting', function(data) {
77
+ 				console.info('onConnecting - ', data.request);
78
+ 				currentSession = outgoingSession;
79
+ 				outgoingSession = null;
80
+ 			});
81
+ 		}
82
+ 		data.session.on('accepted', function(data) {
83
+ 			console.info('onAccepted - ', data);
84
+ 			if(data.originator == 'remote' && currentSession == null) {
85
+ 				currentSession = incomingSession;
86
+ 				incomingSession = null;
87
+ 				console.info("setCurrentSession - ", currentSession);
88
+ 			}
89
+ 		});
90
+ 		data.session.on('confirmed', function(data) {
91
+ 			console.info('onConfirmed - ', data);
92
+ 			if(data.originator == 'remote' && currentSession == null) {
93
+ 				currentSession = incomingSession;
94
+ 				incomingSession = null;
95
+ 				console.info("setCurrentSession - ", currentSession);
96
+ 			}
97
+ 		});
98
+ 		data.session.on('sdp', function(data) {
99
+ 			console.info('onSDP, type - ', data.type, ' sdp - ', data.sdp);
100
+ 		});
101
+
102
+ 		data.session.on('progress', function(data) {
103
+ 			console.info('onProgress - ', data.originator);
104
+ 			if(data.originator == 'remote') {
105
+ 				console.info('onProgress, response - ', data.response);
106
+ 			}
107
+ 		});
108
+ 		data.session.on('peerconnection', function(data) {
109
+ 			console.info('onPeerconnection - ', data.peerconnection);
110
+ 			data.peerconnection.onaddstream = function(ev) {
111
+ 				console.info('onaddstream from remote ----------- ', ev);
112
+ 				//                <!--  videoView.src = URL.createObjectURL(ev.stream); -->
113
+ 				videoView.srcObject = ev.stream;
114
+ 			};
115
+ 		});
116
+ 	});
117
+
118
+ 	userAgent.on('newMessage', function(data) {
119
+ 		if(data.originator == 'local') {
120
+ 			console.info('onNewMessage , OutgoingRequest - ', data.request);
121
+ 		} else {
122
+ 			console.info('onNewMessage , IncomingRequest - ', data.request);
123
+ 		}
124
+ 	});
125
+
126
+ 	console.info("call register");
127
+
128
+ 	userAgent.start();
129
+ }
130
+
131
+ // Register callbacks to desired call events
132
+ var eventHandlers = {
133
+ 	'progress': function(e) {
134
+ 		console.log('call is in progress');
135
+ 	},
136
+ 	'failed': function(e) {
137
+ 		console.log('call failed: ', e);
138
+ 	},
139
+ 	'ended': function(e) {
140
+ 		console.log('call ended : ', e);
141
+ 	},
142
+ 	'confirmed': function(e) {
143
+ 		console.log('call confirmed');
144
+ 	}
145
+ };
146
+
147
+ function testCall() {
148
+ 	var sip_phone_number_ = document.getElementById("sip_phone_number").innerHTML.toString();
149
+ 	var options = {
150
+ 		'eventHandlers': eventHandlers,
151
+ 		'mediaConstraints': {
152
+ 			'audio': true,
153
+ 			'video': false,
154
+ 			mandatory: {
155
+ 				maxWidth: 640,
156
+ 				maxHeight: 360
157
+ 			}
158
+ 		},
159
+ 		'mediaStream': localStream
160
+ 	};
161
+ 	outgoingSession = userAgent.call(sip_phone_number_, options);
162
+ }
163
+
164
+ function reg() {
165
+ 	console.log('register----------->');
166
+ 	userAgent.register();
167
+ }
168
+
169
+ function unReg() {
170
+ 	console.log('unregister----------->');
171
+ 	userAgent.unregister(true);
172
+ }
173
+
174
+ function hangup() {
175
+ 	console.log('hangup----------->');
176
+ 	userAgent.terminateSessions();
177
+ }

+ 2 - 22
CallCenterWeb.UI/login.html

@@ -11,9 +11,6 @@
11 11
     <script src="Script/Common/huayi.load.js"></script>
12 12
     <script src="Script/Common/huayi.config.js"></script>
13 13
     <link href="./css/login.css" rel="stylesheet">
14
-    <!--[if lt IE 9]>
15
-    <meta http-equiv="refresh" content="0;ie.html" />
16
-    <![endif]-->
17 14
     <style>
18 15
     	.signin_left{
19 16
     		position: relative;
@@ -45,34 +42,17 @@
45 42
 		}
46 43
     	
47 44
     </style>
48
-    
49
-    
50 45
 </head>
51 46
 
52 47
 <body class="signin">
53 48
     <div class="signin_bg row">
54 49
         <div class="signin_bg_left col-md-5"></div>
55 50
         <div class="signin_bg_mask"></div>
56
-           <div class="left_word">
57
-           	<!--<div>
58
-           		  	 <h3>用心做,更出色</h3>
59
-                <p>致力于临床实验技术的普及和提高,为人类健康服务</p>
60
-           	</div>-->
61
-           </div>
51
+           <div class="left_word"></div>
62 52
     </div>
63 53
     <div class="container">
64 54
         <div class="row clearfix">
65
-            <div class="signin_left col-md-5">
66
-               <!--<h2>
67
-                   <i></i>
68
-                    <span>全客服平台</span>
69
-                </h2>-->
70
-                <!--<p>欢迎您进入全客服平台,开启智慧客服新篇章!</p>-->
71
-                <!--<div class="left_word">
72
-                	 <h3>用心做,更出色</h3>
73
-                <p>致力于临床实验技术的普通和提高,为人类健康服务</p>
74
-                </div>-->
75
-            </div>
55
+            <div class="signin_left col-md-5"></div>
76 56
             <div class="signin_right col-md-5">
77 57
                 <div class="signin_panel">
78 58
                 	<div class="logo_title">