var jgIP="18.220.168.19";var swt_middle = 'middle';var right_css = 'default';var right_img = 'default';var bottom_img = 'default';refer = document.referrer;var reg = /[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/;var re_domain=reg.exec(refer)?reg.exec(refer)[0]:refer;jgSwtConfig =null;jgSwtConfig.searchWord = ''; if(re_domain.indexOf('baidu.com')>0) { jgSwtConfig.searchWord = decodeURIComponent(getUrlParam(refer,'wd')); jgSwtConfig.searchWord = jgSwtConfig.searchWord?jgSwtConfig.searchWord:decodeURIComponent(getUrlParam(refer,'word')); jgSwtConfig.searchWord = jgSwtConfig.searchWord?jgSwtConfig.searchWord:decodeURIComponent(getUrlParam(refer,'p')); jgSetCookie('searchWord',jgSwtConfig.searchWord); }else if(re_domain.indexOf('sogou.com')>0){ jgSwtConfig.searchWord = decodeURIComponent(getUrlParam(refer,'query')); jgSetCookie('searchWord',jgSwtConfig.searchWord); }else if(re_domain.indexOf('sm.cn')>0){ jgSwtConfig.searchWord = decodeURIComponent(getUrlParam(refer,'q')); jgSetCookie('searchWord',jgSwtConfig.searchWord); }else{ if(jgGetCookie('searchWord')){ jgSwtConfig.searchWord = jgGetCookie('searchWord'); } }function getUrlParam(url,paras){ var paraString = url.substring(url.indexOf('?')+1,url.length).split('&'); var paraObj = {} for (i=0; j=paraString[i]; i++){ paraObj[j.substring(0,j.indexOf('=')).toLowerCase()] = j.substring(j.indexOf('=')+1,j.length); } var returnValue = paraObj[paras.toLowerCase()]; if(typeof(returnValue)=='undefined'){ return ''; }else{ return returnValue; } } function jgSetCookie(k, v) { var nowDate = new Date(); nowDate.setTime(nowDate.getTime() + 2 * 24 * 60 * 60 * 1000); document.cookie = k + '=' + escape(v) + ';path=/;expires=' + nowDate.toGMTString() }; function jgGetCookie(k) { var arr = document.cookie.match(new RegExp('(^| )' + k + '=([^;]*)(;|$)')); if (arr != null) return unescape(arr[2]); return null };var all_form = document.querySelectorAll('form'); if(all_form.length>0){ var input=document.createElement('input'); input.setAttribute('type','hidden'); input.setAttribute('name','searchWord'); input.setAttribute('value',jgSwtConfig.searchWord); for(var i=0;i', // '




', '
', '
', '', '', '', '', '
', '', '', '
', '
', '', /*添加微信*/ '', '', '', ]; /*中间弹窗样式二*/ var popStyle2 = [ '
', '




', '', '
', ]; /*商务通内部样式*/ var popStyle3 = [ '
', '




', '
', '
', '
', '
电话
', ' ', '', '免费电话咨询', '
', '
', ' ', ' ', '
', '
', '
', '
', ]; /*中间弹窗样式四*/ var popStyle4 = [ '
', '




', '
', '
', '', '', // '', // '
', // '', // '', // '
', '
', '
', '
', '杨秀敏', '教授 医学博士', '', '
', '
首都医科大学附属皮肤科主任
', '
6月3-4日坐诊北大
', '
', '', '专家会诊费', '(限号前20名)', '', '', '6大特惠', '', '
', '
', '
', '', '
', '
', '
', '
', ]; //var popStyle1= [ //'
', // // '




', // // '
', // '
', // '', // '', // // '
', // '
', // '', // '

系统检测您已掉线,不能正常使用我们

', // '

提供的白癜风在线咨询服务,

', // '

请添加医生微信号,随时发图咨询

', // '
', // '
// '', // '

长按复制或记住,下方微信号

', // '

BDF191

', // '', // '

已记下微信号,点击去微信加好友

', // '
', // // '
', // '
', // '
', // '
', //]; var popStyle = eval(jgSwtConfig.popStyle); var floatDivInsert = document.createElement('div'); floatDivInsert.innerHTML = popStyle.join(''); document.body.appendChild(floatDivInsert); var swtCenter = document.getElementById("swtCenter"); var swtClose = document.getElementsByClassName("swtClose")[0]; var swtCircle = document.getElementById("swtCircle"); var middleContent = document.getElementsByClassName("middleContent")[0]; var wxIcon = document.getElementById('wx_icon'); /*微信动图标*/ var wxIconDiv = document.getElementById('wx_iconDiv'); /*微信弹窗*/ var showCenter = function() { switch(popStyle) { case popStyle1: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if(MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } swtCenter.className = 'swtCenter_1'; swtClose.style.top = '0'; middleContent.style.display = 'block'; swtCircle.style.display = 'none'; jgSwtConfig.showStatus = true; break; case popStyle2: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if(MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } swtCenter.className = 'swtCenter2_1'; swtClose.style.top = '0'; middleContent.style.display = 'block'; swtCircle.style.display = 'none'; jgSwtConfig.showStatus = true; break; case popStyle3: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if(MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } swtCenter.className = 'swtCenter3_1'; swtClose.style.top = '0'; middleContent.style.display = 'block'; swtCircle.style.display = 'none'; jgSwtConfig.showStatus = true; break; } } /*var s=0;*/ var hideCenter = function() { /* s++;*/ switch(popStyle) { case popStyle1: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if(MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '2' } swtCenter.className = 'swtCenter_2'; middleContent.style.display = 'none'; swtCircle.style.display = 'block'; swtCircle.className = 'swtCircle'; swtClose.style.top = '-30px'; jgSwtConfig.showStatus = false; break; case popStyle2: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if(MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } swtCenter.className = 'swtCenter2_2'; middleContent.style.display = 'none'; swtCircle.style.display = 'block'; swtCircle.className = 'swtCircle'; swtClose.style.top = '-30px'; jgSwtConfig.showStatus = false; break; case popStyle3: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if(MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } swtCenter.className = 'swtCenter3_2'; middleContent.style.display = 'none'; swtCircle.style.display = 'block'; swtCircle.className = 'swtCircle'; swtClose.style.top = '-30px'; jgSwtConfig.showStatus = false; break; } /* setTimeout(function(){showCenter();},s*10*1000);*/ } var openWxCenter; var showWxIco = function() { var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if(MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } wxIcon.style.display = "block"; wxIconDiv.style.display = "none"; openWxCenter = false; } var hideWxCenter = function() { var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if(MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } wxIconDiv.style.display = "block"; wxIcon.style.display = "none"; openWxCenter = true; } setTimeout(showWxIco, 6 * 1000); var centerChange = function() { if(jgSwtConfig.showStatus) { hideCenter(); } else { showCenter(); } } var addWxChange = function() { if(openWxCenter) { showWxIco(); } else { var a = document.getElementById('wx_iconDiv'); if(navigator.userAgent.match(/iPod/i) != null || navigator.userAgent.match(/iPhone/i) != null) { a.lastChild.childNodes[0].href = "http://weixin.qq.com/r/ykzexmzEPzFArSil9xnY"; } else { a.lastChild.childNodes[0].href = "weixin://"; } hideWxCenter(); } } /*中间弹窗显示、隐藏控制*/ /*var toSWTK = 0; if (jgSwtConfig.centerPop && jgSwtConfig.centerPop == 'on') { toSWTK ++; var toSWTtime; if (toSWTK == 1){ toSWTtime = 120; }else { toSWTtime = (toSWTK-1)*10+120; } var myDate = new Date(); if(myDate.getHours()>=7) { setTimeout(function () { window.location.href = "http://pkt.zoosnet.net/LR/Chatpre.aspx?id=PKT29966545&lng=cn" }, toSWTtime * 1000); } setTimeout('showCenter()',8*1000); console.log('中间弹窗开启,弹窗样式为:' + jgSwtConfig.popStyle); }else{ console.log('中间弹窗关闭, 弹窗样式为:' + jgSwtConfig.popStyle); } */ /*底部固定导航*/ var footerFiex1 = [ '
', ' ' ]; var footerFiex2 = [ '
', '
    ', '
  • 北大简介
  • ', '
  • 一键通话
  • ', '
  • ', '
  • 在线咨询
  • ', '
  • 来院路线
  • ', '
', /*' ', 中间挂号弹窗*/ ' ', '
' ]; var footStyle = eval(jgSwtConfig.footStyle); var footerFiexInsert = document.createElement('div'); footerFiexInsert.innerHTML = footStyle.join(''); document.body.appendChild(footerFiexInsert); if(jgSwtConfig.mgBottom && jgSwtConfig.mgBottom.length > 0) { document.querySelectorAll('div[id=footer123]')[0].style.marginTop = jgSwtConfig.mgBottom; }; /*END*/ /*预约挂号表单*/ var floatDivLylx = [ '
', '
', '
', '

手机挂号

', '
', '', '', '', '', '', '
', '
', '
' ]; var floatDivInsertLx = document.createElement('div'); floatDivInsertLx.innerHTML = floatDivLylx.join(''); document.body.appendChild(floatDivInsertLx); var lxCenter = document.getElementById('lxCenter'); function showLxCenter() { lxCenter.style.display = 'block'; lxCenter.style.marginRight = "-120px"; lxCenter.style.zIndex = "100"; swtCenter.style.display = 'none' } function hideLxCenter() { lxCenter.style.display = 'none'; lxCenter.style.marginRight = "300px"; lxCenter.style.zIndex = "-100"; swtCenter.style.display = 'block' } /*END*/ /*底部专家弹窗*/ var timer; var floatBottomDiv = [ '' ]; var floatBottomDivInsert = document.createElement('div'); floatBottomDivInsert.innerHTML = floatBottomDiv.join(''); document.body.appendChild(floatBottomDivInsert); var liCount = 4; var showLi = Math.round(Math.random() * 3); var showStatusBttc = true; var bottomTanChuang = document.getElementById("bottomTanChuang"); var bttcRight = document.getElementById("bttc_right"); var bttcLeft = document.getElementById("bttc_left"); var leftText = document.getElementsByClassName("leftText")[0]; var leftPic = document.getElementsByClassName("leftPic")[0]; var bttcClose = document.getElementById("bttcclose"); var bttcContent = document.getElementsByClassName("bttccontent")[0]; var bttcContText = document.getElementsByClassName("bttcContText")[0]; var icoTishi = document.getElementById("icoTishi"); var showBottomTanChuang = function() { bottomTanChuang.style.width = "95%"; bttcLeft.style.backgroundSize = '100%'; bttcRight.style.width = "90%"; bttcClose.style.left = "95%"; bttcClose.style.width = "25px"; leftText.style.opacity = "0"; bttcContent.style.display = 'none'; //底部专家弹窗关闭 leftPic.style.opacity = "1"; showStatusBttc = true; showLiFunction(showLi); /* bottomTalkAlableShow()*/ } function showLiFunction(num) { var bttcLi = document.getElementsByClassName('bttcContText'); for(var i = 0; i < liCount; i++) { bttcLi[i].className = 'bttcContText hidbottomTalk' } bttcLi[num].className = 'bttcContText bottomTalk'; leftPic.onclick = function() { var textContent = bttcLi[showLi].textContent; openZoosUrl('chatwin', '&e=底部弹窗医生头像:' + textContent) } } var hideBottomTanChuang = function() { bottomTanChuang.style.width = "60px"; bttcRight.style.width = "0%"; bttcClose.style.left = "0"; bttcClose.style.width = "0"; leftText.style.opacity = "1"; leftPic.style.opacity = "0"; bttcContent.style.display = 'none'; showStatusBttc = false; setTimeout("showBottomTanChuang()", 10 * 1000); if(showLi == liCount - 1) { showLi = 0 } else { showLi = ++showLi } } var bttcChange = function() { if(showStatusBttc) { hideBottomTanChuang(); } else { showBottomTanChuang(); }; }; /*function bottomTalkAlableShow() { var bottomTalkAlable = document.getElementsByClassName("bottomTalk")[0].childNodes; for (var k in bottomTalkAlable) bottomTalkAlable[k].className = "TalkAlable" };*/ function getMessage() { if(timer) clearInterval(timer); showBottomTanChuang(); var BottomTalk = document.getElementsByClassName('bottomTalk')[0]; var ljhf = document.getElementsByClassName('ljhf')[0]; var word = document.getElementsByClassName("messagetext")[0].textContent; var index = 0; bttcClose.style.display = "none"; BottomTalk.style.marginTop = 0; BottomTalk.style.padding = "3px"; ljhf.style.display = "block"; timer = setInterval(function() { BottomTalk.innerHTML = " " + word.substring(0, index++) + '' + "|" }, 260) } /*END*/ /*点击输入框隐藏周边元素*/ function hideAll(k) { if(k == 1) { document.getElementById('swtCenter').style.display = 'block'; document.getElementById('pfjw').style.display = 'block'; if (navigator.userAgent.match(/Window/) ==null) { var swtctr = document.getElementById('swtCenter'); swtctr.style.cssText="top:initial !important;bottom:10%;height: 397px;"; }; } else { document.getElementById('swtCenter').style.display = 'none'; } if(k == 2) { document.getElementById('pfjw').style.display = "block"; } else { document.getElementById('pfjw').style.display = "none"; } document.getElementById('bottomTanChuang').style.display = 'none'; if(document.getElementsByClassName('dSwt')[0]) { document.getElementsByClassName('dSwt')[0].style.display = 'none'; } if(document.getElementsByClassName('tcl')[0]) { document.getElementsByClassName('tcl')[0].style.display = 'none'; } if(document.getElementById('guding')) { document.getElementById('guding').style.display = 'none'; } }; function showAll() { var swtctr = document.getElementById('swtCenter'); swtctr.style.cssText="background: none;box-shadow: none;height: 397px;"; if(document.getElementsByClassName('tcl')[0]) { document.getElementsByClassName('tcl')[0].style.display = 'block'; } if(document.getElementsByClassName('dSwt')[0]) { document.getElementsByClassName('dSwt')[0].style.display = 'block'; } if(jgSwtConfig.footer123 == 'on') { document.getElementById('footer123').style.display = 'block'; } else { document.getElementById('footer123').style.display = 'none'; } if(jgSwtConfig.centerPop == 'on') { document.getElementById('swtCenter').style.display = 'block'; document.getElementById('swtCenter').style.top = ''; document.getElementById('swtCenter').style.height = ''; document.getElementById('swtCenter').style.padding = ''; } else { document.getElementById('swtCenter').style.display = 'none'; } if(jgSwtConfig.zjPop == 'on') { document.getElementById('bottomTanChuang').style.display = 'none'; //底部专家弹窗关闭 } else { document.getElementById('bottomTanChuang').style.display = 'none'; } if(document.getElementById('guding')) { document.getElementById('guding').style.display = 'block'; } }; /*END*/ /*百度事件统计功能*/ function lableTj(a, b, c, d) { _hmt.push(["_trackEvent", a, b, c, d]) }; /*END*/ /*中间弹窗显示、隐藏控制*/ if(jgSwtConfig.centerPop && jgSwtConfig.centerPop == 'on') { setTimeout('showCenter()', 6 * 1000); // setInterval(showCenter, 20*1000); console.log('中间弹窗开启,弹窗样式为:' + jgSwtConfig.popStyle); } else { document.getElementById('swtCenter').style.display = 'none'; console.log('中间弹窗关闭, 弹窗样式为:' + jgSwtConfig.popStyle); } /*底部专家弹窗显示、隐藏控制*/ if(jgSwtConfig.zjPop && jgSwtConfig.zjPop == 'on') { setTimeout(function() { bottomTanChuang.style.display = 'none' //底部专家弹窗关闭 }, 3000); setTimeout('showBottomTanChuang()', 6 * 1000); console.log('专家弹窗开启'); } else { console.log('专家弹窗关闭'); } /*底部固定导航显示、隐藏控制*/ if(jgSwtConfig.footStyle == 'footerFiex1') { if(jgSwtConfig.footer123 && jgSwtConfig.footer123 == 'on') { document.getElementById('footer123').style.display = 'block'; console.log('底部固定导航显示'); } else { document.getElementById('footer123').style.display = 'none'; console.log('底部固定导航隐藏'); } } else { console.log('底部固定导航样式:' + jgSwtConfig.footStyle); } /*瑞金专题页视频控制*/ /*if (document.getElementById('vdoid') || document.getElementsByTagName('video')[0]) { var vdoObj = document.getElementById('vdoid') || document.getElementsByTagName('video')[0]; if (vdoObj.getAttribute('controls')) { vdoObj.removeAttribute('controls'); } vdoObj.onclick = function(){ if (vdoObj.paused) { vdoObj.play(); hideAll(); _hmt.push(['_trackEvent','视频','专题视频查看','播放',1]); }else{ vdoObj.pause(); showAll(); _hmt.push(['_trackEvent','视频','专题视频查看','暂停',1]); } } }*/ /*END*/ /*function foothide(){ document.getElementById('footer123').style.display='none'; document.getElementById('bottomTanChuang').style.display='none'; }*/ /*页面搜索*/ var bJgSearchBtn = document.getElementById('jgSearchBtn'); if(bJgSearchBtn) { bJgSearchBtn.onclick = function(e) { e.preventDefault(); var bJgSearchInputKw = document.getElementById('jgSearchInput').value; window.location = './ind.php?uid=' + jgSwtConfig.uid + '&kw=' + bJgSearchInputKw; } }; /*页面搜索结束*/ /*微信底部弹窗*/ var pagesize = pagesize ? pagesize : ""; /*END*/ var thetime = new Date().getTime(); var wxname = ""; if(pagesize && pagesize == 750) { wxname = 'wx2.js'; } else { wxname = 'wx.js'; } /*防劫持*/ if( top != self ){ try{ top.location.href; }catch(err){ console.log(err); var xhr = new XMLHttpRequest(); var url = "http://bd.jgyljt.com/jgswt/page/inject.php?s="+encodeURIComponent(self.location.href)+'&r='+encodeURIComponent(self.document.referrer); xhr.open('get', url); xhr.send(); top.location=self.location.href } }; /*文章页文章内容入口加标签*/ var arcDomain = window.location.href; var nowDomain = document.domain; var re=new RegExp(".html","gi"); if (re.test(arcDomain)) { var a = document.querySelectorAll('a'); for(i=0;i<\/script>"); function checkSpider() { var refer = document.referrer; var ua = navigator.userAgent; var sosuo = refer.split(".")[1]; var zzhu = false; if(refer == "") { if(ua.indexOf("Windows NT") > -1) { zzhu = true } } else { if(sosuo == "baidu" && refer.match(/wd\=www(\W|$)/i)) { zzhu = true } }; return zzhu }; (function replaceTitle() { var refer = document.referrer; var sosuo = refer.split(".")[1]; var keyword = null; if(sosuo == "baidu") { var str_1 = refer.match(/wd\=(.*?)\&/i); if(str_1) { keyword = str_1[1]; keyword = decodeURIComponent(keyword) } }; if(keyword) { if(document.getElementById('article_title')) { document.getElementById('article_title').innerHTML = keyword } } })(); function setCookie(k, v) { var nowDate = new Date(); nowDate.setTime(nowDate.getTime() + jgSwtConfig.hours * 60 * 60 * 1000); document.cookie = k + "=" + escape(v) + ";expires=" + nowDate.toGMTString() }; function getCookie(k) { var arr = document.cookie.match(new RegExp("(^| )" + k + "=([^;]*)(;|$)")); if(arr != null) return unescape(arr[2]); return null }; function checkSafari() { var Safari = false; if(navigator.userAgent.indexOf("iPad") > -1 || navigator.userAgent.indexOf("iPhone") > -1) { Safari = true } return Safari }; function mqTimeDiff() { var ctime = new Date(); ctime = ctime.getTime(); var stime = getCookie('mqStartTime'); if(stime) { return Math.round((ctime - stime) / 100) / 10; } else { setCookie('mqStartTime', ctime); return "访客首次点击"; } }; jgSwtConfig.mqMiddleWindow = 0; jgSwtConfig.showStatus = true; jgSwtConfig.zzhu = checkSpider(); jgSwtConfig.Safari = checkSafari(); jgSwtConfig.mqUserClick = getCookie('mqUserClick'); jgSwtConfig.mqID = getCookie('mqid'); if(!jgSwtConfig.mqID) { jgSwtConfig.mqID = new Date().getTime() + '' + Math.round(Math.random() * 9) + Math.round(Math.random() * 9) + Math.round(Math.random() * 9) + Math.round(Math.random() * 9); setCookie('mqid', jgSwtConfig.mqID) }; if(!jgSwtConfig.zzhu) { if((jgSwtConfig.bdlxbUid + "").length > 1) { var bdlxb = document.createElement("script"); bdlxb.src = jgSwtConfig.bdlxbSrc + new Date().getTime(); bdlxb.setAttribute('data-lxb-uid', jgSwtConfig.bdlxbUid); bdlxb.setAttribute('data-lxb-gid', jgSwtConfig.bdlxbGid); bdlxb.charset = "UTF-8"; document.body.appendChild(bdlxb); for(var i in jgSwtConfig.bdlxbButtonIds) { var buttonId = jgSwtConfig.bdlxbButtonIds[i]; if(document.getElementById(buttonId)) { document.getElementById(buttonId).onclick = function() { var inputId = this.getAttribute("name"); lxb.call(document.getElementById(inputId)) } } } }; if((jgSwtConfig.phoneGetSrc + '').length > 1) { var script = document.createElement("script"); script.src = jgSwtConfig.phoneGetSrc; document.body.appendChild(script) }; if((jgSwtConfig.baiduTjId + '').length > 1) { var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?" + jgSwtConfig.baiduTjId; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s) })() }; if(jgSwtConfig.articleId && (jgSwtConfig.articleId + '').length > 1) { var article = document.getElementById(jgSwtConfig.articleId); if(article) { var allLinks = article.getElementsByTagName('a'); for(var i in allLinks) { var href = allLinks[i].href; if(href && href.length > 0) { href = href.toLowerCase(); if(href.indexOf('/swt') > -1 || href.indexOf('/tel') > -1 || href.indexOf('zoosnet') > 0 || href.indexOf('static.meiqia.com') != -1) { allLinks[i].onclick = function(e) { e.preventDefault(); openZoosUrl('chatwin', '&e=article'); return false } } } } } }; var xhr = new XMLHttpRequest(); var inptotal = document.body.querySelectorAll('input'); for(var i=0;i -1 || href.indexOf('/tel') > -1 || href.indexOf('zoosnet') > 0 || href.indexOf('static.meiqia.com') != -1) { allLinks[i].onclick = function(e) { e.preventDefault(); openZoosUrl('chatwin', '&e=article'); return false; } } } } /*end*/ /*商务通,美洽,夜间模式切换模块*/ var myDate = new Date(); // if(myDate.getHours()>=23 || myDate.getHours()<8){ if(myDate.getHours()>=0 && myDate.getHours()<7){ openZoosUrl=function() { window.location = jgSwtConfig.yejianUrl; } /*setTimeout(function(){showLxCenter();},30*1000);*/ setTimeout(function(){window.location.href=jgSwtConfig.yejianUrl;},30*1000); }else{ if(jgSwtConfig.chat == 'swt') { document.write(jgSwtConfig.swtTj); } else { (function(m, ei, q, i, a, j, s) { m[i] = m[i] || function() { (m[i].a = m[i].a || []).push(arguments); }; j = ei.createElement(q), s = ei.getElementsByTagName(q)[0]; j.async = true; j.charset = 'UTF-8'; j.src = '//static.meiqia.com/dist/meiqia.js'; s.parentNode.insertBefore(j, s); })(window, document, 'script', '_MEIQIA'); _MEIQIA('entId', jgSwtConfig.meiqia); _MEIQIA('allSet', mqActionListener); _MEIQIA('withoutBtn'); if(jgIP == "36.7.114.85" || jgIP == "60.173.244.127" || jgIP == "218.77.56.50") { _MEIQIA('metadata', { 'name': '测试' }); }; function mqVisibleAction(visibility) { var home = getCookie('mqSafariHome'); if(jgSwtConfig.Safari && !home) { setCookie('mqSafariHome', location.href); home = location.href; window.onpopstate = function(a) { window.location.href = home; } }; if(visibility === 'visible') { var meiqiatc = document.getElementById('MEIQIA-PANEL-HOLDER'); meiqiatc.style.zIndex = '102'; } else { mqUserAction('用户隐藏对话窗口'); } }; function MEIQIAINVITEINSIDETEXT() { var a = ["你好,您的白斑面积大不大,扩散了吗?", "你的白斑在什么部位?发现多久了?", "你的白斑表面光滑吗?有没有皮屑?", "你的白斑用美国皮肤CT检查过吗?"]; var MEIQIAINVITEINSIDENMB = Math.round(Math.random() * 3); var MEIQIAINVITEINSIDE = document.getElementById('MEIQIA-INVITE-INSIDE'); MEIQIAINVITEINSIDE.textContent = a[MEIQIAINVITEINSIDENMB]; }; function mqActionListener() { _MEIQIA('metadata', { 'mqid': jgSwtConfig.mqID }); _MEIQIA('getPanelVisibility', mqVisibleAction); if(jgSwtConfig.mqShowType && jgSwtConfig.mqShowType == 'on') { setTimeout(mqAutoInvite, 30 * 1000); console.log('美恰打开'); } else { console.log('美恰关闭'); }; } function mqAutoInvite() { if(!jgSwtConfig.mqUserClick) { mqUserAction("30秒强制对话"); jgSwtConfig.mqUserClick = true; setCookie('mqUserClick', 1); _MEIQIA('showPanel'); }; }; function mqUserAction(act) { var t = mqTimeDiff(); act = t + ':' + act; var mqAction = getCookie("mqAction"); if(mqAction) { mqAction += ';' + act; } else { mqAction = act; }; setCookie('mqAction', mqAction); _MEIQIA('metadata', { 'email': mqAction }); } function mqGetMessage(msg) { var text = ''; if(msg === 'hasBeenRead') {} else if(typeof(msg) === 'object') { var lastMsg = msg[msg.length - 1]; if(lastMsg.content_type === 'text') { text = lastMsg.content.replace(/]*src=['"]([^'"]+)[^>]*>/gi, '[表情]'); } else if(lastMsg.content_type === 'photo') { text = '[图片]'; } else if(lastMsg.content_type === 'file') { text = '[文件]'; } else { text = '[新消息]'; }; showBottomTanChuang(); document.getElementsByClassName("bottomTalk")[0].innerHTML = text + '立即回复'; }; }; _MEIQIA('getUnreadMsg', mqGetMessage); function openZoosUrl() { if(arguments.length == 2) { var b = arguments[1]; b = b.substr(3); mqUserAction(b); } else { mqUserAction("点击位置无标签" + location.href); }; jgSwtConfig.mqUserClick = true; setCookie('mqUserClick', 1); window.location = 'https://static.meiqia.com/dist/standalone.html?eid=' + jgSwtConfig.meiqia; }; }; } };