412 lines
20 KiB
Plaintext
412 lines
20 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@using WX.CRM.Model.Entity;
|
|
@{
|
|
Layout = null;
|
|
string WeiXin_WebChatAssistant = ViewBag.WeiXin_WebChatAssistant;
|
|
|
|
}
|
|
<!DOCTYPE html>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11;IE=10; IE=9; IE=8; IE=7; IE=EDGE">
|
|
<html>
|
|
<head>
|
|
<title>客户关系管理系统</title>
|
|
<meta name="viewport" content="width=device-width" />
|
|
<script src="@Url.Content("~/Scripts/jquery.min.js")" type="text/javascript"></script>
|
|
<script src="~/Scripts/json2.js"></script>
|
|
<script src="@Url.Content("~/Scripts/jquery.easyui.min.js")" type="text/javascript"></script>
|
|
<script src="@Url.Content("~/Scripts/jquery.easyui.plus.js")"></script>
|
|
@Styles.Render("~/Content/themes/blue/css")
|
|
<link href="~/Content/Site.css" rel="stylesheet" />
|
|
@*@Styles.Render("~/Content/css")*@
|
|
@Scripts.Render("~/bundles/home")
|
|
<script type="text/javascript">
|
|
window.console = window.console || (function () {
|
|
var c = {}; c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile
|
|
= c.clear = c.exception = c.trace = c.assert = function () { };
|
|
return c;
|
|
})();
|
|
</script>
|
|
<script src="@Url.Content("~/Scripts/op/main_op.js")"></script>
|
|
<script src="~/Scripts/jquery.tree.js"></script>
|
|
<link href="~/Content/tree/css/tree.css" rel="stylesheet" />
|
|
<link href="~/Content/MainMenu.css" rel="stylesheet" />
|
|
</head>
|
|
<body class="easyui-layout" style="margin:0; padding:0;">
|
|
@*<div id="OverTimeLogin" class="easyui-dialog" data-options="closed:true,modal:true">
|
|
<iframe width="726px" scrolling="no" height="497px" frameborder="0" id="iOverTimeLogin"></iframe>
|
|
</div>*@
|
|
@{
|
|
<input id="hidChooseId" type="hidden" value="@ViewBag.ChooseID" />
|
|
if (ViewBag.isLiteHeadParameter == "true" && ViewBag.IsLiteHead == "true")//IsLiteHead=true:为精简版
|
|
{
|
|
<div id="comtreenb" data-options="region:'west',split:true,title:' ',tools:'#lefttoptool',collapsible:true" style="width: 200px; height:100%; padding-top: 2px; background-color:#fff; overflow:auto">
|
|
<div ntype="treeGroup" id="RightTree@(ViewBag.ChooseID)" style=" background-color:#fff;">
|
|
<div class="panel-loading">加载中...</div>
|
|
</div>
|
|
</div>
|
|
<div id="lefttoptool">
|
|
@foreach (BAS_MODULEMENU model in ViewBag.MainMenu as List<BAS_MODULEMENU>)
|
|
{
|
|
<div nid="@(model.MODULEMENUID)" onclick="showModule(@(model.MODULEMENUID))" nclass="@(model.IMAGEURL.Replace(".png", "_min_toolHover"))" title="@(model.MNAME) " class="@(model.IMAGEURL.Replace(".png","_min")) toolBarClass"></div>
|
|
}
|
|
</div>
|
|
<div data-options="region:'south',border:false" style="height: 20px;">
|
|
<div class="define-bottom">
|
|
@@坐席精简版 <a href="/Home/Switchlayouts?IsLiteHead=false" title="切换成完整版布局">切换布局</a>
|
|
</div>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div data-options="region:'north',border:false,split:true" style="height: 60px; overflow:hidden;margin:0;padding:0;">
|
|
<div class="define-head" style="padding:0; margin:0;">
|
|
|
|
<div class="define-logo">
|
|
@*<img src="~/Content/Images/JMDLogo.png" width="170" height="49" />*@
|
|
<img src="~/Content/Images/@ViewBag.Logo" width="170" height="49" />
|
|
</div>
|
|
@*<div style=" width: 35px; height: 10px; border-left: 1px solid #1E71B1; float: left;"></div>*@
|
|
<div class="main-Menu" style="float:left;">
|
|
|
|
<ul id="topnav" style="float:left;margin:0;font-size:12px;padding-left:30px;">
|
|
@foreach (BAS_MODULEMENU model in ViewBag.MainMenu as List<BAS_MODULEMENU>)
|
|
{
|
|
<li class="list">
|
|
<a href="javascript:void(0);" nid="@(model.MODULEMENUID)" class='@(model.MODULEMENUID == ViewBag.ChooseID ? "onnav" : "")'>
|
|
<span class="nc" style="background-image:url('/Content/Images/Menu/@(model.IMAGEURL)');"></span>
|
|
@(model.MNAME)
|
|
</a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
@{
|
|
bool isShowCTILogout = false;
|
|
}
|
|
@if (ViewBag.CTI_VER == (int)WX.CRM.Model.Enum.CTI_VER.深海捷移动坐席 || ViewBag.CTI_VER == (int)WX.CRM.Model.Enum.CTI_VER.深海捷固定坐席)
|
|
{
|
|
isShowCTILogout = true;
|
|
@Html.Partial("SHJCtiTools")
|
|
}
|
|
@if (ViewBag.CTI_VER == (int)WX.CRM.Model.Enum.CTI_VER.和声)
|
|
{
|
|
isShowCTILogout = true;
|
|
@Html.Partial("BXTCtiTools")
|
|
}
|
|
@if (ViewBag.CTI_VER == (int)WX.CRM.Model.Enum.CTI_VER.艾讯)
|
|
{
|
|
isShowCTILogout = true;
|
|
@Html.Partial("AXCtiTools")
|
|
}
|
|
@if (ViewBag.CTI_VER == (int)WX.CRM.Model.Enum.CTI_VER.艾讯new)
|
|
{
|
|
isShowCTILogout = true;
|
|
@Html.Partial("AXCtiToolsNew")
|
|
}
|
|
<div class="define-account" style="font-size:12px;">
|
|
|
|
<a href='javascript:ChildAddTab("产品讲解", "/Base/Case")' style="background:url(/Content/Images/icon/help.png) no-repeat; padding-left:15px; padding-right:15px;">产品讲解</a>
|
|
|
|
@if (WeiXin_WebChatAssistant == "true")
|
|
{
|
|
<a href='javascript:ChildAddTab("微信助手", "/TS/WebChatAssistant/Index", "icon-WebChat")'>微信助手</a>
|
|
|
|
}
|
|
|
|
@if (System.Configuration.ConfigurationManager.AppSettings["ShowAppletChat"] != null && System.Configuration.ConfigurationManager.AppSettings["ShowAppletChat"] == "true")
|
|
{
|
|
foreach (var item in ViewBag.WaeppAccount as Dictionary<string, string>)
|
|
{
|
|
<a href="javascript:OpenWindow('@item.Key','@item.Value')">[@item.Value]</a>
|
|
}
|
|
@*<a href="javascript:OpenWindow('gh_70ea95172802','大数据量化炒股')">[大数据量化炒股]</a>
|
|
<a href="javascript:OpenWindow('gh_78cd13196d2a','爱撩板的趋势迷妹')">[爱撩板的趋势迷妹]</a>
|
|
<a href="javascript:OpenWindow('gh_096d7b6a4e5e','证星量化炒股')">[证星量化炒股]</a>*@
|
|
}
|
|
|
|
|
|
|
|
欢迎您!@ViewBag.Name
|
|
-
|
|
@ViewBag.Eid
|
|
|
|
|
<a id="UserInfo" href="javascript:void(0)">我的桌面</a>
|
|
|
|
|
@if (isShowCTILogout == true)
|
|
{
|
|
@Html.ActionLink("注销", "LogOff", "Account", "Home", new { @onclick = "return logoutcti();" })
|
|
}
|
|
else
|
|
{
|
|
@Html.ActionLink("注销", "LogOff", "Account")
|
|
}
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="comtreenb" data-options="region:'west',split:true,title:'@ViewBag.Title'" style="width: 200px; height:100%; padding-top: 2px; background-color:#fff; overflow:auto">
|
|
<div ntype="treeGroup" id="RightTree@(ViewBag.ChooseID)" style=" background-color:#fff;">
|
|
<div class="panel-loading">加载中...</div>
|
|
</div>
|
|
</div>
|
|
<div data-options="region:'south',border:false" style="height: 20px;">
|
|
<div class="define-bottom">
|
|
@if (ViewBag.isLiteHeadParameter == "true")
|
|
{
|
|
<div> @@坐席完整版 <a href="/Home/Switchlayouts?IsLiteHead=true" title="切换成精简版布局">切换布局</a></div>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
|
|
|
|
<div data-options="region:'center',border:false">
|
|
<div id="mainTab" class="easyui-tabs" data-options="fit:true">
|
|
<div title="我的桌面" data-options="closable:@ViewBag.IsFreeze_wdzm" style="overflow: hidden; background:#fff">
|
|
<iframe id="ifMain" scrolling="auto" frameborder="0" src="" style="width: 100%; height: 100%;"></iframe>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="tab_menu" class="easyui-menu" style="width: 150px;">
|
|
<div id="tab_menu-tabrefresh" data-options="iconCls:'icon-reload'">
|
|
刷新
|
|
</div>
|
|
<div id="tab_menu-openFrame">
|
|
在新的窗体打开
|
|
</div>
|
|
<div id="tab_menu-tabcloseall">
|
|
关闭所有
|
|
</div>
|
|
<div id="tab_menu-tabcloseother">
|
|
关闭其他标签页
|
|
</div>
|
|
<div class="menu-sep">
|
|
</div>
|
|
<div id="tab_menu-tabcloseright">
|
|
关闭右边
|
|
</div>
|
|
<div id="tab_menu-tabcloseleft">
|
|
关闭左边
|
|
</div>
|
|
<div id="tab_menu-tabclose" data-options="iconCls:'icon-remove'">
|
|
关闭
|
|
</div>
|
|
<div id="menu" class="easyui-menu" style="width: 150px;">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
<script type="text/javascript">
|
|
//打开聊天界面
|
|
function OpenWindow(accountnum, accountName) {
|
|
///这里打开 证星量化炒股
|
|
window.open('/home/appletchat?accountnum=' + accountnum + "&accountName=" + accountName, 'chatwindow_' + accountnum, 'top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
|
|
}
|
|
$("#UserInfo").click(function () {
|
|
ChildAddTab("我的桌面", "/Home/WelCome", "");
|
|
});
|
|
function linkToItem(url) {
|
|
ChildAddTab("待办事项", url, "");
|
|
}
|
|
function ShowResDetial(url) {
|
|
ChildAddTab("客户详细", url, "");
|
|
}
|
|
function linkToMyAllocatedRes(url) {
|
|
ChildAddTab("系统分配资源", url, "");
|
|
}
|
|
function linkToMyActivityResDsb(url) {
|
|
ChildAddTab("经理分配资源", url, "");
|
|
}
|
|
function linkToWeiXinJianKong(url) {
|
|
ChildAddTab("工作微信监控", url, "");
|
|
}
|
|
function linkToWeiXinZJ(url) {
|
|
ChildAddTab("合规信息统计", url, "");
|
|
}
|
|
function linkToWeiXinZG(url) {
|
|
ChildAddTab("微信聊天违规信息", url, "");
|
|
}
|
|
function linkToWeiXinGR(url) {
|
|
ChildAddTab("我的违规记录", url, "");
|
|
}
|
|
function linkToWeiXinHB(url) {
|
|
ChildAddTab("微信红包", url, "");
|
|
}
|
|
function linkToActivityStOrEx(url) {
|
|
ChildAddTab("诊股资源回收", url, "");
|
|
}
|
|
function linkToComplainCustomer(url) {
|
|
ChildAddTab("客户投诉列表", url, "");
|
|
}
|
|
function linkToActivityStOrEx(url) {
|
|
ChildAddTab("资源统计及输出", url, "");
|
|
}
|
|
$(function () {
|
|
$("#ifMain").attr("src", "/Home/WelCome");
|
|
var doItmexm = null;
|
|
|
|
function doItem() {
|
|
$.post("/Csvr/ToDoItem/DoItems", function (data) {
|
|
if (data.result) {
|
|
var strs = "";
|
|
var msgs = data.messages;
|
|
var urls = data.url;
|
|
var width = "250";
|
|
var mycars = new Array();
|
|
var xm = 0;
|
|
for (var i = 0; i < msgs.length; i++) {
|
|
if (urls[i] && urls[i].indexOf("Csvr/ToDoItem/Index") > -1) {
|
|
strs += '<a class="aLink" href="javascript:void(0)" onclick="linkToItem(\'' + urls[i] + '\')">' + msgs[i] + "</a>";
|
|
}
|
|
if (urls[i] && urls[i].indexOf("Csvr/MsgOpenAccount/RedirectToCustomerDetial") > -1) {
|
|
var $div = "<div style='width:150px;height:auto;'></div>";
|
|
var resIds = msgs[i].split("#");
|
|
strs += "<div style='width:216px;height:auto;white-space:normal;'><span>新开户资源:</span>";
|
|
var url = urls[i];
|
|
$.each(resIds, function (i, n) {
|
|
if (n) {
|
|
var _url = url;
|
|
_url = _url + "?resid=" + n + "&isView=0";
|
|
strs += '<a style="margin-left:10px;" class="aLink" href="javascript:ShowResDetial(\'' + _url + '\')">' + n + "</a>";
|
|
}
|
|
});
|
|
strs += "</div>";
|
|
}
|
|
|
|
if (urls[i] && urls[i].indexOf("Res/Allocate/MyAllocatedRes") > -1) {
|
|
strs += '<p><a href="javascript:void(0)" onclick="linkToMyAllocatedRes(\'' + urls[i] + '\')">' + msgs[i] + "</a></p>";
|
|
}
|
|
|
|
if (urls[i] && urls[i].indexOf("Res/Distribute/MyActivityResDsb") > -1) {
|
|
strs += '<p><a href="javascript:void(0)" onclick="linkToMyActivityResDsb(\'' + urls[i] + '\')">' + msgs[i] + "</a></p>";
|
|
}
|
|
|
|
if (urls[i] && urls[i].indexOf("WeiXin/WorkAccount/AliveIndex") > -1) {
|
|
strs += '<a href="javascript:void(0)" onclick="linkToWeiXinJianKong(\'' + urls[i] + '\')">' + msgs[i] + "</a>";
|
|
}
|
|
|
|
if (urls[i] && urls[i].indexOf("/Quality/ComplainCustomer/Index") > -1) {
|
|
if (msgs[i] != "") {
|
|
strs += '<a href="javascript:void(0)" onclick="linkToComplainCustomer(\'' + urls[i] + '\')" style="color:red">' + msgs[i] + "</a>";
|
|
}
|
|
}
|
|
|
|
if (urls[i] && urls[i].indexOf("Res/Activity/ActivityStOrEx") > -1) {
|
|
if (msgs[i] != "") {
|
|
strs += '<a href="javascript:void(0)" onclick="linkToActivityStOrEx(\'' + urls[i] + '\')">' + msgs[i] + "</a>";
|
|
}
|
|
}
|
|
|
|
if (urls[i] && urls[i].indexOf("/WeiXin/MyIllegalRecord/LookNotice?type=1") > -1) {
|
|
mycars[xm] = '<a class="aLink" href="javascript:void(0)" style="width:200px;" onclick="linkToWeiXinZJ(\'' + urls[i] + '\')">' + msgs[i] + " 查看" + "</a>";
|
|
width = "250";
|
|
xm++;
|
|
}
|
|
|
|
if (urls[i] && urls[i].indexOf("/WeiXin/MyIllegalRecord/LookNotice?type=2") > -1) {
|
|
mycars[xm] = '<a class="aLink" href="javascript:void(0)" style="width:200px;" onclick="linkToWeiXinZG(\'' + urls[i] + '\')">' + msgs[i] + " 查看" + "</a>";
|
|
width = "250";
|
|
xm++;
|
|
}
|
|
|
|
if (urls[i] && urls[i].indexOf("/WeiXin/MyIllegalRecord/LookNotice?type=3") > -1) {
|
|
mycars[xm] = '<a class="aLink" href="javascript:void(0)" style="width:200px;" onclick="linkToWeiXinGR(\'' + urls[i] + '\')">' + msgs[i] + " 查看" + "</a>";
|
|
width = "250";
|
|
xm++;
|
|
}
|
|
|
|
if (urls[i] && urls[i].indexOf("/Weixin/WorkAccount/ShowHongBao") > -1) {
|
|
mycars[xm] = '<a class="aLink" href="javascript: void (0)" style="width: 200px; " onclick="linkToWeiXinHB(\'' + urls[i] + '\')">' + msgs[i] + " 查看" + "</a>";
|
|
width = "250";
|
|
xm++;
|
|
}
|
|
|
|
if (urls[i] && urls[i].indexOf("/Res/Activity/LookNotice") > -1) {
|
|
mycars[xm] = '<a class="aLink" href="javascript: void (0)" style="width: 200px; " onclick="linkToActivityStOrEx(\'' + urls[i] + '\')">' + msgs[i] + " 查看" + "</a>";
|
|
width = "250";
|
|
xm++;
|
|
}
|
|
|
|
}
|
|
//console.log(doItmexm);
|
|
if (strs != "") {
|
|
//if (doItmexm != null)
|
|
// $(doItmexm).panel('close');
|
|
//doItmexm =
|
|
$.messager.show({
|
|
title: "提醒", msg: strs, height: 'auto', width: width, height: '120', timeout: 60000, showType: 'slide', style: {
|
|
left: '',
|
|
right: 5,
|
|
top: '',
|
|
bottom: -document.body.scrollTop - document.documentElement.scrollTop + 5
|
|
}
|
|
});
|
|
//$(".panel-tool-close").one("click", function () {
|
|
// doItmexm = null;
|
|
//});
|
|
}
|
|
for (var i = 0; i < mycars.length; i++) {
|
|
$.messager.show({
|
|
title: "提醒", msg: mycars[i], height: 'auto', width: width, height: '120', timeout: 60000, showType: 'slide', style: {
|
|
left: '',
|
|
right: 5,
|
|
top: '',
|
|
bottom: -document.body.scrollTop - document.documentElement.scrollTop + 5
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
//$.messageBox_set("提醒", strs, 10000);
|
|
}
|
|
// $.messageBox5s('提示', data.message);
|
|
}, "json");
|
|
setTimeout(doItem, 5 * 60 * 1000);//3分钟提示一次
|
|
}
|
|
setTimeout(doItem, 20 * 1000);
|
|
//setTimeout(doItem, 5 * 60 * 1000);
|
|
|
|
});
|
|
function SetTabsTitle(url, customername) {
|
|
var iframes = document.getElementsByTagName("iframe");
|
|
for (var i = 0; i < iframes.length; i++) {
|
|
if (url.indexOf(iframes[i].getAttribute("src")) > -1) {
|
|
var iframeIndex = $(iframes[i]).parent().parent().index();
|
|
var tabTitle = $("#mainTab .tabs-wrap .tabs li:eq(" + iframeIndex + ")").find(".tabs-closable");
|
|
if ($(tabTitle).html().indexOf(customername) == -1)
|
|
$(tabTitle).html(customername + "-" + $(tabTitle).html());
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
@if (ViewBag.CTI_VER == 4)
|
|
{
|
|
@*@Scripts.Render("~/Scripts/cti/cc-socket.js")*@
|
|
|
|
<script type="text/javascript">
|
|
//var axMixCallBack = function (data) {
|
|
// console.log("弹屏------" + JSON.stringify(data));
|
|
// mixcallback(data);
|
|
//}
|
|
//var cc = new Cc({
|
|
// exten: strFJH, //分机号
|
|
// password: '1234', //密码
|
|
// action: axMixCallBack, //自定义弹屏函数
|
|
// parameters: 'params' //自定义通道变量
|
|
//});
|
|
//cc.start();
|
|
</script>
|
|
}
|
|
@*实现跨域监听*@
|
|
<script>
|
|
window.addEventListener("message", receiveMessage, false);
|
|
function receiveMessage(event) {
|
|
console.log("收到消息了,该死的");
|
|
console.log(event);
|
|
if (event.data != null && event.data.url != null) {
|
|
ChildAddTab(event.data.name, event.data.url, event.data.icon)
|
|
}
|
|
|
|
}
|
|
</script> |