83 lines
2.6 KiB
Plaintext
83 lines
2.6 KiB
Plaintext
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = null;
|
|
}
|
|
<html>
|
|
<head>
|
|
<link href="~/Content/Common.css" rel="stylesheet" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<script src="~/Scripts/jquery-1.10.2.min.js"></script>
|
|
<style>
|
|
#myul {
|
|
display: flex;
|
|
padding: 0px;
|
|
}
|
|
|
|
#myul .layui-nav-item {
|
|
position: relative;
|
|
display: inline-block;
|
|
display: inline;
|
|
color: black;
|
|
}
|
|
|
|
.myUL {
|
|
list-style: none;
|
|
}
|
|
|
|
.myUL li {
|
|
height: 14px;
|
|
padding: 0;
|
|
font-size: 12px !important;
|
|
line-height: 12px;
|
|
margin-top: -20px;
|
|
color: white !important;
|
|
}
|
|
|
|
.myUL {
|
|
}
|
|
|
|
.XiuXianIcon {
|
|
margin-bottom: 3px !important;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ul id="myul">
|
|
@Html.Partial("AXCtiToolsNewLayout2")
|
|
</ul>
|
|
<script>
|
|
if (window["context"] == undefined) {
|
|
if (!window.location.origin) {
|
|
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
|
|
}
|
|
window["context"] = location.origin + "/V6.0";
|
|
}
|
|
|
|
window.top.postMessage({ mytoken: "@Request.QueryString["mytoken"]" }, "*");
|
|
window.addEventListener("message", receiveMessage, false);
|
|
function receiveMessage(event) {
|
|
console.log("收到CTI通知");
|
|
console.log(event);
|
|
if (event.data != null && event.data.typecall) {
|
|
|
|
callBC(event.data.objZero, event.data.msg, event.data.isbc, event.data.callout, event.data.LASTNUM3);
|
|
}
|
|
}
|
|
function callBC(objZero, msg, isbc, callout, LASTNUM3) {
|
|
var txtLASTNUM3 = getCtiObj("txtLASTNUM3");
|
|
getCtiObj("txtCallingNo").value = "";
|
|
getCtiObj("txtTelNO").value = objZero + msg;
|
|
getCtiObj("txtTelNumber").value = objZero + msg;
|
|
if (txtLASTNUM3)
|
|
txtLASTNUM3.value = LASTNUM3;
|
|
if ((isbc && callout && callout.length > 0) || (callout && callout.length > 0))//需要增加出局号码
|
|
getCtiObj("txtCallingNo").value = callout;
|
|
else if (callout && callout.length > 0)
|
|
getCtiObj("txtCallingNo").value = callout;
|
|
getCtiObj("txtTelType").value = 1;
|
|
getCtiObj("btnCall").click();
|
|
}
|
|
|
|
</script>
|
|
</body>
|
|
</html> |