Просмотр исходного кода

客服在线客服右侧样式调整

lihai лет назад: 5
Родитель
Сommit
074af4b80a
3 измененных файлов с 1125 добавлено и 699 удалено
  1. 408 289
      WebUI/CallCenterWeb.UI/css/chat.css
  2. 705 409
      WebUI/CallCenterWeb.UI/index.html
  3. 12 1
      WebUI/CallCenterWeb.UI/js/chat.js

+ 408 - 289
WebUI/CallCenterWeb.UI/css/chat.css

@@ -1,297 +1,416 @@
1
-		body{
2
-				color: #4d4d4d;
3
-			    font: 14px/1.4em 'Helvetica Neue', Helvetica, 'Microsoft Yahei', Arial, sans-serif;
4
-			    background: #f5f5f5 url(img/chat_bg.jpg) no-repeat center;
5
-			    background-size: cover;
6
-			}
7
-			ul,li{
8
-				list-style: none;
9
-				margin: 0;
10
-				padding: 0;
11
-			}
12
-			
13
-			#chat{
14
-				margin: 20px auto;
15
-			    width: 1300px;
16
-			    height: 600px;
17
-			    overflow: hidden;
18
-    			border-radius: 3px;
19
-    			position: absolute;
20
-			    z-index: 10000;
21
-			    right: 100px;
22
-			    top: 20%;
23
-			    display: none;
24
-			    box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
25
-			}
26
-			.chat_left,.chat_sidebar{
27
-					float: left;
28
-			}
29
-			.chat_left ul li{
30
-				    /*padding: 9pt 15px;*/
31
-				   padding: 10px 10px;
32
-				    border-bottom: 1px solid #292c33;
33
-				    cursor: pointer;
34
-				    color: #f4f4f4;
35
-			}
36
-			.chat_left ul li .chat_name{
37
-				margin: 0;
38
-			}
39
-			.chat_sidebar{
40
-			    width: 200px;
41
-			    color: #f4f4f4;
42
-			    background-color: #2e3238;
43
-			}
44
-           
45
-			#chat .chat_left,#chat .chat_main, #chat .chat_sidebar,.message_mincon{
46
-				    height: 100%;
47
-			}
48
-            .chat_left, .chat_main, .chat_rightlist{
49
-                    border-right:#ddd 1px solid;
50
-			}
51
-			#chat .chat_main ,.message_mincon{
52
-			    position: relative;
53
-			    /*overflow: hidden;*/
54
-			    background-color: #eee;
55
-			}
56
-			.ver_middle{
57
-				vertical-align: middle;
58
-			}
59
-			#chat .chat_left{
60
-				width: 70px;
61
-			    background: #2f3339;
62
-			    border-right: 1px solid #292c33;
63
-			}
64
-			
65
-			/*chat_sidebar开始*/
66
-			.pic_card{
67
-			    padding: 9pt;
68
-			    border-bottom: 1px solid #24272c;
69
-			}
70
-			.chat_name{
71
-				display: inline-block;
72
-			    margin: 0 0 0 15px;
73
-			    font-size: 1pc;
74
-			    vertical-align: middle;
75
-			    font-size: 14px;
76
-			}
77
-			.chat_sidebar_foot{
78
-				margin-top: 10px;
79
-			}
80
-			.sidebar_foot_seach{
81
-				padding: 0 10px;
82
-			    width: 100%;
83
-			    font-size: 9pt;
84
-			    color: #fff;
85
-			    height: 30px;
86
-			    line-height: 30px;
87
-			    border: 1px solid #3a3a3a;
88
-			    border-radius: 4px;
89
-			    outline: 0;
90
-			    background-color: #26292e;
91
-			}
92
-			.chat_sidebar_list{
93
-				height: 495px;
94
-   				overflow-y: auto;
95
-			}
96
-			.chat_sidebar_list li{
97
-				/*padding: 9pt 15px;*/
98
-				padding: 4pt 15px;
99
-			    border-bottom: 1px solid #292c33;
100
-			    cursor: pointer;
101
-			    -webkit-transition: background-color .1s;
102
-			    transition: background-color .1s;
103
-			    position: relative;
104
-			}
105
-			.chat_sidebar_list li.activess ,.chat_left li.activess{
106
-			    background-color: hsla(0,0%,100%,.1);
107
-			}
108
-			.chat_sidebar_list li.activess .pieHide,.chat_sidebar_list li.activess .pieShow{
109
-				display: none!important;
110
-			}
111
-			.chat_sidebar_list li .pieShow{
112
-				display: block!important;
113
-			}
114
-			.chat_sidebar_list li.activess:hover ,.chat_left li.activess:hover{
115
-			    background-color: hsla(0,0%,100%,.1);
116
-			}
117
-			.chat_sidebar_list li:hover ,.chat_left li:hover{
118
-				    background-color: hsla(0,0%,100%,.03);
119
-				}
120
-		/*chat_sidebar结束*/
121
-		/*聊天区域开始*/
122
-		.message_count{
123
-			display: inline-block;
124
-			position: absolute;
125
-			right: 0;
126
-			border-radius: 50%;
127
-			background: red;
128
-			color: #fff;
129
-		}
130
-		.disnone{
131
-			display: none;
132
-		}
133
-		.main_message{
134
-		 height: calc(100% - 160px);
135
-		}
136
-		.chat_person{
137
-			      position: absolute;
138
-			    width: 100%;
139
-			    top: 0;
140
-			    left: 0;
141
-			    height: 2pc;
142
-			    line-height: 2pc;
143
-			    border-bottom: 1px solid #ddd;
144
-			    background: #fff;
145
-		}
146
-		.main_message li{
147
-			margin-bottom: 15px;
148
-		}
149
-		.main_message .message_time{
150
-			    margin: 7px 0;
151
-   			 text-align: center;
152
-		}
153
-		.main_message .ver_middle{
154
-			    float: left;
155
-			    margin: 0 10px 0 0;
156
-			    border-radius: 3px;
157
-		}
158
-		.main_message .message_text{
159
-			    display: inline-block;
160
-			    position: relative;
161
-			    padding: 2px 10px 0 10px;
162
-			    max-width: calc(100% - 80px);
163
-			    min-height: 28px;
164
-			    line-height: 2;
165
-			    font-size: 9pt;
166
-			    text-align: left;
167
-			    word-break: break-all;
168
-			    background-color: #fafafa;
169
-			    border-radius: 4px;
170
-		}
171
-		.main_message .message_text:before{
172
-			content: " ";
173
-		    position: absolute;
174
-		    top: 9px;
175
-		    right: 100%;
176
-		    border: 6px solid transparent;
177
-		    border-right-color: #fafafa;
178
-		}
179
-            .main_message .message_text p {
180
-                margin: 2px 0 10px 0;
181
-                line-height: 2;
1
+body {
2
+    color: #4d4d4d;
3
+    font: 14px/1.4em 'Helvetica Neue', Helvetica, 'Microsoft Yahei', Arial, sans-serif;
4
+    background: #f5f5f5 url(img/chat_bg.jpg) no-repeat center;
5
+    background-size: cover;
6
+}
7
+
8
+ul, li {
9
+    list-style: none;
10
+    margin: 0;
11
+    padding: 0;
12
+}
13
+
14
+::-webkit-scrollbar-thumb {
15
+	background-color: #ccc
16
+}
17
+
18
+#chat {
19
+    margin: 20px auto;
20
+    width: 1300px;
21
+    height: 600px;
22
+    overflow: hidden;
23
+    border-radius: 3px;
24
+    position: absolute;
25
+    z-index: 10000;
26
+    right: 100px;
27
+    top: 20%;
28
+    display: none;
29
+    box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
30
+}
31
+
32
+.chat_left, .chat_sidebar {
33
+    float: left;
34
+}
35
+
36
+    .chat_left ul li {
37
+        /*padding: 9pt 15px;*/
38
+        padding: 10px 10px;
39
+        border-bottom: 1px solid #292c33;
40
+        cursor: pointer;
41
+        color: #f4f4f4;
42
+    }
43
+
44
+        .chat_left ul li .chat_name {
45
+            margin: 0;
46
+        }
47
+
48
+.chat_sidebar {
49
+    width: 200px;
50
+    color: #f4f4f4;
51
+    background-color: #2e3238;
52
+}
53
+
54
+#chat .chat_left, #chat .chat_main, #chat .chat_sidebar, .message_mincon {
55
+    height: 100%;
56
+}
57
+
58
+.chat_left, .chat_main, .chat_rightlist {
59
+    border-right: #ddd 1px solid;
60
+}
61
+
62
+#chat .chat_main, .message_mincon {
63
+    position: relative;
64
+    /*overflow: hidden;*/
65
+    background-color: #eee;
66
+}
67
+
68
+.ver_middle {
69
+    vertical-align: middle;
70
+}
71
+
72
+#chat .chat_left {
73
+    width: 70px;
74
+    background: #2f3339;
75
+    border-right: 1px solid #292c33;
76
+}
77
+
78
+/*chat_sidebar开始*/
79
+.pic_card {
80
+    padding: 9pt;
81
+    border-bottom: 1px solid #24272c;
82
+}
83
+
84
+.chat_name {
85
+    display: inline-block;
86
+    margin: 0 0 0 15px;
87
+    font-size: 1pc;
88
+    vertical-align: middle;
89
+    font-size: 14px;
90
+}
91
+
92
+.chat_sidebar_foot {
93
+    margin-top: 10px;
94
+}
95
+
96
+.sidebar_foot_seach {
97
+    padding: 0 10px;
98
+    width: 100%;
99
+    font-size: 9pt;
100
+    color: #fff;
101
+    height: 30px;
102
+    line-height: 30px;
103
+    border: 1px solid #3a3a3a;
104
+    border-radius: 4px;
105
+    outline: 0;
106
+    background-color: #26292e;
107
+}
108
+
109
+.chat_sidebar_list {
110
+    height: 495px;
111
+    overflow-y: auto;
112
+}
113
+
114
+    .chat_sidebar_list li {
115
+        /*padding: 9pt 15px;*/
116
+        padding: 4pt 15px;
117
+        border-bottom: 1px solid #292c33;
118
+        cursor: pointer;
119
+        -webkit-transition: background-color .1s;
120
+        transition: background-color .1s;
121
+        position: relative;
122
+    }
123
+
124
+        .chat_sidebar_list li.activess, .chat_left li.activess {
125
+            background-color: hsla(0,0%,100%,.1);
126
+        }
127
+
128
+            .chat_sidebar_list li.activess .pieHide, .chat_sidebar_list li.activess .pieShow {
129
+                display: none !important;
182 130
             }
183
-		.main_message .self {
184
-			    text-align: right;
185
-			    }
186
-	   .main_message .self .ver_middle {
187
-	    	float: right;
188
-			margin: 0 0 0 10px;
189
-	    }
190
-		.main_message .self .message_text {
191
-			    background-color: #b2e281;
192
-				}
193
-		.main_message .self .message_text:before {
194
-			    right: inherit;
195
-			    left: 100%;
196
-			    border-right-color: transparent;
197
-			    border-left-color: #b2e281;
198
-			    }
199
-		
200
-		.main_sendMessage{
201
-			    position: absolute;
202
-			    width: 100%;
203
-			    bottom: 0;
204
-			    left: 0;
205
-			    height: 10pc;
206
-  				 border-top: 1px solid #ddd;
207
-  				 background: #fff;
208
-		}
209
-		.main_sendMessage textarea{
210
-			    padding: 10px;
211
-			    height: 80%;
212
-			    width: 100%;
213
-			    border: none;
214
-			    outline: 0;
215
-			    font-family: Micrsofot Yahei;
216
-			    resize: none;
217
-		}
218
-		.main_sendMessage .send_btn{
219
-			height: 20%;
220
-			text-align: right;
221
-			color: #4d4d4d;
222
-			    padding-right: 20px;
223
-		}
224
-		.main_sendMessage .send_btn button{
225
-			border: 1px solid #ccc;
226
-			background: #fff;
227
-			outline: none;
131
+
132
+        .chat_sidebar_list li .pieShow {
133
+            display: block !important;
134
+        }
135
+
136
+        .chat_sidebar_list li.activess:hover, .chat_left li.activess:hover {
137
+            background-color: hsla(0,0%,100%,.1);
138
+        }
139
+
140
+        .chat_sidebar_list li:hover, .chat_left li:hover {
141
+            background-color: hsla(0,0%,100%,.03);
142
+        }
143
+/*chat_sidebar结束*/
144
+/*聊天区域开始*/
145
+.message_count {
146
+    display: inline-block;
147
+    position: absolute;
148
+    right: 0;
149
+    border-radius: 50%;
150
+    background: red;
151
+    color: #fff;
152
+}
153
+
154
+.disnone {
155
+    display: none;
156
+}
157
+
158
+.main_message {
159
+    height: calc(100% - 129px);
160
+}
161
+
162
+.chat_person {
163
+    position: absolute;
164
+    width: 100%;
165
+    top: 0;
166
+    left: 0;
167
+    height: 2pc;
168
+    line-height: 2pc;
169
+    border-bottom: 1px solid #ddd;
170
+    background: #fff;
171
+}
172
+
173
+.main_message li {
174
+    margin-bottom: 15px;
175
+}
176
+
177
+.main_message .message_time {
178
+    margin: 7px 0;
179
+    text-align: center;
180
+}
181
+
182
+.main_message .ver_middle {
183
+    float: left;
184
+    margin: 0 10px 0 0;
185
+    border-radius: 3px;
186
+}
187
+
188
+.main_message .message_text {
189
+    display: inline-block;
190
+    position: relative;
191
+    padding: 2px 10px 0 10px;
192
+    max-width: calc(100% - 80px);
193
+    min-height: 28px;
194
+    line-height: 2;
195
+    font-size: 9pt;
196
+    text-align: left;
197
+    word-break: break-all;
198
+    background-color: #fafafa;
199
+    border-radius: 4px;
200
+}
201
+
202
+    .main_message .message_text:before {
203
+        content: " ";
204
+        position: absolute;
205
+        top: 9px;
206
+        right: 100%;
207
+        border: 6px solid transparent;
208
+        border-right-color: #fafafa;
209
+    }
210
+
211
+    .main_message .message_text p {
212
+        margin: 2px 0 10px 0;
213
+        line-height: 2;
214
+    }
215
+
216
+.main_message .self {
217
+    text-align: right;
218
+}
219
+
220
+    .main_message .self .ver_middle {
221
+        float: right;
222
+        margin: 0 0 0 10px;
223
+    }
224
+
225
+    .main_message .self .message_text {
226
+        background-color: #b2e281;
227
+    }
228
+
229
+        .main_message .self .message_text:before {
230
+            right: inherit;
231
+            left: 100%;
232
+            border-right-color: transparent;
233
+            border-left-color: #b2e281;
234
+        }
235
+
236
+.main_sendMessage {
237
+    position: absolute;
238
+    width: 100%;
239
+    bottom: 0;
240
+    left: 0;
241
+    height: 8pc;
242
+    border-top: 1px solid #ddd;
243
+    background: #fff;
244
+}
245
+
246
+    .main_sendMessage textarea {
247
+        padding: 10px;
248
+        height: 70%;
249
+        width: 100%;
250
+        border: none;
251
+        outline: 0;
252
+        font-family: Micrsofot Yahei;
253
+        resize: none;
254
+    }
255
+
256
+    .main_sendMessage .send_btn {
257
+        height: 20%;
258
+        text-align: right;
259
+        color: #4d4d4d;
260
+        padding-right: 16px;
261
+        padding-bottom: 6px;
262
+    }
263
+
264
+        .main_sendMessage .send_btn button {
265
+            border: 1px solid #ccc;
266
+            background: #fff;
267
+            outline: none;
268
+        }
269
+
270
+            .main_sendMessage .send_btn button:hover {
271
+                background: #b2e281;
272
+            }
273
+
274
+/*聊天区域结束*/
275
+
276
+/*聊天右侧列表开始*/
277
+.chat_rightlist {
278
+    width: 500px;
279
+    background-color: #eee;
280
+    float: right;
281
+    height: 100%;
282
+}
283
+
284
+.chat_ld-service {
285
+    /*background-color: #2e3238 !important;*/
286
+    border-bottom: 1px solid #ddd;
287
+}
288
+.chat_ld-service li {
289
+    float: left;
290
+    font-size: 14px;
291
+    color: #444;
292
+    padding: 8px 34px;
293
+    cursor: pointer;
294
+}
295
+
296
+.chat_cr-click {
297
+    border-bottom: 2px solid #00a1cb;
298
+}
299
+
300
+.chat_Shows {
301
+    display: block !important;
302
+}
303
+
304
+.chat_complain {
305
+    display: none;
306
+}
307
+
308
+.chat_search {
309
+width: 100%;padding: 10px;
310
+}
311
+.chat_lists {
312
+width: 100%; padding: 0px 20px 14px 20px; overflow-y: auto; height:502px;
313
+}
314
+.chat_list{
315
+			width: 100%;
228 316
 		}
229
-		.main_sendMessage .send_btn button:hover{
230
-			background: #b2e281;
317
+.chat_item {
318
+ line-height:20px;
319
+ font-size:12px;
320
+ padding:6px 0;
321
+}
322
+		.chat_lists li span{
323
+			
231 324
 		}
232
-		
233
-		/*聊天区域结束*/
325
+/*搜索*/
326
+
327
+.chat_btns {
328
+            background: #00a1cb;
329
+            color: #fff;
330
+            padding: 6px 20px;
331
+            outline: none;
332
+            font-size: 12px;
333
+            margin-left: 6px;
334
+            border: 0;
335
+            border-radius: 3px;
336
+            box-sizing: border-box;
337
+        }
338
+input {
339
+            background-color: #ddd;
340
+            border: 1px solid #ccc;
341
+            border-radius: 1px;
342
+            color: inherit;
343
+            padding: 4px 12px;
344
+            width:100%;
345
+            border-radius:3px;
346
+        }
347
+.chat_item button {
348
+    padding:1px 5px; margin-left:4px;
349
+}
234 350
 
235
-/*聊天右侧列表开始*/
236
- .chat_rightlist{
237
-			    width: 500px;
238
-			    background-color: #fff;
239
-                float:right;
240
-                height: 100%;
241
-			}
242 351
 
243 352
 /*聊天右侧列表结束*/
244 353
 
245 354
 /*后来添加改变的*/
246
-	.more {
247
-				display: block;
248
-				text-align: center;
249
-			}
250
-			
251
-			.more:hover {
252
-				text-decoration: underline;
253
-			}
254
-			.tabMain{
255
-				display: none;
256
-				height: 100%;
257
-			}
258
-			.tabMain.activess{
259
-				display: block!important;
260
-			}
261
-			.notice{
262
-				display: block;
263
-				text-align: center;
264
-				color: red;
265
-			}
266
-			.chatlist_con{
267
-				overflow-y: auto;
268
-				width: 100%;
269
-				height: 100%;
270
-				padding: 20px 9px;
271
-   				box-sizing: border-box;
272
-			}
273
-			.chat_main{
274
-				float: left;
275
-   				width: 600px;
276
-			}
277
-			.closeds{
278
-				position: absolute;
279
-				right: 10px;
280
-   				top: 33%;
281
-   				display: none;
282
-			}
283
-			.pie{
284
-				position: absolute;
285
-				right: 30px;
286
-   				top: 33%;
287
-   				display: none;
288
-			}
289
-			.sidebar_list li{
290
-				position: relative;
291
-			}
292
-			.sidebar_list li:hover .closeds{
293
-				display: block;
294
-			}
295
-			.sidebar_list li .closeds:hover{
296
-				color: red;
297
-			}
355
+.more {
356
+    display: block;
357
+    text-align: center;
358
+}
359
+
360
+    .more:hover {
361
+        text-decoration: underline;
362
+    }
363
+
364
+.tabMain {
365
+    display: none;
366
+    height: 100%;
367
+}
368
+
369
+    .tabMain.activess {
370
+        display: block !important;
371
+    }
372
+
373
+.notice {
374
+    display: block;
375
+    text-align: center;
376
+    color: red;
377
+}
378
+
379
+.chatlist_con {
380
+    overflow-y: auto;
381
+    width: 100%;
382
+    height: 100%;
383
+    padding: 20px 9px;
384
+    box-sizing: border-box;
385
+}
386
+
387
+.chat_main {
388
+    float: left;
389
+    width: 600px;
390
+}
391
+
392
+.closeds {
393
+    position: absolute;
394
+    right: 10px;
395
+    top: 33%;
396
+    display: none;
397
+}
398
+
399
+.pie {
400
+    position: absolute;
401
+    right: 30px;
402
+    top: 33%;
403
+    display: none;
404
+}
405
+
406
+.sidebar_list li {
407
+    position: relative;
408
+}
409
+
410
+    .sidebar_list li:hover .closeds {
411
+        display: block;
412
+    }
413
+
414
+    .sidebar_list li .closeds:hover {
415
+        color: red;
416
+    }

Разница между файлами не показана из-за своего большого размера
+ 705 - 409
WebUI/CallCenterWeb.UI/index.html


+ 12 - 1
WebUI/CallCenterWeb.UI/js/chat.js

@@ -68,7 +68,7 @@ function Connects() {
68 68
                                         '</li>';
69 69
                         $(userhtml).appendTo(".sidebar_list").click(function () {
70 70
                             $(".user").removeClass("activess");
71
-                            //                                  $(this).siblings('li').removeClass("actives");
71
+                            // $(this).siblings('li').removeClass("actives");
72 72
                             $(this).addClass("activess");
73 73
                             $(this).find('.pie').removeClass('pieShow').addClass('pieHide');
74 74
                             $('.open_chat').find('.before').removeClass('show').addClass('hide');
@@ -292,3 +292,14 @@ $('.open_chat').click(function () {
292 292
     }
293 293
 
294 294
 })
295
+
296
+//聊天右侧列表开始
297
+//弹屏右侧切换效果
298
+$(".chat_ld-service li").click(function () {
299
+    $(this).addClass("chat_cr-click").siblings().removeClass("chat_cr-click");
300
+    var index = $(this).index();
301
+    var ss = $(this).attr("itemtype");
302
+    $(".chat_Content_box").find(".chat_complain").eq(index).addClass("chat_Shows").siblings().removeClass("chat_Shows");
303
+
304
+});
305
+//聊天右侧列表结束