cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<!--<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>通话弹屏连接&nbsp;</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>