Selaa lähdekoodia

弹屏样式修改

liuzhen 6 vuotta sitten
vanhempi
commit
d101edbefd
2 muutettua tiedostoa jossa 31 lisäystä ja 6 poistoa
  1. 21 3
      WebUI/CallCenterWeb.UI/index.html
  2. 10 3
      WebUI/CallCenterWeb.UI/js/index.js

+ 21 - 3
WebUI/CallCenterWeb.UI/index.html

@@ -1131,9 +1131,15 @@
1131 1131
 		}
1132 1132
 		.top_notices_con1{
1133 1133
 			display: inline-block;
1134
-			width: 200px;
1135
-			height: 100%;
1134
+			width: 100%;
1135
+			/*height: 100%;*/
1136 1136
 			float: left;
1137
+			/*text-align: center;*/
1138
+			font-size: 14px;
1139
+		}
1140
+		.top_notices_item1{
1141
+			height: 100%;
1142
+			font-size: 0px;
1137 1143
 		}
1138 1144
 		.btn-primary{
1139 1145
 			float: right;
@@ -1147,10 +1153,19 @@
1147 1153
 			bottom: 50px;
1148 1154
 			right: 80px;
1149 1155
 			z-index: 111;
1156
+			width: 300px;
1157
+			height: 150px;
1150 1158
 			display: none;
1151 1159
 		}
1160
+		.last_li{
1161
+			position: absolute;
1162
+			bottom: 0;
1163
+			width: 100%;
1164
+		}
1152 1165
 		.news{
1153 1166
 			margin-top: 10px;
1167
+			width: 100%;
1168
+			height: 110px;
1154 1169
 		}
1155 1170
 		.tan_ping button{
1156 1171
 			background-color: #048aad;
@@ -1164,6 +1179,9 @@
1164 1179
 		#chuli{
1165 1180
 			float: right;
1166 1181
 		}
1182
+		#top_notices_lists1{
1183
+			height: 100%;
1184
+		}
1167 1185
     </style>
1168 1186
 </head>
1169 1187
 
@@ -2260,7 +2278,7 @@
2260 2278
 			<li class="news">
2261 2279
 				<ul id="top_notices_lists1"></ul>
2262 2280
 			</li>
2263
-			<li>
2281
+			<li class="last_li">
2264 2282
 				<button id="know">
2265 2283
 					知道了
2266 2284
 				</button>

+ 10 - 3
WebUI/CallCenterWeb.UI/js/index.js

@@ -1881,8 +1881,15 @@ function getnew(){
1881 1881
 				$('.tan_ping').css('display','block');
1882 1882
 //				$('#top_notices_num').text(result.length);
1883 1883
 				for (var i = 0; i < result.length; i++) {
1884
-					str += '<li class="top_notices_item">' +
1885
-						'<span title="'+result[i].SMS_Content+'" data_id="'+result[i].SMS_Id+'" class="top_notices_con1">'+ result[i].SMS_Content +'</span>' +
1884
+					var contant1=result[i].SMS_Content.split('|')[0];
1885
+					if(contant1.length>68){
1886
+						contant2 = contant1.substr(0, 68) + "...";	
1887
+					}else{
1888
+						contant2=contant1
1889
+					}
1890
+					var contant3=result[i].SMS_Content.split('|')[1];
1891
+					str += '<li class="top_notices_item top_notices_item1">' +
1892
+						'<span title="有坐席向您索要关于“'+ contant1+'”的内容,截止至'+contant3+',请尽快处理" data_id="'+result[i].SMS_Id+'" class="top_notices_con1">有坐席向您索要关于“'+ contant2+'”的内容</span><br /><span class="top_notices_con1">截止至<i style="color:red;font-style:normal">'+contant3+'</i>,请尽快处理</span>' +
1886 1893
 //						'<button type="button" class="btn btn-primary btn-sm" onclick="signRead('+ result[i].SMS_Id +', event)">未读</button>' +
1887 1894
 						'</li>' +
1888 1895
 						'<li class="divider"></li>';
@@ -1932,4 +1939,4 @@ function Read(signid, e) {
1932 1939
 		});
1933 1940
 }
1934 1941
 //获取知识库消息
1935
-setInterval(getnew,20000)
1942
+//setInterval(getnew,20000)