var jgIP="52.15.57.52";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 popStyle2 = [ '
', '第二种第二种', '
', '
', '
', '
电话
', ' ', '第二种第二种', '
', '
', '', '', '
', '
', '
', ];*/ var popStyle3 = [ '
', '
', '
', '

加医生微信教你识别白癜风

', '

今天已有35人获得专业解答

', '

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

', 'BDF191

', '', ' 已记下微信号,点击去微信加好友', '
', '
', ]; /*中间弹窗样式三 var popStyle3 = [ '
', '第三种第三种', '
', '
', '
', '
电话
', ' ', '第三种第三种', '
', '
', '', '', '
', '
', '
', ];*/ /*凌晨时段弹窗*/ // floatDiv= [ // "", // '
', // '
', // '

答疑中心

', // '

身上白斑,白块是白癜风吗?

', // '

百度十下,不如留言一下!

', // '
', // '
', // ' ', // ' ', // ' ', // ' ', // '
', // '
', // ' 温馨提示:', // '

23点值班医生约会周公啦,乖乖留下你的联系方式,明早八点开工,送上属于你的祛白全攻略。

', // '
', // ' ', // '
' // ]; function domen () { document.writeln(""); } var floatDivInsertYJ = document.createElement('div'); // floatDivInsertYJ.innerHTML = floatDiv.join(''); document.body.appendChild(floatDivInsertYJ); var yjly = document.getElementById('yjly'); function showyjly() { domen(); //var docHeight = $(document).height(); //获取窗口高度 // var docHeight = 1015; // $('body').append('
'); // $('#overlay') // .height(docHeight) // .css({ // 'opacity': 1, //透明度 // 'position': 'absolute', // 'top': 0, // 'left': 0, // 'background-color': 'black', // 'width': '100%', // 'z-index': 5000 //保证这个悬浮层位于其它内容之上 // }); //setTimeout(function(){$('#overlay').fadeOut('slow')}, 3000); // yjly.style.display = 'block'; // yjly.style.zIndex = "100"; // swtCenter.style.display = 'none' } function hideyjly() { yjly.style.display = 'none'; yjly.style.marginRight = "300px"; yjly.style.zIndex = "-100"; /*swtCenter.style.display = 'block'*/ } 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 = 'swtCenter1_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 = 'swtCenter2_1';*/ swtClose.style.top = '0'; middleContent.style.display = 'block'; swtCircle.style.display = 'none'; jgSwtConfig.showStatus = true; break; } } var hideCenter = 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_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 = 'swtCenter1_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 = 'swtCenter2_2'; middleContent.style.display = 'none'; swtCircle.style.display = 'block'; swtCircle.className = 'swtCircle'; swtClose.style.top = '-30px'; jgSwtConfig.showStatus = false; break; } } 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 addWxChange = function(){ if (openWxCenter) { showWxIco(); }else{ hideWxCenter(); } } var centerChange = function() { if (jgSwtConfig.showStatus) { console.log(jgSwtConfig.showStatus); hideCenter(); } else { console.log(jgSwtConfig.showStatus); showCenter(); } } /*底部固定导航*/ var footerFiex = [ '
', ' ', '
', '
' ] // var footerFiex = [ // '
', // '
', // ' 咨询医生', // // ' 手机挂号', // ' 瑞金介绍', // ' 来院路线', // ' 导医台
', // // ' 导医台
', // '
', // '
' // ] var footerFiexInsert = document.createElement('div'); footerFiexInsert.innerHTML = footerFiex.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 = 2; var showLi = Math.round(Math.random() * 1); 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 = "85%"; bttcClose.style.left = "95%"; bttcClose.style.width = "25px"; leftText.style.opacity = "0"; bttcContent.style.display = 'block'; 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() { document.getElementById('swtCenter').style.display = 'none'; document.getElementById('bottomTanChuang').style.display = 'none'; document.getElementById('jgAddon').style.display = 'none'; document.getElementById('footer123').style.display = 'none'; document.getElementById('LRdiv3').style.display = 'none'; }; function hideAll1() { // document.getElementById('swtCenter').style.display = 'none'; document.getElementById('bottomTanChuang').style.display = 'none'; /*document.getElementById('footer123').style.display = 'none';*/ }; function showAll() { /*document.getElementById('swtCenter').style.display = 'block';*/ document.getElementById('jgAddon').style.display = 'block'; document.getElementById('footer123').style.display = 'block'; document.getElementById('LRdiv3').style.display = 'block'; }; /*END*/ /*百度事件统计功能*/ function lableTj(a, b, c, d) { _hmt.push(["_trackEvent", a, b, c, d]) }; /*END*/ /*中间弹窗显示、隐藏控制*/ var toSWTK = 0; if (jgSwtConfig.centerPop && jgSwtConfig.centerPop == 'on') { toSWTK ++; var toSWTtime; if (toSWTK == 1){ toSWTtime = 120; }else { toSWTtime = (toSWTK-1)*10+120; } if(jgIP != '36.7.114.85'){ var myDate = new Date(); if(myDate.getHours()>=7) { setTimeout(function () { openZoosUrl('chatWin','&e=强制60秒弹出对话'); }, toSWTtime * 1000); } } setTimeout(hideCenter,3*1000); console.log('中间弹窗开启,弹窗样式为:' + jgSwtConfig.popStyle); }else{ console.log('中间弹窗关闭, 弹窗样式为:' + jgSwtConfig.popStyle); } /*底部专家弹窗显示、隐藏控制*/ if (jgSwtConfig.zjPop && jgSwtConfig.zjPop == 'on') { var zop = setTimeout(function() { bottomTanChuang.style.display = 'block' }, 3000); setTimeout('showBottomTanChuang()',6*1000); } /*底部固定导航显示、隐藏控制*/ if (jgSwtConfig.footer123 && jgSwtConfig.footer123 == 'on') { document.getElementById('footer123').style.display = 'block'; console.log('底部固定导航显示'); }else{ document.getElementById('footer123').style.display = 'none'; console.log('底部固定导航隐藏'); } var myyk = 'http://m.yyk.99.com.cn/' + /\w+\/\w+(\w+\.html)?/; if (location.href == myyk) { document.getElementById('swtCenter').style.display = 'none'; document.getElementById('bottomTanChuang').style.display = 'none'; } /*屏蔽img属性值*/ var image = document.getElementsByTagName("img"); for (var i = 0; i < image.length; i++) { image[i].setAttribute("contenteditable","false"); } /*瑞金专题页视频控制*/ // 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(); // }else{ // vdoObj.pause(); // showAll(); // } // } // } /*END*/ var weJs = document.createElement('script'); weJs.src = 'http://swt.jgyljt.com/2/sj/wx.js?t=0613'; document.body.appendChild(weJs); // document.writeln(""); 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 = false; 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]*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; }; }; } };