|
|
@@ -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)
|