地铁二期项目正式开始

Index.cshtml 86KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811
  1. @using YTSoft.BaseCallCenter.Model;
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>郑州市轨道交通全媒体客服平台</title>
  7. <meta name="renderer" content="webkit">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  9. <meta http-equiv="Access-Control-Allow-Origin" content="*">
  10. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  12. <meta name="apple-mobile-web-app-capable" content="yes">
  13. <meta name="format-detection" content="telephone=no">
  14. <link rel="icon" href="../favicon.ico">
  15. <link type="text/css" href="/Content/layui/css/layui.css" rel="stylesheet" />
  16. <link type="text/css" href="/Content/layui/css/modules/layui-icon-extend/iconfont.css" rel="stylesheet" />
  17. <link type="text/css" href="/Content/css/index.css" rel="stylesheet" />
  18. <link type="text/css" href="/Content/css/myindex.css" rel="stylesheet" />
  19. <link type="text/css" href="/Content/css/font-awesome/css/font-awesome.css" rel="stylesheet" />
  20. <script src="/Content/js/jquery.min.js"></script>
  21. <script src="/Content/js/ytsoft.config.js"></script>
  22. <script src="~/Content/js/ytsoft.http.js"></script>
  23. <script src="/Content/seatformjs/ocxopt.js"></script>
  24. <script src="/Content/js/callSocket.js"></script>
  25. <script type="text/javascript">
  26. //监控获取指定坐席状态结果事件
  27. function IframeSetAgentState(agentid, state) {
  28. try {
  29. window.frames["frame_zxjkgl"].GetState(agentid, state);
  30. }
  31. catch (e) {
  32. }
  33. }
  34. ///转移
  35. function PhoneCallZY(tel) {
  36. try {
  37. var callinphone = document.getElementById("forZYnumber").value;
  38. OCX_TransferToPhone(tel, "");
  39. }
  40. catch (e) {
  41. //$.ligerDialog.error(e.message);
  42. }
  43. }
  44. ///多方通话
  45. function PhoneCallDFTH(tel) {
  46. try {
  47. var callinphone = document.getElementById("forZYnumber").value;
  48. OCX_ThirdParty(tel, "");
  49. }
  50. catch (e) {
  51. //$.ligerDialog.error(e.message);
  52. }
  53. }
  54. ///工单接单时候调用的外呼方法
  55. function PhoneCallOutJD(type, tel, workorderid) {
  56. }
  57. function addCallOutInfo() {
  58. var tel = OCX_GetCalleeNumber(document.getElementById("txtAgentId").value);
  59. becallout = true;
  60. becallcome = false;
  61. CallOutRecordIsWrite = true;
  62. //添加外呼记录
  63. var userid = document.getElementById("txtAgentId").value;
  64. var usercode = document.getElementById("txtLabourwork").value;
  65. var username = document.getElementById("txtAgentName").value;
  66. var extnumber = document.getElementById("txtPhoneNum").value;
  67. var timeno = new Date().getTime();
  68. username = encodeURI(username);
  69. $.ajax({
  70. type: 'get',
  71. url: '/OCXOpt/OCXOptCallAjax/?optaction=callout&callernum=' + tel + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber" + extnumber + "&timeno=" + timeno,
  72. dataType: 'html',
  73. success: function (res) {
  74. try {
  75. var DialIsOK = false;
  76. var arr = res.split('|');
  77. document.getElementById("CallHjbh").value = arr[2];
  78. telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=zhaijiEvent&callid=" + parent.document.getElementById("CallHjbh").value); //更新摘机事件
  79. } catch (e) {
  80. }
  81. }
  82. });
  83. }
  84. ///外呼
  85. function PhoneCallOut(type, tel) {
  86. var usercode = document.getElementById("txtLabourwork").value;
  87. var extnumber = document.getElementById("txtPhoneNum").value;
  88. console.log("9"+tel.toString())
  89. $.ajax({
  90. type: 'get',
  91. url: '/CallRecord/GetCallOutprefix/?phone='+tel,
  92. dataType: 'html',
  93. success: function (res) {
  94. //"Type":"MakeCall","AgentID":"8002","AgentExten":"1001","DestinationNumber":"9018937726571"
  95. console.log(res)
  96. obj = {};
  97. obj.Type = "MakeCall";
  98. obj.AgentID = usercode;
  99. obj.AgentExten = extnumber;
  100. obj.AgentGroup = "12";
  101. obj.Header = "9";
  102. obj.DestinationNumber = res.toString()+tel.toString();
  103. Send();
  104. }
  105. });
  106. }
  107. var hfcallstate = false;
  108. var outtype = "";
  109. function SetCallState(state) {
  110. hfcallstate = state;
  111. }
  112. function GetCallOutHFRes() {
  113. if (hfcallstate) {
  114. hfcallstate = false;
  115. return true;
  116. }
  117. else {
  118. return false;
  119. }
  120. }
  121. ///外呼
  122. function PhoneCallOutHF(type, tel, hfid) {
  123. becallout = true;
  124. becallcome = false;
  125. hfcallstate = false;
  126. CallOutRecordIsWrite = true;
  127. outtype = "hf";
  128. //添加外呼记录
  129. var userid = document.getElementById("txtAgentId").value;
  130. var usercode = document.getElementById("txtLabourwork").value;
  131. var username = document.getElementById("txtAgentName").value;
  132. var extnumber = document.getElementById("txtPhoneNum").value;
  133. var timeno = new Date().getTime();
  134. username = encodeURI(username);
  135. layui.layer
  136. //$.ligerDialog.waitting('开始呼叫...');
  137. $.ajax({
  138. type: 'get',
  139. url: '/OCXOpt/OCXOptCallAjax/?optaction=callouthf&callid=' + hfid + '&callernum=' + tel + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber" + extnumber + "&timeno=" + timeno,
  140. dataType: 'html',
  141. success: function (res) {
  142. try {
  143. var DialIsOK = false;
  144. var arr = res.split('|');
  145. document.getElementById("CallHjbh").value = arr[2];
  146. //成功执行外呼叫
  147. if (arr[0] == "1") { //呼叫内部(座席)电话
  148. //2015-04-20
  149. becallout = true;
  150. becallcome = false;
  151. DialIsOK = OCX_CallOut(5, "", arr[1]);
  152. }
  153. else { //呼叫外部电话
  154. DialIsOK = OCX_CallOut(5, "", arr[1]);
  155. }
  156. if (DialIsOK != true) {
  157. alert('外呼失败');
  158. //$.ligerDialog.error('外呼失败');
  159. }
  160. } catch (e) {
  161. //$.ligerDialog.error(e.message);
  162. }
  163. //$.ligerDialog.closeWaitting();
  164. }
  165. });
  166. }
  167. function OptClick(name) {
  168. var obj = document.getElementById(name);
  169. if (obj.attributes["ostate"].value != 0) {
  170. switch (name) {
  171. case "gd":
  172. button_ReleaseAnswer();
  173. //挂断
  174. break;
  175. case "wh":
  176. //外呼先示忙
  177. //AgentBusy();
  178. //otype 1外呼 2转移 3多方通话
  179. OpenWindowShow1('telmanage/calloutopt.aspx?otype=1', '电话外呼', 800, 500);
  180. break;
  181. case "zm":
  182. //示忙
  183. AgentBusy();
  184. break;
  185. case "zx":
  186. AgentFree();
  187. break;
  188. case "dfth":
  189. //多方会话
  190. OpenWindowShow1('telmanage/calloutopt.aspx?otype=3', '多方通话', 800, 500);
  191. break;
  192. case "zy":
  193. //转移
  194. OpenWindowShow1('telmanage/calloutopt.aspx?otype=2', '电话转移', 800, 500);
  195. break;
  196. case "bc":
  197. //保持
  198. button_KeepCall(); //保持方法
  199. break;
  200. case "jh":
  201. //接回
  202. button_GetKeepCall();
  203. break;
  204. case "qr":
  205. //签入
  206. button_QRCall();
  207. break;
  208. case "qc":
  209. //签出
  210. button_QCCall();
  211. break;
  212. }
  213. }
  214. }
  215. //转移
  216. function ZYhj(callnumber) {
  217. //var zyzj = document.getElementById("forZYnumber").value;
  218. debugger
  219. var usercode = document.getElementById("txtLabourwork").value;
  220. var extnumber = document.getElementById("txtPhoneNum").value;
  221. if (callnumber != "") {
  222. obj = {};
  223. obj.Type = "Transfer";
  224. obj.TaskType = "0"; //0:拨号外呼;1:未接来电外呼;2:回访外呼
  225. obj.TaskPhoneID = ""; //回访的电话ID
  226. obj.AgentID = usercode;
  227. obj.AgentExten = extnumber;
  228. obj.DestinationNumber = callnumber;
  229. Send();
  230. //Form_setWinfromenble("false", "false", "false", "false", "false", "false", "false", "false", "false", "false");
  231. }
  232. else {
  233. alert("转移失败!");
  234. }
  235. }
  236. //释放呼叫 2.1.8
  237. function button_ReleaseAnswer() {//挂机
  238. var usercode = document.getElementById("txtLabourwork").value;
  239. var extnumber = document.getElementById("txtPhoneNum").value;
  240. console.log("挂断")
  241. obj = {};
  242. obj.Type = "DropCall";
  243. obj.AgentID = usercode;
  244. obj.AgentExten = extnumber;
  245. Send();
  246. try {
  247. //MydTransToIVR();
  248. }
  249. catch (e) { }
  250. try {
  251. //var rtn = OCX_Hangup();
  252. }
  253. catch (e) { }
  254. }
  255. //满意度
  256. function MydTransToIVR() {
  257. var cid = document.getElementById("CallHjbh").value;
  258. var rtn = OCX_TransferToIVR("2", cid);
  259. }
  260. //转回IVR
  261. function AgentTransToIVR() {
  262. var usercode = document.getElementById("txtLabourwork").value;
  263. var extnumber = document.getElementById("txtPhoneNum").value;
  264. obj = {};
  265. obj.Type = "TurnIvr";
  266. obj.AgentID = usercode;
  267. obj.AgentExten = extnumber;
  268. obj.AgentGroup = "12";
  269. obj.IvrName = "THZIVR";
  270. obj.IvrPos = "1";
  271. ivrState = true;
  272. Send();
  273. //var cid=document.getElementById("CallHjbh").value;
  274. //var rtn = OCX_TransferToIVR("2", cid);
  275. }
  276. //座席示忙 2.1.12
  277. function AgentBusy() {
  278. //将座席状态设置为忙态。
  279. //var rtn = OCX_SetBusy();
  280. //2014-10-22
  281. //becallout = true;
  282. //becallcome = false;
  283. //rgmstate = true;
  284. /*2020-09-24miaofuhao注释*/
  285. var usercode = document.getElementById("txtLabourwork").value;
  286. var extnumber = document.getElementById("txtPhoneNum").value;
  287. if($(".fa-pause").hasClass("selectClass")){
  288. obj = {};
  289. obj.Type = "SayBusy";
  290. obj.AgentID = usercode;
  291. obj.AgentExten = extnumber;
  292. obj.AgentGroup = "12";
  293. obj.AgentType = "0";
  294. Send();
  295. }else{
  296. layer.msg('当前是置忙状态', { icon: 5, time: 2000 });
  297. }
  298. /*2020-09-24miaofuhao注释*/
  299. }
  300. //座席示闲 2.1.13
  301. function AgentFree() {
  302. //将座席状态设置为闲态。
  303. //var rtn = OCX_SetFree();
  304. //2014-10-22
  305. //becallout = false;
  306. //becallcome = true;
  307. //rgmstate = false;
  308. //return rtn;
  309. /*2020-09-24miaofuhao注释*/
  310. var usercode = document.getElementById("txtLabourwork").value;
  311. var extnumber = document.getElementById("txtPhoneNum").value;
  312. if($(".fa-play").hasClass("selectClass")){
  313. obj = {};
  314. obj.Type = "SayFree";
  315. obj.AgentID = usercode;
  316. obj.AgentExten = extnumber;
  317. obj.AgentGroup = "12";
  318. obj.AgentType = "0";
  319. Send();
  320. }else{
  321. //layer.msg('当前是置闲状态', { icon: 5, time: 2000 });
  322. }
  323. /*2020-09-24miaofuhao注释*/
  324. }
  325. //保持呼叫 2.1.17
  326. function button_KeepCall() {
  327. //该方法把座席正在通话的普通语音呼叫保持(只对语音呼叫有效)。
  328. var usercode = document.getElementById("txtLabourwork").value;
  329. var extnumber = document.getElementById("txtPhoneNum").value;
  330. obj = {};
  331. obj.Type = "Hold";
  332. obj.AgentID = usercode;
  333. obj.AgentExten = extnumber;
  334. Send();
  335. }
  336. //取保持 2.1.18
  337. function button_GetKeepCall() {
  338. //查询座席当前保持的所有语音呼叫
  339. var usercode = document.getElementById("txtLabourwork").value;
  340. var extnumber = document.getElementById("txtPhoneNum").value;
  341. obj = {};
  342. obj.Type = "Retrieve";
  343. obj.AgentID = usercode;
  344. obj.AgentExten = extnumber;
  345. Send();
  346. }
  347. function buttonCallNew(telNum) {
  348. becallout = true;
  349. becallcome = false;
  350. var strHjbhout = AjaxPost("../WinIVR/GetAjaxPageInf.aspx?PgType=3&tel=" + telNum); //呼叫编号
  351. document.getElementById("CallHjbh").value = strHjbhout;
  352. //判断电话是本地还是外地的
  353. var callNumberNew = "";
  354. var res = _framepage_headframe.getPhone(telNum);
  355. if (res != "") {
  356. callNumberNew = res.value;
  357. }
  358. button_CallOut(callNumberNew, strHjbhout);
  359. }
  360. //外呼事件 2.1.7
  361. function button_CallOut(callnumber, hjbh) {
  362. var res = true;
  363. var cssok = 0;
  364. cssok = OCX_CallOut(5, "", callnumber);
  365. if (cssok == "0") {
  366. res = true;
  367. }
  368. else {
  369. res = false;
  370. }
  371. return res;
  372. }
  373. //重新登录
  374. function resetlogin() {
  375. var bol = window.confirm("确定要重新登录吗?");
  376. if (bol) {
  377. if (document.getElementById("txtIsAgent").value == "true") {
  378. //button_QCCallNew();
  379. }
  380. window.open("../SignIn.aspx", "_top");
  381. }
  382. }
  383. //退出方法
  384. function relogout() {
  385. var bol = window.confirm("确定要退出登录吗?");
  386. if (bol) {
  387. AjaxPost("../WinIVR/GetAjaxPageInf.aspx?PgType=14");
  388. _framepage_headframe.UpdateLoginOutInfo(document.getElementById("hfUserId").value);
  389. top.close();
  390. }
  391. }
  392. </script>
  393. <script language="javascript" type="text/javascript">
  394. //退出系统
  395. function logout() {
  396. $.post("/Default/LoginOut/" , function (data, states) {
  397. if (states == "success") {
  398. if (data == "success") {
  399. layer.confirm('确定退出系统?', { icon: 3, title: '提示' }, function (index) {
  400. try {
  401. if (document.getElementById("txtIsAgent").value == "true") {
  402. OCX_AgentLogOut();
  403. }
  404. }
  405. catch (e) {
  406. }
  407. //do something
  408. location.href = "/Default/Login";
  409. layer.close(index);
  410. });
  411. }
  412. }
  413. })
  414. }
  415. </script>
  416. <script type="text/javascript">
  417. //电话操作
  418. var becallout = false; //呼出
  419. var becallcome = false; //来电
  420. var CallOutRecordIsWrite = false; //呼出记录是否已写入
  421. var rgmstate = false;//人工忙状态
  422. function ToIndex() {
  423. //document.getElementById("mainframe").src = "/Main/IndexCenter";
  424. //<i class="layui-icon">&#xe68e;</i> <cite openid="-1">首页</cite>
  425. var tabIndex = -1;
  426. $(".layui-tab-title.top_tab li").each(function () {
  427. if ($(this).attr("lay-id") == 'maintab_index') {
  428. tabIndex = 1;
  429. }
  430. })
  431. if (tabIndex != 1) {
  432. var timeno = new Date().getTime();
  433. //新增一个Tab项
  434. element.tabAdd('bodyTab', {
  435. title: '<i class=\"layui-icon\">&#xe68e;</i> <cite openid=\"-1\">首页</cite>'
  436. , content: '<iframe id=\"mainframe_index\" src=\"/Main/IndexCenter?timeno=' + timeno + '\"></iframe>'
  437. , id: 'maintab_index' //实际使用一般是规定好的id,这里以时间戳模拟下
  438. })
  439. }
  440. element.tabChange('bodyTab', 'maintab_index');
  441. element.tabMove(); //顶部窗口是否可滚动
  442. }
  443. //初始化页面
  444. function Init() {
  445. try {
  446. //禁止后退键 作用于Firefox、Opera
  447. document.onkeypress = banBackSpace;
  448. //禁止后退键 作用于IE、Chrome
  449. document.onkeydown = banBackSpace;
  450. }
  451. catch (e) { }
  452. //show();
  453. }
  454. //签出
  455. function button_QCCall() {
  456. try {
  457. var result = OCX_AgentLogOut();
  458. }
  459. catch (e) {
  460. document.getElementById("spanServerRes").innerHTML = e.message;
  461. }
  462. }
  463. function AgentQR() {
  464. //reconnect();
  465. var usercode = document.getElementById("txtLabourwork").value;
  466. var extnumber = document.getElementById("txtPhoneNum").value;
  467. var typed = document.getElementById("HdIswin"); //是否是坐席用户
  468. if (typed.value == "true") {
  469. var timeno = new Date().getTime();
  470. /*2020-09-24miaofuhao注释*/
  471. if(!$(".fa-phone").hasClass("selectClass")){
  472. Connect()
  473. }else{
  474. obj = {};
  475. obj.Type = "Logout";
  476. obj.AgentID = usercode;
  477. obj.AgentExten = extnumber;
  478. Send();
  479. //layer.msg('您已签入,无需重新签入', { icon: 5, time: 2000 });
  480. }
  481. /*2020-09-24miaofuhao注释*/
  482. InitPhoneBack();
  483. }
  484. else {
  485. document.getElementById("spanServerRes").innerHTML = "非坐席登录";
  486. }
  487. }
  488. function InitPhoneBack() {
  489. Initialize();
  490. }
  491. function Initialize() {
  492. try {
  493. var result = OCX_AgentLogin(document.getElementById("txtMostlyAddress").value, document.getElementById("txtServerPort").value, document.getElementById("txtLabourNo").value, document.getElementById("txtAgentGroup").value + "_" + document.getElementById("txtAgentRight").value, document.getElementById("txtPhoneNum").value);
  494. }
  495. catch (e) {
  496. document.getElementById("spanServerRes").innerHTML = e.message;
  497. }
  498. }
  499. //处理键盘事件 禁止后退键(Backspace)密码或单行、多行文本框除外
  500. function banBackSpace(e) {
  501. try {
  502. var ev = e || window.event; //获取event对象
  503. var obj = ev.target || ev.srcElement; //获取事件源
  504. var t = obj.type || obj.getAttribute('type'); //获取事件源类型
  505. //获取作为判断条件的事件类型
  506. var vReadOnly = obj.getAttribute('readonly');
  507. //处理null值情况
  508. vReadOnly = (vReadOnly == "") ? false : vReadOnly;
  509. //当敲Backspace键时,事件源类型为密码或单行、多行文本的,
  510. //并且readonly属性为true或enabled属性为false的,则退格键失效
  511. var flag1 = (ev.keyCode == 8 && (t == "password" || t == "text" || t == "textarea")
  512. && vReadOnly == "readonly") ? true : false;
  513. //当敲Backspace键时,事件源类型非密码或单行、多行文本的,则退格键失效
  514. var flag2 = (ev.keyCode == 8 && t != "password" && t != "text" && t != "textarea")
  515. ? true : false;
  516. //判断
  517. if (flag2) {
  518. return false;
  519. }
  520. if (flag1) {
  521. return false;
  522. }
  523. }
  524. catch (e) {
  525. return false;
  526. }
  527. }
  528. </script>
  529. <script type="text/javascript">
  530. function setLinkStatus(str) {
  531. //var imgServerState = document.getElementById("imgServerState");
  532. if (str == "True") {
  533. $('#imgServerState').attr('src', '/Content/images/server1.png');
  534. $('#imgServerState').attr('alt', '签入');
  535. // imgServerState.src = "/Content/images/server1.png";
  536. //imgServerState.alt = "签入";
  537. }
  538. else {
  539. $('#imgServerState').attr('src', '/Content/images/server0.png');
  540. $('#imgServerState').attr('alt', '未签入');
  541. //imgServerState.src = "/Content/images/server0.png";
  542. //imgServerState.alt = "未签入";
  543. }
  544. }
  545. function setAgentStatus(str) {
  546. //var imgAgentState = document.getElementById("imgAgentState");
  547. switch (str) {
  548. case "离席":
  549. $('#imgAgentState').attr('src', '/Content/images/zx2.png');
  550. $('#imgAgentState').attr('alt', '未登录');
  551. //imgAgentState.src = "/Content/images/zx2.png";
  552. //imgAgentState.alt = "未登录";
  553. break;
  554. case "空闲":
  555. $('#imgAgentState').attr('src', '/Content/images/zx1.png');
  556. $('#imgAgentState').attr('alt', '空闲');
  557. //imgAgentState.src = "/Content/images/zx1.png";
  558. //imgAgentState.alt = "空闲";
  559. break;
  560. case "忙":
  561. $('#imgAgentState').attr('src', '/Content/images/zx3.png');
  562. $('#imgAgentState').attr('alt', '忙');
  563. //imgAgentState.src = "/Content/images/zx3.png";
  564. //imgAgentState.alt = "忙";
  565. break;
  566. case "业务处理":
  567. $('#imgAgentState').attr('src', '/Content/images/zx4.png');
  568. $('#imgAgentState').attr('alt', '业务处理');
  569. //imgAgentState.src = "/Content/images/zx4.png";
  570. //imgAgentState.alt = "业务处理";
  571. break;
  572. }
  573. }
  574. //变换图标
  575. function Form_setWinfromenble(bl) {
  576. }
  577. function Form_setHW(bl) {
  578. if (bl == "True") {
  579. document.getElementById("txt_1").value = "1";
  580. document.getElementById("i_1").style.color = "#395E67";
  581. }
  582. else {
  583. document.getElementById("i_1").style.color = "#cccccc";
  584. document.getElementById("txt_1").value = "0";
  585. }
  586. }
  587. function Form_setZX(bl) {
  588. if (bl == "True") {
  589. document.getElementById("txt_7").value = "1";
  590. document.getElementById("i_7").style.color = "#395E67";
  591. }
  592. else {
  593. document.getElementById("i_7").style.color = "#cccccc";
  594. document.getElementById("txt_7").value = "0";
  595. }
  596. }
  597. function Form_setZM(bl) {
  598. if (bl == "True") {
  599. document.getElementById("txt_8").value = "1";
  600. document.getElementById("i_8").style.color = "#395E67";
  601. }
  602. else {
  603. document.getElementById("i_8").style.color = "#cccccc";
  604. document.getElementById("txt_8").value = "0";
  605. }
  606. }
  607. function OptNull() {
  608. }
  609. function OptNullByName(name) {
  610. var obj = document.getElementById(name);
  611. obj.src = "../images/totle/" + name + "3.png";
  612. obj.attributes["ostate"].value = 0;
  613. //obj.ostate = 0;
  614. obj.style.cursor = "default";
  615. }
  616. function OptByName(name) {
  617. var obj = document.getElementById(name);
  618. obj.src = "../images/totle/" + name + "1.png";
  619. obj.attributes["ostate"].value = 1;
  620. //obj.ostate = 1;
  621. obj.style.cursor = "hand";
  622. }
  623. </script>
  624. <style type="text/css">
  625. .defaultClass {
  626. color: #cccccc;
  627. }
  628. .selectClass {
  629. color: #83d944;
  630. }
  631. </style>
  632. </head>
  633. <body onload="Init()" class="main_body blue" onbeforeunload="closeSocket()">
  634. <div class="layui-layout layui-layout-admin">
  635. <!-- 顶部 -->
  636. <div class="layui-header header">
  637. <div class="layui-main mag0">
  638. <a href="###" class="logo" style=" text-align:left; padding-left:15px;">全媒体客服平台<img style="height:55px; display:none;" src="/Content/images/logo1.png" /><span>&nbsp;&nbsp;</span></a>
  639. <!-- 功能模块Id -->
  640. <input id="HdModuleFunIdCount" type="hidden" value="0" />
  641. <input id="ismonitoring" type="hidden" value="false" />
  642. <input id="HdIswin" type="hidden" value="@Model.IsSeat" />
  643. <input id="UserID" type="hidden" value="@Model.UserAccountModel.F_UserId" />
  644. <input id="Password" type="hidden" value="@Model.UserAccountModel.F_Password" />
  645. <input id="hfUserId" type="hidden" value="@Model.UserAccountModel.F_UserId" />
  646. <iframe src="/Main/iframeocx" name="iframeocx" frameborder="0" height="0" width="0"
  647. style="display: none;"></iframe>
  648. @*--(用于初始化用的信息)--*@
  649. <input id="txtMostlyAddress" type="hidden" value="@Model.CTIserverIP" />@*--(主用CTI服务器IP)*@
  650. <input id="ServerType" type="hidden" value="20" />@*--(服务器类型)--*@
  651. <input id="txtLabourNo" type="hidden" value="@Model.UserAccountModel.F_WorkNumber" />@*--<%=Request.Cookies["ID"].Value %>(工号)--*@
  652. <input id="pwd" type="hidden" value="" />@*--<%=Request.Cookies["ID"].Value %>(密码)--*@
  653. <input id="txtPhoneID" type="hidden" value="@Model.UserAccountModel.F_UserCode" />@*--(通讯进程号)--*@
  654. <input id="txtSubordinationAddress" type="hidden" value="@Model.CTIserverIP" />@*--(备用CTI服务器IP)--*@
  655. <input id="txtIsAgent" type="hidden" value="@Model.UserAccountModel.F_SeatFlag" />
  656. <!-- 是否具有话务功能,是否坐席登录 -->
  657. <input id="txtAgentId" type="hidden" value="@Model.UserAccountModel.F_UserId" /><!-- 坐席ID -->
  658. <input id="txtAgentName" type="hidden" value="@Model.UserAccountModel.F_UserName" />
  659. <input id="txtAgentRight" type="hidden" value="@Model.UserAccountModel.F_SeatRight" />
  660. <input id="txtAgentGroup" type="hidden" value="@Model.UserAccountModel.F_GroupId" />
  661. <input id="txtServerPort" type="hidden" value="@Model.CTIserverPort" />
  662. <!-- 坐席权限 -->
  663. @*--(用于登录的信息)--*@
  664. <input id="SeatType" type="hidden" value="@Model.UserAccountModel.F_SeatRight" />@*--<%=Request.Cookies["SkillSet"].Value %>(坐席类型)--*@
  665. <input id="txtPhoneNum" type="hidden" value="@Model.UserAccountModel.F_ExtensionNumber" />@*--<%=Request.Cookies["ExtNum"].Value %>(分机号)--*@
  666. <input id="keepcall" type="hidden" value="" />
  667. @*--(keep号码)--*@
  668. <input id="txtLabourwork" type="hidden" value="@Model.UserAccountModel.F_UserCode" />@*--(登录工号)--*@
  669. <input id="passwd" type="hidden" value="" />@*--(登录坐席密码)--*@
  670. <input id="hjbh" type="hidden" value="" />@*--(外乎呼叫编号)--*@
  671. <input id="CallHjbh" type="hidden" value="" />@*--(来电呼叫编号)--*@
  672. <input id="forZYnumber" type="hidden" value="" />@*--(用来存储来电号码--*@
  673. <input id="callnum" type="hidden" value="" />@*--(来电主叫号码)--*@
  674. <ul class="layui-nav topLevelMenus" pc>
  675. <li class="layui-nav-item" onclick="AgentQR()" data-menu="contentManagement" title="语音签入">
  676. <input id="txt_1" type="hidden" value="0" /><a title="语音签入">
  677. <i id="i_1" class="fa fa-phone defaultClass" data-icon=""></i></a>
  678. </li>
  679. <li class="layui-nav-item" data-menu="memberCenter" pc>
  680. <a><i id="i_2" class="layui-icon" style=" color:#cccccc;" data-icon="&#xe611;">&#xe611;</i></a>
  681. </li>
  682. <li class="layui-nav-item btnWX" data-menu="systemeSttings" pc>
  683. <a><i id="i_3" class="fa fa-weixin defaultClass" data-icon=""></i></a>
  684. </li>
  685. <li class="layui-nav-item btnWB" data-menu="seraphApi" pc>
  686. <a ><i id="i_4" class="fa fa-weibo defaultClass" data-icon=""></i></a>
  687. </li>
  688. <li class="layui-nav-item" pc>
  689. <a ><i id="i_5" class="fa fa-th-large" style=" color:#cccccc;" data-icon=""></i></a>
  690. </li>
  691. <li class="layui-nav-item" pc>
  692. <a ><i id="i_6" class="fa fa-envelope-o" style=" color:#cccccc;" data-icon=""></i></a>
  693. </li>
  694. <li class="layui-nav-item" pc>
  695. <input id="txt_7" type="hidden" value="0" />
  696. <a onclick="AgentFree()" title="坐席就绪">
  697. <i id="i_7" class="fa fa-play defaultClass" data-icon=""></i></a>
  698. </li>
  699. <li class="layui-nav-item" pc>
  700. <input id="txt_8" type="hidden" value="0" />
  701. <a onclick="AgentBusy()" title="坐席小休">
  702. <i id="i_8" class="fa fa-pause defaultClass" data-icon=""></i>
  703. </a>
  704. </li>
  705. </ul>
  706. <!-- 顶部右侧菜单 -->
  707. <ul class="layui-nav top_menu">
  708. <li class="layui-nav-item">
  709. <a id="telLayerInfo" style=" display:none;"><img src="/Content/images/phone128.png" class="layui-nav-img userAvatar" width="35" height="35"><cite class="adminName">未处理来电</cite><sup id="supLayerCount" class="layui-badge">0</sup>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
  710. <dl id="telLayerInfoChild" class="layui-nav-child"></dl>
  711. </li>
  712. <!--软电话-->
  713. <li class="layui-nav-item " title="软电话">
  714. <i class="fa fa-whatsapp" data-method="confirmTrans" style="font-size: 25px !important; margin-right: 0px;margin-top:15px; color:gray"></i>
  715. </li>
  716. <li class="layui-nav-item" title="通讯录" id="CustomerTelphone">
  717. @*<a href="javascript:;" title="通讯录" onclick="OpenOtherForm('通讯录', '/HrEmployeeBase/EmployeeSearchList')">
  718. <i class="fa fa-address-card" style="font-size: 25px !important; margin-left :15px;margin-top:15px; color:gray">
  719. </i>
  720. </a>*@
  721. <a id="customerphone">
  722. <i class="fa fa-address-card" style="font-size: 25px !important; margin-left :15px;margin-top:15px; color:powderblue;"></i>
  723. </a>
  724. </li>
  725. <!--微信-->
  726. @*<li id="wxMap" class="layui-nav-item inform" title="微信">
  727. <i class="fa fa-weixin defaultClass" style="font-size: 20px !important; margin-right: 5px;"></i>
  728. <sup class="layui-badge wXCount" style="display:none;">0</sup>
  729. </li>*@
  730. <!--微博-->
  731. @*<li id="wbMap" class="layui-nav-item inform" title="微博">
  732. <i class="fa fa-weibo defaultClass" style=" font-size: 20px !important;margin-right:13px;"></i>
  733. <sup class="layui-badge wBCount" style="display:none;">0</sup>
  734. </li>*@
  735. <li class="layui-nav-item">
  736. <a title="小工具"><i class="layui-icon" style=" font-size: 25px !important;">&#xe631;</i></a>
  737. <dl class="layui-nav-child">
  738. <dd>
  739. <a onclick="OpenOtherForm('周边', 'https://www.amap.com/')"><i class="fa fa-map-marker" style="font-size: 20px !important; margin-right: 5px;"></i><cite style="text-align:left">周边</cite></a>
  740. </dd>
  741. <dd>
  742. <a onclick="OpenOtherForm('线路查询', 'http://www.zzmetro.com/lines/query/line')"><i class="fa fa-plane" style="font-size: 20px !important; margin-right: 5px;"></i><cite style="text-align:left">线路查询</cite></a>
  743. </dd>
  744. <dd>
  745. <a onclick="OpenOtherForm('票价查询', 'http://www.zzmetro.com/lines/query/ticket')"><i class="fa fa-ticket" style="font-size: 20px !important; margin-right: 5px;"></i><cite style="text-align:left">票价查询</cite></a>
  746. </dd>
  747. <dd>
  748. <a onclick="OpenOtherForm('运营时间', 'http://www.zzmetro.com/lines/query/operating_hours')"><i class="fa fa-clock-o" style="font-size: 20px !important; margin-right: 5px;"></i><cite style="text-align:left">运营时间</cite></a>
  749. </dd>
  750. <dd>
  751. <a onclick="OpenOtherForm('站点查询', 'http://www.zzmetro.com/lines/query/station')"><i class="fa fa-train" style="font-size: 20px !important; margin-right: 5px;"></i><cite style="text-align:left">站点查询</cite></a>
  752. </dd>
  753. <dd>
  754. <a onclick="OpenOtherForm('快速通讯录', 'http://portal.zzmetro.com/index.php?m=content&c=txl')"><i class="fa fa-tty" style="font-size: 20px !important; margin-right: 5px;"></i><cite style="text-align:left">快速通讯录</cite></a>
  755. </dd>
  756. <dd>
  757. <a onclick="OpenOtherForm('官网入口', 'http://www.zzmetro.com/')"><i class="fa fa-internet-explorer" style="font-size: 20px !important; margin-right: 5px;"></i><cite style="text-align:left">官网入口</cite></a>
  758. </dd>
  759. <dd>
  760. <a onclick="OpenOtherForm('常见Q&A', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=2')"><i class="fa fa-quora" style="font-size: 20px !important; margin-right: 5px;"></i><cite style="text-align:left">常见Q&A</cite></a>
  761. </dd>
  762. <dd>
  763. <a onclick="OpenOtherForm('常用语', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=4')"><i class="fa fa-book" style="font-size: 20px !important; margin-right: 5px;"></i><cite style="text-align:left">常用语</cite></a>
  764. </dd>
  765. <dd>
  766. <a onclick="OpenOtherForm('我的常用语', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=1')"><i class="fa fa-rebel" style="font-size: 20px !important; margin-right: 5px;"></i><cite style="text-align:left">我的常用语</cite></a>
  767. </dd>
  768. <dd>
  769. <a onclick="OpenOtherForm('邮箱入口', 'http://mail.zzmetro.cn/index.php')"><i class="fa fa-envelope" style="font-size: 20px !important; margin-right: 5px;color:deepskyblue;"></i><cite style="text-align:left">邮箱入口</cite></a>
  770. </dd>
  771. </dl>
  772. </li>
  773. <li class="layui-nav-item" id="userInfo">
  774. <a ><img src="@Model.UserAccountModel.F_HomePhone" class="layui-nav-img userAvatar" width="35" height="35"><cite class="adminName">@Model.UserAccountModel.F_UserName</cite></a>
  775. <dl class="layui-nav-child">
  776. <dd>
  777. <a id="userinfo"><i class="layui-icon">&#xe705;</i><cite>个人信息</cite></a>
  778. </dd>
  779. <dd>
  780. <a id="userpwd"><i class="layui-icon"> &#xe620;</i><cite>修改密码</cite></a>
  781. </dd>
  782. <dd>
  783. <a href="javascript:logout()" id="exitsystem"><i class="fa fa-power-off"> </i><cite>退出系统</cite></a>
  784. </dd>
  785. </dl>
  786. </li>
  787. </ul>
  788. </div>
  789. </div>
  790. <!-- 左侧导航 -->
  791. <div class="layui-side layui-bg-black">
  792. <div class="navBar layui-side-scroll" id="navBar">
  793. <ul class="layui-nav layui-nav-tree" lay-filter="demo" lay-shrink="all">
  794. @if (Model != null && Model.MenuModelList != null && Model.MenuModelList.Count > 0)
  795. {
  796. int i = 0;
  797. foreach (T_Sys_ModuleFunctions rootNode in Model.MenuModelList)
  798. {
  799. if (i == 0)
  800. {
  801. <li class="layui-nav-item layui-nav-itemed">
  802. <a data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name</a>
  803. @if (rootNode.ChildMenuModelList != null && rootNode.ChildMenuModelList.Count > 0)
  804. {
  805. <dl class="layui-nav-child">
  806. @foreach (T_Sys_ModuleFunctions childNode in rootNode.ChildMenuModelList)
  807. {
  808. <dd><a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">@childNode.F_Name</a></dd>
  809. }
  810. </dl>
  811. }
  812. </li>
  813. }
  814. else
  815. {
  816. <li class="layui-nav-item">
  817. @if (rootNode.F_ModuleId > 0)
  818. {
  819. <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl" data-url="@rootNode.F_OptUrl">
  820. <i class="@rootNode.F_ImgUrl defaultClass"></i> @rootNode.F_Name
  821. <sup class="layui-badge @rootNode.F_ModuleCode" style="display:none;margin-left:155px;">0</sup>
  822. </a>
  823. }
  824. else
  825. {
  826. if (rootNode.F_FunctionId == 5)
  827. {
  828. <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl" data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name<sup style="position:inherit;margin-left:40px;" class="layui-badge totalOrderCount">0</sup></a>
  829. }
  830. else
  831. {
  832. <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl" data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name</a>
  833. }
  834. }
  835. @if (rootNode.ChildMenuModelList != null && rootNode.ChildMenuModelList.Count > 0)
  836. {
  837. <dl class="layui-nav-child">
  838. @foreach (T_Sys_ModuleFunctions childNode in rootNode.ChildMenuModelList)
  839. {
  840. if (childNode.F_FunctionId == 16)
  841. {
  842. <dd>
  843. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  844. @childNode.F_Name
  845. <sup class="layui-badge orderNeedCount" style="margin-left:75px;">0</sup>
  846. </a>
  847. </dd>
  848. }
  849. else if (childNode.F_FunctionId == 17)
  850. {
  851. <dd>
  852. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  853. @childNode.F_Name
  854. <sup class="layui-badge orderCount" style="margin-left:75px;">0</sup>
  855. </a>
  856. </dd>
  857. }
  858. else if (childNode.F_FunctionId == 18)
  859. {
  860. <dd>
  861. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  862. @childNode.F_Name
  863. <sup class="layui-badge orderCount" style="margin-left:75px;">0</sup>
  864. </a>
  865. </dd>
  866. }
  867. else if (childNode.F_FunctionId == 69)
  868. {
  869. <dd>
  870. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  871. @childNode.F_Name
  872. <sup class="layui-badge orderCountWb" style="margin-left:75px;">0</sup>
  873. </a>
  874. </dd>
  875. }
  876. else
  877. {
  878. <dd><a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">@childNode.F_Name</a></dd>
  879. }
  880. }
  881. </dl>
  882. }
  883. </li>
  884. }
  885. i++;
  886. }
  887. }
  888. </ul>
  889. </div>
  890. </div>
  891. <!-- 右侧内容 -->
  892. <div class="layui-body layui-form">
  893. <iframe id="mainframe" src="/Main/IndexCenter"></iframe>
  894. @*<div class="layui-tab mag0" lay-filter="bodyTab" id="top_tabs_box">
  895. <div class="switchover1">
  896. <i class="switcRight layui-icon">&#xe603;</i>
  897. </div>
  898. <ul class="layui-tab-title top_tab" id="top_tabs">
  899. <li class="layui-this maintabframecss" lay-id="maintab_index"><i class="layui-icon">&#xe68e;</i> <cite openid="-1">首页</cite></li>
  900. </ul>
  901. <!--tab 滑动-->
  902. <div class="switchover">
  903. <i class="switcLeft layui-icon">&#xe602;</i>
  904. </div>
  905. <ul class="layui-nav closeBox">
  906. <li class="layui-nav-item">
  907. <a href="javascript:;"><i class="layui-icon caozuo">&#xe643;</i> 操作</a>
  908. <dl class="layui-nav-child">
  909. <dd>
  910. <a href="javascript:;" class="refresh refreshThis"><i class="layui-icon">&#x1002;</i> 刷新当前</a>
  911. </dd>
  912. <dd>
  913. <a href="javascript:;" class="closePageOther"><i class="layui-icon">&#x1007;</i> 关闭其他</a>
  914. </dd>
  915. <dd>
  916. <a href="javascript:;" class="closePageAll"><i class="layui-icon">&#x1006;</i> 关闭全部</a>
  917. </dd>
  918. </dl>
  919. </li>
  920. </ul>
  921. <div class="layui-tab-content clildFrame">
  922. <div id="mainframeTab_index" class="layui-tab-item layui-show">
  923. <iframe id="mainframe_index" src="/Main/IndexCenter"></iframe>
  924. </div>
  925. </div>
  926. </div>*@
  927. </div>
  928. <!-- 底部 -->
  929. <div class="layui-footer footer">
  930. <div style="float: left; padding-left: 8px;" id="TelState">
  931. <div style="float: left; padding-top: 4px;">
  932. 服务状态:
  933. </div>
  934. <div style="float: left; padding-top: 3px;">
  935. <img id="imgServerState" src="/Content/images/server0.png" alt="未连接" />
  936. </div>
  937. <div style="float: left; padding-top: 3px;">
  938. &nbsp;&nbsp;坐席状态:
  939. </div>
  940. <div style="float: left; padding-top: 3px;">
  941. <img id="imgAgentState" src="/Content/images/zx2.png" alt="未登录" />
  942. </div>
  943. <div style="float: left; padding-top: 3px;">
  944. &nbsp;&nbsp;排队数量:
  945. </div>
  946. <div style="float: left; padding-top: 3px;">
  947. <span id="spanqueuingnum" class="layui-badge">0</span>
  948. </div>
  949. <div style="float: left; padding-top: 3px;">
  950. &nbsp;&nbsp;<span id="spanServerRes" style="color: #eeeeee;"></span>
  951. </div>
  952. </div><div style="float:right;"><p><span>© 版权所有 郑州市轨道交通</span></p></div>
  953. </div>
  954. </div>
  955. <!-- 移动导航 -->
  956. @*<div class="site-tree-mobile"><i class="layui-icon">&#xe602;</i></div>
  957. <div class="site-mobile-shade"></div>*@
  958. <script type="text/javascript">
  959. function OpenOtherForm(title, url) {
  960. window.open(url, title);
  961. //top.OCX_OpenOtherForm(title, url);
  962. }
  963. </script>
  964. <script src="/Content/layui/layui.js"></script>
  965. <script src="/Content/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  966. @*<script type="text/javascript" src="/Content/js/index.js" charset="utf-8"></script>*@
  967. <script type="text/javascript" src="/Content/js/cache.js"></script>
  968. <script src="/Content/js/myindex.js" type="text/javascript" charset="utf-8"></script>
  969. <script src="~/Content/js/passWord/pwdValueDate.js"></script>
  970. <script>
  971. layui.use(['layer', 'jquery'], function () {
  972. var form = layui.form,
  973. layer = parent.layer === undefined ? layui.layer : parent.layer,
  974. $ = layui.jquery;
  975. $(".fa-whatsapp").click(function () {
  976. if ($("#HdIswin").val()) {
  977. layer.open({
  978. type: 2,
  979. anim: 4,
  980. scrollbar: false,
  981. content: '/Main/PhoneCall',
  982. area: ['400px', '420px'],
  983. id: 'PhoneCall',
  984. title: '软电话'
  985. });
  986. }
  987. else {
  988. layer.msg('无权限', { icon: 5, time: 2000 });
  989. return;
  990. }
  991. });
  992. })
  993. </script>
  994. <script type="text/javascript">
  995. function telajaxopt(opturl) {
  996. var r = "";
  997. try {
  998. $.ajax({
  999. type: 'get',
  1000. url: opturl,
  1001. dataType: 'html',
  1002. async: false,
  1003. cache: false,
  1004. success: function (res) {
  1005. r = res;
  1006. }
  1007. });
  1008. }
  1009. catch (e) {
  1010. //$.ligerDialog.error(e.message);
  1011. }
  1012. return r;
  1013. }
  1014. //电话操作事件
  1015. //话机状态改变事件
  1016. function OnPhoneStatusNotify(status) {
  1017. var timeno = new Date().getTime();
  1018. //document.getElementById("spanServerRes").innerHTML = "状态:" + status;
  1019. }
  1020. //获取APPID
  1021. function GetAPPID() {
  1022. var cid = OCX_GetCallID("");
  1023. //更新APPID
  1024. return cid;
  1025. }
  1026. function UpdateRecPath() {
  1027. var appid = "";
  1028. appid = GetAPPID();
  1029. var timeno = new Date().getTime();
  1030. var callID = document.getElementById("CallHjbh").value;
  1031. telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=luyinEvent&callid=" + callID + "&path=" + appid + "&timeno=" + timeno); //录音开始事件
  1032. }
  1033. //录音成功
  1034. function Form_callComming(callerNum, parth) {
  1035. var timeno = new Date().getTime();
  1036. telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=luyinEvent&callid=" + document.getElementById("CallHjbh").value + "&path=" + parth + "&timeno=" + timeno); //录音开始事件
  1037. //Form_setWinfromenble("True", "false", "false", "false", "True", "True", "True", "false", "false", "false");
  1038. }
  1039. function getCallerNum() {
  1040. var calnum = document.getElementById("callnum").value;
  1041. return calnum;
  1042. }
  1043. function clearCallerNum() {
  1044. document.getElementById("callnum").value = "";
  1045. }
  1046. function getCallHjbh() {
  1047. var cid = document.getElementById("CallHjbh").value;
  1048. return cid;
  1049. }
  1050. function clearCallHjbh() {
  1051. document.getElementById("CallHjbh").value = "";
  1052. }
  1053. </script>
  1054. <script>
  1055. var tellayercount = 0;
  1056. var nowtime = "";
  1057. var arrLayerTime = new Array();
  1058. function ShowLayerByTimes(times) {
  1059. nowtime = times;
  1060. var aid = "layui-layer" + times;
  1061. //$('#' + aid).show();
  1062. $("#" + aid).find(".layui-layer-max").click();
  1063. }
  1064. function CloseLayerByTimes(times) {
  1065. var aid = "layui-layer" + times;
  1066. //$('#' + aid).show();
  1067. $("#" + aid).find(".layui-layer-close").click();
  1068. }
  1069. function CloseLayerNow() {
  1070. var aid = "layui-layer" + nowtime;
  1071. //$('#' + aid).show();
  1072. $("#" + aid).find(".layui-layer-close").click();
  1073. }
  1074. function InitTelLayerList() {
  1075. var html = "";
  1076. for (var ai = 0; ai < arrLayerTime.length; ai++) {
  1077. var atime = arrLayerTime[ai];
  1078. var aid = "layui-layer" + atime;
  1079. var title = $('#' + aid + ' .layui-layer-title').text();
  1080. var sindex = title.indexOf('-');
  1081. title = title.substr(0, sindex);
  1082. html += "<dd><a href=\"javascript:ShowLayerByTimes(" + atime + ");\" ><i class=\"fa fa-phone\"></i><cite>" + title + "</cite></a></dd>";
  1083. }
  1084. $('#telLayerInfoChild').html(html);
  1085. }
  1086. function CloseOpenTel(atime) {
  1087. tellayercount--;
  1088. if (tellayercount <= 0) {
  1089. tellayercount = 0;
  1090. document.getElementById("telLayerInfo").style.display = "none";
  1091. }
  1092. document.getElementById("supLayerCount").innerHTML = tellayercount;
  1093. //var atime = layero.attr("times");
  1094. var sindex = arrLayerTime.indexOf(atime);
  1095. if (sindex > -1) {
  1096. arrLayerTime.splice(sindex, 1);
  1097. }
  1098. InitTelLayerList();
  1099. }
  1100. function OpenTelLayer(t, urlSrc) {//多窗口模式,层叠置顶
  1101. layui.use(['element', 'layer'], function () {
  1102. var element = layui.element,
  1103. layer = layui.layer; //获得layer模块
  1104. layer.open({
  1105. type: 2 //此处以iframe举例
  1106. , title: t
  1107. , area: ['80%', '80%']
  1108. , shade: 0
  1109. , maxmin: true
  1110. , content: urlSrc
  1111. , zIndex: layer.zIndex //重点1
  1112. , success: function (layero) {
  1113. tellayercount++;
  1114. document.getElementById("supLayerCount").innerHTML = tellayercount;
  1115. document.getElementById("telLayerInfo").style.display = "inline";
  1116. layer.setTop(layero); //重点2
  1117. nowtime = layero.attr("times");
  1118. arrLayerTime.push(layero.attr("times"));
  1119. InitTelLayerList();
  1120. }, min: function (layero) {
  1121. //setTimeout(function () { layero.css({ left:"180px",width:"280px" }); }, 0);
  1122. //alert(layero.attr("times"));
  1123. //var w = document.body.clientWidth;
  1124. //var rowcount = w / 181;
  1125. //for (var i = 0; i < arrLayerTime.length; i++) {
  1126. // var atime = arrLayerTime[i];
  1127. // var id = "layui-layer" + atime;
  1128. // var obj = document.getElementById(id);
  1129. //}
  1130. var atime = layero.attr("times");
  1131. var aid = "layui-layer" + atime;
  1132. //$('#' + aid).hide();
  1133. setTimeout(function () { layero.css({ width: "0px", height: "0px" }); }, 0);
  1134. }, cancel: function (index, layero) {
  1135. CloseOpenTel(layero.attr("times"));
  1136. }
  1137. });
  1138. });
  1139. }
  1140. function tabMove() {
  1141. $(window).on("resize", function (event) {
  1142. var topTabsBox = $("#top_tabs_box"),
  1143. topTabsBoxWidth = $("#top_tabs_box").width(),
  1144. topTabs = $("#top_tabs"),
  1145. topTabsWidth = $("#top_tabs").width(),
  1146. tabLi = topTabs.find("li.layui-this"),
  1147. top_tabs = document.getElementById("top_tabs"),
  1148. event = event || window.event;
  1149. try {
  1150. if (topTabsWidth > topTabsBoxWidth) {
  1151. if (tabLi.position().left > topTabsBoxWidth || tabLi.position().left + topTabsBoxWidth > topTabsWidth) {
  1152. topTabs.css("left", topTabsBoxWidth - topTabsWidth);
  1153. } else {
  1154. topTabs.css("left", -tabLi.position().left);
  1155. }
  1156. //拖动效果
  1157. var flag = false;
  1158. var cur = {
  1159. x: 0,
  1160. y: 0
  1161. }
  1162. var nx, dx, x;
  1163. function down() {
  1164. flag = true;
  1165. var touch;
  1166. if (event.touches) {
  1167. touch = event.touches[0];
  1168. } else {
  1169. touch = event;
  1170. }
  1171. cur.x = touch.clientX;
  1172. dx = top_tabs.offsetLeft;
  1173. }
  1174. function move() {
  1175. var self = this;
  1176. if (flag) {
  1177. window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();
  1178. var touch;
  1179. if (event.touches) {
  1180. touch = event.touches[0];
  1181. } else {
  1182. touch = event;
  1183. }
  1184. nx = touch.clientX - cur.x;
  1185. x = dx + nx;
  1186. if (x > 0) {
  1187. x = 0;
  1188. } else {
  1189. if (x < topTabsBoxWidth - topTabsWidth) {
  1190. x = topTabsBoxWidth - topTabsWidth;
  1191. } else {
  1192. x = dx + nx;
  1193. }
  1194. }
  1195. top_tabs.style.left = x + "px";
  1196. //阻止页面的滑动默认事件
  1197. document.addEventListener("touchmove", function () {
  1198. event.preventDefault();
  1199. }, false);
  1200. }
  1201. }
  1202. //鼠标释放时候的函数
  1203. function end() {
  1204. flag = false;
  1205. }
  1206. //pc端拖动效果
  1207. topTabs.on("mousedown", down);
  1208. topTabs.on("mousemove", move);
  1209. $(document).on("mouseup", end);
  1210. //移动端拖动效果
  1211. topTabs.on("touchstart", down);
  1212. topTabs.on("touchmove", move);
  1213. topTabs.on("touchend", end);
  1214. } else {
  1215. //移除pc端拖动效果
  1216. topTabs.off("mousedown", down);
  1217. topTabs.off("mousemove", move);
  1218. topTabs.off("mouseup", end);
  1219. //移除移动端拖动效果
  1220. topTabs.off("touchstart", down);
  1221. topTabs.off("touchmove", move);
  1222. topTabs.off("touchend", end);
  1223. topTabs.removeAttr("style");
  1224. return false;
  1225. }
  1226. }
  1227. catch (e) {
  1228. alert(e.message);
  1229. }
  1230. }).resize();
  1231. }
  1232. var tabFilter, menu = [], liIndex, curNav, delMenu,
  1233. changeRefreshStr = window.sessionStorage.getItem("changeRefresh");
  1234. //layui.use(['layer', 'jquery'], function () {
  1235. // var form = layui.form,
  1236. // layer = parent.layer === undefined ? layui.layer : parent.layer,
  1237. // $ = layui.jquery;
  1238. layui.use('element', function () {
  1239. var element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
  1240. //var element = layui.element,
  1241. // $ = layui.$,
  1242. // layId,
  1243. // Tab = function () {
  1244. // this.tabConfig = {
  1245. // openTabNum: undefined, //最大可打开窗口数量
  1246. // tabFilter: "bodyTab", //添加窗口的filter
  1247. // url: undefined //获取菜单json地址
  1248. // }
  1249. // };
  1250. /*
  1251. //通过title获取lay-id
  1252. Tab.prototype.getLayId = function (title) {
  1253. $(".layui-tab-title.top_tab li").each(function () {
  1254. if ($(this).find("cite").text() == title) {
  1255. layId = $(this).attr("lay-id");
  1256. }
  1257. })
  1258. return layId;
  1259. }
  1260. //通过title判断tab是否存在
  1261. Tab.prototype.hasTab = function (title) {
  1262. var tabIndex = -1;
  1263. $(".layui-tab-title.top_tab li").each(function () {
  1264. if ($(this).find("cite").text() == title) {
  1265. tabIndex = 1;
  1266. }
  1267. })
  1268. return tabIndex;
  1269. }
  1270. function AddTabPage(aid, aicon, nullicon, aname, urlSrc) {
  1271. var timeno = new Date().getTime();
  1272. var tabIndex = -1;
  1273. $(".layui-tab-title.top_tab li").each(function () {
  1274. if ($(this).attr("lay-id") == 'maintab_' + aid + '') {
  1275. tabIndex = 1;
  1276. }
  1277. })
  1278. if (tabIndex != 1) {
  1279. //新增一个Tab项
  1280. element.tabAdd('bodyTab', {
  1281. title: '<i class=\"' + aicon + '\">' + nullicon + '</i> <cite openid=\"' + aid + '\">' + aname + '</cite><i class=\"layui-icon layui-unselect layui-tab-close\">&#x1006;</i>'
  1282. , content: '<iframe id=\"mainframe_' + aid + '\" src=\"' + urlSrc + '?timeno=' + timeno + '\"></iframe>'
  1283. , id: 'maintab_' + aid + '' //实际使用一般是规定好的id,这里以时间戳模拟下
  1284. })
  1285. }
  1286. element.tabChange('bodyTab', 'maintab_' + aid + '');
  1287. tabMove(); //顶部窗口是否可滚动
  1288. }
  1289. */
  1290. var pwd = $("#Password").val();
  1291. if (checkStrong(pwd) == "0" || checkStrong(pwd) == "1") {
  1292. layer.open({
  1293. content: '密码等级太低,请先修改密码'
  1294. , btn: ['好的', '稍后再去']
  1295. , yes: function (index, layero) {
  1296. layer.close(index);
  1297. //AddTabPage('editpsd', 'fa fa-lock', '', '修改密码','/SystemManage/UserPwdEdit');
  1298. document.getElementById("mainframe").src = "/SystemManage/UserPwdEdit";
  1299. }
  1300. });
  1301. }
  1302. $("#userpwd").click(function () {
  1303. document.getElementById("mainframe").src = "/SystemManage/UserPwdEdit";
  1304. //AddTabPage('editpsd', 'fa fa-lock', '', '修改密码', '/SystemManage/UserPwdEdit');
  1305. });
  1306. $("#customerphone").click(function () {
  1307. document.getElementById("mainframe").src = "/HrEmployeeBase/EmployeeSearchList";
  1308. //AddTabPage('emplist', 'layui-icon layui-icon-form', '&#xe63c;', '通讯录', '/HrEmployeeBase/EmployeeSearchList');
  1309. //layer.open({
  1310. // type: 2,
  1311. // anim: 4,
  1312. // scrollbar: false,
  1313. // content: '/HrEmployeeBase/EmployeeSearchList',
  1314. // area: ['1000px', '500px'],
  1315. // id: 'UserInfo',
  1316. // title: '通讯录'
  1317. //});
  1318. });
  1319. $("#userinfo").click(function () {
  1320. document.getElementById("mainframe").src = "/SystemManage/UserView";
  1321. //AddTabPage('userinfo', 'fa fa-user', '', '个人信息', '/SystemManage/UserView');
  1322. //layer.open({
  1323. // type: 2,
  1324. // anim: 4,
  1325. // scrollbar: false,
  1326. // content: '/SystemManage/UserView',
  1327. // area: ['800px', '500px'],
  1328. // id: 'UserInfo',
  1329. // title: '个人信息'
  1330. //});
  1331. });
  1332. //转主页
  1333. $(".logo").on("click", function () { //此处添加禁止连续点击刷新一是为了降低服务器压力,另外一个就是为了防止超快点击造成chrome本身的一些js文件的报错(不过貌似这个问题还是存在,不过概率小了很多)
  1334. //var tabIndex = -1;
  1335. //$(".layui-tab-title.top_tab li").each(function () {
  1336. // if ($(this).attr("lay-id") == 'maintab_index') {
  1337. // tabIndex = 1;
  1338. // }
  1339. //})
  1340. //if (tabIndex != 1) {
  1341. // var timeno = new Date().getTime();
  1342. // //新增一个Tab项
  1343. // element.tabAdd('bodyTab', {
  1344. // title: '<i class=\"layui-icon\">&#xe68e;</i> <cite openid=\"-1\">首页</cite>'
  1345. // , content: '<iframe id=\"mainframe_index\" src=\"/Main/IndexCenter?timeno=' + timeno + '\"></iframe>'
  1346. // , id: 'maintab_index' //实际使用一般是规定好的id,这里以时间戳模拟下
  1347. // })
  1348. //}
  1349. //element.tabChange('bodyTab', 'maintab_index');
  1350. //tabMove(); //顶部窗口是否可滚动
  1351. var timeno = new Date().getTime();
  1352. document.getElementById("mainframe").src = "/Main/IndexCenter?timeno=" + timeno;
  1353. })
  1354. //删除tab
  1355. //$("body").on("click", ".top_tab li i.layui-tab-close", function () {
  1356. // try {
  1357. // //删除tab后重置session中的menu和curmenu
  1358. // liIndex = $(this).parent("li").index();
  1359. // element.tabDelete("bodyTab", $(this).parent("li").attr("lay-id")).init();
  1360. // tabMove();
  1361. // }
  1362. // catch (e) { }
  1363. //})
  1364. //刷新当前
  1365. //$(".refresh").on("click", function () { //此处添加禁止连续点击刷新一是为了降低服务器压力,另外一个就是为了防止超快点击造成chrome本身的一些js文件的报错(不过貌似这个问题还是存在,不过概率小了很多)
  1366. // try {
  1367. // if ($(this).hasClass("refreshThis")) {
  1368. // $(this).removeClass("refreshThis");
  1369. // $(".clildFrame .layui-tab-item.layui-show").find("iframe")[0].contentWindow.location.reload();
  1370. // setTimeout(function () {
  1371. // $(".refresh").addClass("refreshThis");
  1372. // }, 2000)
  1373. // } else {
  1374. // layer.msg("您点击的速度超过了服务器的响应速度,还是等两秒再刷新吧!");
  1375. // }
  1376. // }
  1377. // catch (e) { }
  1378. //})
  1379. //关闭其他
  1380. //$(".closePageOther").on("click", function () {
  1381. // try {
  1382. // if ($("#top_tabs li").length > 2 && $("#top_tabs li.layui-this cite").text() != "首页") {
  1383. // $("#top_tabs li").each(function () {
  1384. // if ($(this).attr("lay-id") != 'maintab_index' && !$(this).hasClass("layui-this")) {
  1385. // element.tabDelete("bodyTab", $(this).attr("lay-id")).init();
  1386. // }
  1387. // })
  1388. // } else if ($("#top_tabs li.layui-this cite").text() == "首页" && $("#top_tabs li").length > 1) {
  1389. // $("#top_tabs li").each(function () {
  1390. // if ($(this).attr("lay-id") != 'maintab_index' && !$(this).hasClass("layui-this")) {
  1391. // element.tabDelete("bodyTab", $(this).attr("lay-id")).init();
  1392. // }
  1393. // })
  1394. // } else {
  1395. // layer.msg("没有可以关闭的窗口了");
  1396. // }
  1397. // //渲染顶部窗口
  1398. // tabMove();
  1399. // }
  1400. // catch (e) { }
  1401. //})
  1402. //关闭全部
  1403. //$(".closePageAll").on("click", function () {
  1404. // try {
  1405. // if ($("#top_tabs li").length > 1) {
  1406. // $("#top_tabs li").each(function () {
  1407. // if ($(this).attr("lay-id") != 'maintab_index') {
  1408. // element.tabDelete("bodyTab", $(this).attr("lay-id")).init();
  1409. // }
  1410. // })
  1411. // } else {
  1412. // layer.msg("没有可以关闭的窗口了");
  1413. // }
  1414. // //渲染顶部窗口
  1415. // tabMove();
  1416. // }
  1417. // catch (e) { }
  1418. //})
  1419. //通过title获取lay-id
  1420. //Tab.prototype.getLayId = function (title) {
  1421. // $(".layui-tab-title.top_tab li").each(function () {
  1422. // if ($(this).find("cite").text() == title) {
  1423. // layId = $(this).attr("lay-id");
  1424. // }
  1425. // })
  1426. // return layId;
  1427. //}
  1428. //监听导航点击
  1429. element.on('nav(demo)', function (elem) {
  1430. //console.log(elem)
  1431. // layer.msg(elem.text());
  1432. var urlSrc = $(this).find("a").attr("data-url");
  1433. var aname = $(this).find("a").attr("aname");
  1434. var aid = $(this).find("a").attr("id");
  1435. var aicon = $(this).find("a").attr("aicon");
  1436. var nullicon = "";
  1437. if (aicon == "") {
  1438. aicon = "layui-icon layui-icon-tabs";
  1439. nullicon = "&#xe62a;";
  1440. }
  1441. var cssClass = $(this).find("a").find("i").attr("class");
  1442. if (cssClass != null && (cssClass.indexOf("fa-weibo") > 0 || cssClass.indexOf("fa-weixin")) && cssClass.indexOf("selectClass") <= 0) {
  1443. alert("未签入!")
  1444. return;
  1445. }
  1446. var timeno = new Date().getTime();
  1447. if (urlSrc != "") {
  1448. if (urlSrc == "/ScreenDisplay/MainScreen") {
  1449. OpenOtherForm("郑州地铁客服中心大屏数据展示", "http://" + window.location.host + urlSrc + "/");
  1450. }
  1451. else {
  1452. if (urlSrc.indexOf("CallRecord/CallScreen") >= 0) {
  1453. //OpenTelLayer('18695836988-来电', urlSrc);
  1454. document.getElementById("mainframe").src = urlSrc;
  1455. }
  1456. else {
  1457. if (urlSrc.indexOf('?') < 0) {
  1458. document.getElementById("mainframe").src = urlSrc + "?timeno=" + timeno + "";
  1459. //var tabIndex = -1;
  1460. //$(".layui-tab-title.top_tab li").each(function () {
  1461. // if ($(this).attr("lay-id") == 'maintab_' + aid + '') {
  1462. // tabIndex = 1;
  1463. // }
  1464. //})
  1465. //if (tabIndex != 1) {
  1466. // //新增一个Tab项
  1467. // element.tabAdd('bodyTab', {
  1468. // title: '<i class=\"' + aicon + '\">' + nullicon + '</i> <cite openid=\"' + aid + '\">' + aname + '</cite><i class=\"layui-icon layui-unselect layui-tab-close\">&#x1006;</i>'
  1469. // , content: '<iframe id=\"mainframe_' + aid + '\" scrolling=\"auto\" src=\"' + urlSrc + '?timeno=' + timeno + '\"></iframe>'
  1470. // , id: 'maintab_' + aid + '' //实际使用一般是规定好的id,这里以时间戳模拟下
  1471. // })
  1472. //}
  1473. //element.tabChange('bodyTab', 'maintab_' + aid + '');
  1474. //tabMove(); //顶部窗口是否可滚动
  1475. }
  1476. else {
  1477. document.getElementById("mainframe").src = urlSrc + "&timeno=" + timeno + "";
  1478. //try {
  1479. // var tabIndex = -1;
  1480. // $(".layui-tab-title.top_tab li").each(function () {
  1481. // if ($(this).attr("lay-id") == 'maintab_' + aid + '') {
  1482. // tabIndex = 1;
  1483. // }
  1484. // })
  1485. // if (tabIndex != 1) {
  1486. // //新增一个Tab项
  1487. // element.tabAdd('bodyTab', {
  1488. // title: '<i class=\"' + aicon + '\">' + nullicon + '</i> <cite openid=\"' + aid + '\">' + aname + '</cite><i class=\"layui-icon layui-unselect layui-tab-close\">&#x1006;</i>'
  1489. // , content: '<iframe id=\"mainframe_' + aid + '\" scrolling=\"auto\" src=\"' + urlSrc + '&timeno=' + timeno + '\"></iframe>'
  1490. // , id: 'maintab_' + aid + '' //实际使用一般是规定好的id,这里以时间戳模拟下
  1491. // })
  1492. // }
  1493. // element.tabChange('bodyTab', 'maintab_' + aid + '');
  1494. // //setTimeout(alert(1), 5000);
  1495. // tabMove(); //顶部窗口是否可滚动
  1496. // //if (aid == "2" || aid == "3") {
  1497. // // alert("加载完成");
  1498. // //}
  1499. //}
  1500. //catch (e) {
  1501. // alert(e.message);
  1502. //}
  1503. }
  1504. }
  1505. }
  1506. //if (urlSrc.indexOf('?') < 0) {
  1507. // document.getElementById("mainframe").src = urlSrc + "?timeno=" + timeno + "";
  1508. //}
  1509. //else {
  1510. // document.getElementById("mainframe").src = urlSrc + "&timeno=" + timeno + "";
  1511. //}
  1512. }
  1513. });
  1514. });
  1515. $("#navBar .layui-nav-item").click(function () {
  1516. $("#navBar .layui-nav-item").removeClass("layui-nav-itemed");
  1517. $("#navBar .layui-nav-item").removeClass("layui-this");
  1518. if ($(this).has('dl').length) {//如果有子菜单,显示下拉样式
  1519. $(this).addClass("layui-nav-itemed");
  1520. } else {//如果没有子菜单,显示菜单项样式
  1521. $(this).addClass("layui-this");
  1522. }
  1523. });
  1524. </script>
  1525. </body>
  1526. <script type="text/javascript">
  1527. ///获取微信消息
  1528. ///1、微信 2、微博
  1529. function GetWxMessageCount(messageType, className) {
  1530. $.ajax({
  1531. url: "/OtherPage/GetWebChartCount",
  1532. type: "get",
  1533. contentType: "application/json",
  1534. dataType: "text",
  1535. cache: false,
  1536. data: { "pageType": messageType },
  1537. success: function (result, status) {
  1538. if (status) {
  1539. $(className).html(result);
  1540. }
  1541. }
  1542. });
  1543. }
  1544. //微信
  1545. var wX;
  1546. function wXTimedCount() {
  1547. GetWxMessageCount(1, ".wXCount");
  1548. wX = setTimeout("wXTimedCount()", 5000)
  1549. }
  1550. $(".btnWX").click(function () {
  1551. var rgs = $(".fa-weixin").hasClass("defaultClass");
  1552. if (rgs) {
  1553. $(".fa-weixin").removeClass("defaultClass");
  1554. $(".fa-weixin").addClass("selectClass");
  1555. $(".wXCount").css("display", "block");
  1556. wXTimedCount();
  1557. }
  1558. else {
  1559. $(".fa-weixin").removeClass("selectClass");
  1560. $(".fa-weixin").addClass("defaultClass");
  1561. $(".wXCount").css("display", "none");
  1562. clearTimeout(wX);
  1563. }
  1564. });
  1565. //微博
  1566. var wB;
  1567. function wBTimedCount() {
  1568. GetWxMessageCount(2, ".wBCount");
  1569. wB = setTimeout("wBTimedCount()", 5000)
  1570. }
  1571. $(".btnWB").click(function () {
  1572. var rgs = $(".fa-weibo").hasClass("defaultClass");
  1573. if (rgs) {
  1574. $(".fa-weibo").removeClass("defaultClass");
  1575. $(".fa-weibo").addClass("selectClass");
  1576. $(".wBCount").css("display", "block");
  1577. wBTimedCount();
  1578. }
  1579. else {
  1580. $(".fa-weibo").removeClass("selectClass");
  1581. $(".fa-weibo").addClass("defaultClass");
  1582. $(".wBCount").css("display", "none");
  1583. clearTimeout(wB);
  1584. }
  1585. });
  1586. //待办工单
  1587. function MyOrderCount() {
  1588. try
  1589. {
  1590. //补录工单
  1591. if ($(".orderNeedCount") != undefined) {
  1592. $.ajax({
  1593. url: "/OtherPage/GetMyOrderNeedCount/",
  1594. type: "get",
  1595. contentType: "application/json",
  1596. dataType: "text",
  1597. cache: false,
  1598. data: null,
  1599. success: function (result, status) {
  1600. if (status) {
  1601. $(".orderNeedCount").html(result);
  1602. }
  1603. }
  1604. });
  1605. }
  1606. //微博工单//orderCountWb
  1607. //if ($(".orderCountWb") != undefined) {
  1608. // $.ajax({
  1609. // url: "/OtherPage/GetMyOrderCountWb/",
  1610. // type: "get",
  1611. // contentType: "application/json",
  1612. // dataType: "text",
  1613. // cache: false,
  1614. // data: null,
  1615. // success: function (result, status) {
  1616. // if (status) {
  1617. // $(".orderCountWb").html(result);
  1618. // }
  1619. // }
  1620. // });
  1621. //}
  1622. //待办工单
  1623. if ($(".orderCount") != undefined) {
  1624. $.ajax({
  1625. url: "/OtherPage/GetMyOrderCount/",
  1626. type: "get",
  1627. contentType: "application/json",
  1628. dataType: "text",
  1629. cache: false,
  1630. data: null,
  1631. success: function (result, status) {
  1632. if (status) {
  1633. $(".orderCount").html(result);
  1634. }
  1635. }
  1636. });
  1637. }
  1638. if ($(".orderCount") != undefined || $(".orderNeedCount") != undefined)
  1639. {
  1640. var totalOrderCount = 0;
  1641. var myOrderCount = 0;
  1642. var myNeedCount = 0;
  1643. var myorderCountWb = 0;
  1644. if ($(".orderCount") != undefined)
  1645. {
  1646. myOrderCount = $(".orderCount").html();
  1647. }
  1648. if ($(".orderNeedCount") != undefined) {
  1649. myNeedCount = $(".orderNeedCount").html();
  1650. }
  1651. //orderCountWb
  1652. //if ($(".orderCountWb") != undefined) {
  1653. // myorderCountWb = $(".orderCountWb").html();
  1654. //}
  1655. totalOrderCount = parseInt(myOrderCount) + parseInt(myNeedCount);
  1656. $(".totalOrderCount").html(totalOrderCount);
  1657. setTimeout("MyOrderCount()", 5000);
  1658. }
  1659. }
  1660. catch(e)
  1661. {
  1662. }
  1663. }
  1664. //获取待办工单数量
  1665. MyOrderCount();
  1666. </script>
  1667. </html>