<!--<a class="news_F" href="${base}/business/pages/sysMessage/messageList.html"><span class="message num">0</span></a>
|
<div class="news_pop">
|
<div class="progressbar">
|
<div id="progress_bar"></div>
|
</div>
|
<a id="msg_content" href="" target="_blank"></a>
|
</div>
|
-->
|
<footer style="margin-top:20px;">
|
<p><a>意见反馈</a> | <a>帮助说明</a> | <a>关于运维</a> | <a>联系我们</a> <span class="flag">|</span> <a class="version">${Session["VERSION_CODE"]}</a></p>
|
<p>Copyright © 1996-2022 ${Constants.company_name}</p>
|
</footer>
|
|
<!--
|
<script type="text/javascript">
|
|
$(function () {
|
//消息控制对象
|
var msgManager = createMsgManager();
|
//注册鼠标移入事件
|
msgManager.registMouseover();
|
//注册鼠标移出事件
|
msgManager.registMouseleave();
|
//注册消息点击
|
msgManager.registMsgClick();
|
//更新数量
|
msgManager.synMsgCount();
|
//与服务器建立连接,同步信息
|
msgManager.synMessage();
|
|
//版本信息弹窗
|
$(".version").live('click', function () {
|
var url = "${base}/business/ptVersionInfo.html";
|
window.top.openDialog("0", "当前版本信息",
|
{},
|
{"width": 40, "height": 70},
|
[], url);
|
});
|
|
//加载当前版本号
|
$.ajax({
|
type: 'post',
|
url: '${base}/business/loadVersion.html',
|
async: true,
|
success: function (data) {
|
if (data != "") {
|
$(".version").html(data);
|
} else {
|
$(".version").html(data);
|
//让 | 隐藏
|
$(".flag").hide();
|
}
|
},
|
error: function () {
|
alert('服务端异常');
|
}
|
})
|
|
});
|
|
function createMsgManager() {
|
var obj = new Object();
|
//超时时间
|
obj.fadeTimeOut = 5000;
|
//当前进度
|
obj.curProgress = 0;
|
obj.timeout = 0;
|
obj.interval = 0;
|
//消息队列
|
obj.msgAry = [];
|
//消息框经过fadeTimeOut时间消失
|
obj.startTimeOut = function () {
|
obj.timeout = setTimeout(function () {
|
$(".news_pop").fadeOut(1000,function () {
|
obj.stopProgress();
|
});
|
}, obj.fadeTimeOut)
|
}
|
//进度条更新
|
obj.startInterval = function () {
|
obj.interval = setInterval(function () {
|
obj.fadeTimeOut -= 100;
|
obj.curProgress += 2;
|
$("#progress_bar").width((100 - obj.curProgress) + "%");
|
}, 100)
|
}
|
//显示消息
|
obj.showMsg = function () {
|
//重置超时时间和进度条
|
obj.curProgress = 0;
|
obj.fadeTimeOut = 5000;
|
if (obj.msgAry.length > 0) {
|
$("#msg_content").text(obj.msgAry[obj.msgAry.length - 1].title);
|
$("#msg_content").attr("href", obj.msgAry[obj.msgAry.length - 1].url);
|
$(".news_pop").show();
|
$(".news_pop").addClass("bounceInUp");
|
obj.startTimeOut();
|
obj.startInterval();
|
}
|
}
|
//停止进度条
|
obj.stopProgress = function () {
|
window.clearTimeout(obj.timeout);
|
window.clearInterval(obj.interval);
|
}
|
//注册鼠标移入
|
obj.registMouseover = function () {
|
$(".news_F").mouseover(function () {
|
obj.stopProgress();
|
obj.showMsg();
|
})
|
$(".news_pop").mouseover(function () {
|
obj.stopProgress();
|
})
|
}
|
//注册鼠标移出
|
obj.registMouseleave = function () {
|
$(".news_pop").mouseleave(function () {
|
obj.startTimeOut();
|
obj.startInterval();
|
})
|
};
|
//注册消息点击事件
|
obj.registMsgClick = function () {
|
$("#msg_content").click(function () {
|
obj.msgAry.pop();
|
var num = parseInt($(".message.num").text());
|
if (num != 0) {
|
$(".message.num").text(num - 1);
|
}
|
})
|
};
|
//更新消息
|
obj.synMessage = function () {
|
$.ajax({
|
url: "${base}/business/pages/sysMessage/synMessage.html",
|
data: {},
|
type: "POST",
|
dataType: "json",
|
success: function (data) {
|
if (data) {
|
obj.synMsgCount();
|
obj.msgAry.push({"title": data.title, "url": data.url});
|
obj.showMsg();
|
}
|
obj.synMessage();
|
},
|
error: function () {
|
setTimeout("obj.synMessage()", 60000);
|
}
|
})
|
}
|
//更新消息数量
|
obj.synMsgCount = function () {
|
$.post("${base}/business/pages/sysMessage/messageCount.html", {"state": "1"}, function (data) {
|
$(".message.num").text(data);
|
})
|
}
|
return obj;
|
}
|
|
</script>
|
-->
|
<table width="20%" style="display: none" >
|
<tr>
|
<td width="20%" rowspan="4" align="left"><h3>通话弹屏连接 </h3><span id="messageTd" style="display:none2;background-color:#FFCCFF;height:20" ></span></td>
|
</tr>
|
</table>
|
<script src="${common_static}/static/ui/js/popjn_src.js"></script>
|
<script type="text/javascript">
|
var jshost='${SysConfigConstants.CALL_PATH}';
|
var jsoper='${Session["loguser"].GH}';
|
var jsch='-1';
|
var jsport='${SysConfigConstants.CALL_DK}';
|
[#if SysConfigConstants.BEIJINGYY==1]
|
var s= window.setInterval(function(){
|
$.ajax({
|
type: 'post',
|
url: '${base}/business/pages/traffic/saveTrafficYy.html',
|
data: {},
|
async: false,
|
dataType: 'json',
|
success: function (data) {
|
var msg=data.msg;
|
if(msg=="0"){
|
var mobile=data.mobile;
|
var s=window.top.document.getElementById('dialogIframe10');
|
if(s==null){
|
window.top.openDialog("10","通话弹屏",
|
{},
|
{"width":"80","height":"90"},
|
[],
|
"${base}/business/pages/traffic/trafficYyAddIncident.html?mobile="+mobile);
|
}
|
}
|
},
|
error: function () {
|
alert('服务端异常');
|
}
|
|
})
|
},1000);
|
[/#if]
|
</script>
|
<script language="JavaScript">
|
[#if Session["loguser"].IS_TP==1]
|
setTimeout(webgo,1000);
|
[/#if]
|
</script>
|
<script language="javascript">
|
var sn="";
|
//弹屏函数,函数名不能改
|
[#if Session["loguser"].IS_TP==1]
|
function popCustWin(req){
|
|
var reqURI=req.replace(/#/g,"A"); //本行保留
|
|
//实时状态 判断
|
if (reqURI.indexOf('H=t4v1')!=-1)
|
{
|
|
// 当sys_config.xml中popVer配置为t4v1发送的字符串信息为:
|
// H=数据包类型及版本,s=状态代码,ph=电话号码
|
// 例如:
|
// H=t4v1,s=1,ph=02586307627
|
|
// alert("实时状态包:"+reqURI);
|
|
var dataArray = reqURI.split(",");//以,号切割
|
|
var state = dataArray[1].replace("s=","");//解析状态代码
|
if(state==1 || state==7){
|
|
// alert('和客户通话了');
|
|
}else if(state==20){
|
|
// alert('坐席提起话机了');
|
|
}else if(state==2 || state==3 || state==12 || state==13){
|
|
// $.ajax({
|
// type: 'post',
|
// url: '${base}/business/pages/traffic/updateTraffic.html',
|
// data: {"sn": sn},
|
// async: false,
|
// dataType: 'json',
|
// success: function (data) {
|
// },
|
// error: function () {
|
// alert('服务端异常');
|
// }
|
|
// })
|
// alert('通话结束');
|
|
|
}
|
}//实时状态 判断结束
|
|
else
|
{
|
/*
|
当..\v\WebRoot\sys_config.xml中弹屏格式popVer配置为t1v1或不配置时,来电信息一般为以下模式:
|
来电通道号,来电号码,备用字段,来电时间,用户按键信息
|
如:2,02586307627,1000,1208674344953,NA
|
注意:来电时间是当前时间和1970-01-01之间的时间差,毫秒为单位
|
|
当..\v\WebRoot\sys_config.xml中弹屏格式popVer配置为t1v2时,来电信息一般为以下模式:
|
H=数据包类型及版本,ch=来电通道号,ph=来电号码,id=本次来电唯一标识,tm=来电时间YYMMDDHHMMSS,dm=用户按键信息。
|
如:H=t1v2,ch=2,ph=86307627,id=12157703713752,tm=080711175931,dm=0;
|
|
详细格式说明参见LQ-Connect软件对接技术手册章节《来电字符串说明》。
|
*/
|
|
//新打开的窗口,将以下http://www.baidu.com/s=呼叫中心系统 小灵呼& 替换成你的URL
|
//在你的URL,比如jsp中 reqeust.getParameter("xxx") 即可获取来电字串信息,可对其进行进一步的加工处理。
|
|
// alert("来电字符串="+req); //可以注释本行,获取到的来电字串
|
// alert("可将刚才的来电字符串窗口改为 弹出您自己的程序窗口"); //可以注释本行
|
$.ajax({
|
type: 'post',
|
url: '${base}/business/pages/traffic/saveTraffic.html',
|
data: {"req": req},
|
async: false,
|
dataType: 'json',
|
success: function (data) {
|
var dataArray1 = req.split(",");//以,号切割
|
|
sn = dataArray1[7].replace("sn=","");
|
var tra_id=data.id;
|
var mobile=data.mobile;
|
window.top.openDialog("10","通话弹屏",
|
{},
|
{"width":"80","height":"90"},
|
[],
|
"${base}/business/pages/traffic/trafficAddIncident.html?tra_id="+tra_id+"&mobile="+mobile);
|
},
|
error: function () {
|
alert('服务端异常');
|
}
|
|
})
|
|
|
// var url="http://www.baidu.com/s?wd=呼叫中心系统 小灵呼&xxx="+reqURI;
|
// var parms='height=700, width=600, top=0, left=400,toolbar=no,menubar=no,titlebar=no, location=no, status=no,scrollbars=yes,titlebar=no, resizable=yes';
|
|
// var winobj=open(url,"",parms);
|
}
|
}
|
[/#if]
|
</script>
|