"ab";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){var e=function(e){var o={};if(e.name.indexOf(" ")>=0)return!1;if(!e.name)return!1;if(o.name=e.name,e.gaSupport?o.gaSupport=e.gaSupport:o.gaSupport=!1,!e.customVarSlot&&e.gaSupport)return!1;if(o.customVarSlot=e.customVarSlot,!e.variations)return!1;o.variations=e.variations,e.chooseVariationNumber?o.chooseVariationNumber=e.chooseVariationNumber:o.chooseVariationNumber=Math.floor(Math.random()*t.keys(o.variations).length),o.newCookieSet=null;var n="abjs_"+o.name,a=t.queryString();if(o.cookieVariation=t.getCookie(n),o.queryVariation=a["abjs-setvar-"+o.name],t.isFunction(o.variations[o.queryVariation])?o.assignedVariation=o.queryVariation:o.assignedVariation=o.cookieVariation,"yes"===a["abjs-setcookie"]&&(o.newCookieSet=!0),""===o.assignedVariation||!t.isFunction(o.variations[o.assignedVariation])){var i=o.chooseVariationNumber;o.assignedVariation=t.keys(o.variations)[i],o.newCookieSet=!0}if(!0===o.newCookieSet){var r=e.cookiePath||window.location.pathname;t.setCookie(n,o.assignedVariation,365,r,e.domain)}return o.execute=function(){t.contentLoaded(window,function(){o.variations[o.assignedVariation]()})},o.execute(),o.gaSupport&&(window._gaq=window._gaq||[],window._gaq.push(["_setCustomVar",o.customVarSlot,"abjs_"+o.name,"abjs_"+o.assignedVariation,1])),o},t={};t.setCookie=function(e,t,o,n,a){var i=new Date;i.setDate(i.getDate()+o),console.log(i.toUTCString());var r=escape(t)+(null===o?"":"; expires="+i.toUTCString()),s=e+"="+r+"; path="+n;a&&(s+="; domain="+a),document.cookie=s},t.getCookie=function(e){var t,o,n,a=document.cookie.split(";");for(t=0;t 1) { if ("number" == typeof (i = e({ path: "/" }, t.defaults, i)).expires) { var a = new Date; a.setMilliseconds(a.getMilliseconds() + 864e5 * i.expires), i.expires = a } i.expires = i.expires ? i.expires.toUTCString() : ""; try { c = JSON.stringify(r), /^[\{\[]/.test(c) && (r = c) } catch (e) { } r = o.write ? o.write(r, n) : encodeURIComponent(r + "").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), n = (n = (n = encodeURIComponent(n + "")).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)).replace(/[\(\)]/g, escape); var s = ""; for (var f in i) i[f] && (s += "; " + f, !0 !== i[f] && (s += "=" + i[f])); return document.cookie = n + "=" + r + s } n || (c = {}); for (var p = document.cookie ? document.cookie.split("; ") : [], d = /(%[0-9A-Z]{2})+/g, u = 0; u < p.length; u++) { var l = p[u].split("="), C = l.slice(1).join("="); this.json || '"' !== C.charAt(0) || (C = C.slice(1, -1)); try { var m = l[0].replace(d, decodeURIComponent); if (C = o.read ? o.read(C, m) : o(C, m) || C.replace(d, decodeURIComponent), this.json) try { C = JSON.parse(C) } catch (e) { } if (n === m) { c = C; break } n || (c[m] = C) } catch (e) { } } return c } } return t.set = t, t.get = function (e) { return t.call(t, e) }, t.getJSON = function () { return t.apply({ json: !0 }, [].slice.call(arguments)) }, t.defaults = {}, t.remove = function (n, o) { t(n, "", e(o, { expires: -1 })) }, t.withConverter = n, t } return n(function () { }) }); "layer-mobilev2.0";;!function(a){"use strict";var b=document,c="querySelectorAll",d="getElementsByClassName",e=function(a){return b[c](a)},f={type:0,shade:!0,shadeClose:!0,fixed:!0,anim:"scale"},g={extend:function(a){var b=JSON.parse(JSON.stringify(f));for(var c in a)b[c]=a[c];return b},timer:{},end:{}};g.touch=function(a,b){a.addEventListener("click",function(a){b.call(this,a)},!1)};var h=0,i=["layui-m-layer"],j=function(a){var b=this;b.config=g.extend(a),b.view()};j.prototype.view=function(){var a=this,c=a.config,f=b.createElement("div");a.id=f.id=i[0]+h,f.setAttribute("class",i[0]+" "+i[0]+(c.type||0)),f.setAttribute("index",h);var g=function(){var a="object"==typeof c.title;return c.title?'

'+(a?c.title[0]:c.title)+"

":""}(),j=function(){"string"==typeof c.btn&&(c.btn=[c.btn]);var a,b=(c.btn||[]).length;return 0!==b&&c.btn?(a=''+c.btn[0]+"",2===b&&(a=''+c.btn[1]+""+a),'
'+a+"
"):""}();if(c.fixed||(c.top=c.hasOwnProperty("top")?c.top:100,c.style=c.style||"",c.style+=" top:"+(b.body.scrollTop+c.top)+"px"),2===c.type&&(c.content='

'+(c.content||"")+"

"),c.skin&&(c.anim="up"),"msg"===c.skin&&(c.shade=!1),f.innerHTML=(c.shade?"
':"")+'
"+g+'
'+c.content+"
"+j+"
",!c.type||2===c.type){var k=b[d](i[0]+c.type),l=k.length;l>=1&&layer.close(k[0].getAttribute("index"))}document.body.appendChild(f);var m=a.elem=e("#"+a.id)[0];c.success&&c.success(m),a.index=h++,a.action(c,m)},j.prototype.action=function(a,b){var c=this;a.time&&(g.timer[c.index]=setTimeout(function(){layer.close(c.index)},1e3*a.time));var e=function(){var b=this.getAttribute("type");0==b?(a.no&&a.no(),layer.close(c.index)):a.yes?a.yes(c.index):layer.close(c.index)};if(a.btn)for(var f=b[d]("layui-m-layerbtn")[0].children,h=f.length,i=0;h>i;i++)g.touch(f[i],e);if(a.shade&&a.shadeClose){var j=b[d]("layui-m-layershade")[0];g.touch(j,function(){layer.close(c.index,a.end)})}a.end&&(g.end[c.index]=a.end)},a.layer={v:"2.0",index:h,open:function(a){var b=new j(a||{});return b.index},close:function(a){var c=e("#"+i[0]+a)[0];c&&(c.innerHTML="",b.body.removeChild(c),clearTimeout(g.timer[a]),delete g.timer[a],"function"==typeof g.end[a]&&g.end[a](),delete g.end[a])},closeAll:function(){for(var a=b[d](i[0]),c=0,e=a.length;e>c;c++)layer.close(0|a[0].getAttribute("index"))}},"function"==typeof define?define(function(){return layer}):function(){var a=document.scripts,c=a[a.length-1],d=c.src,e=d.substring(0,d.lastIndexOf("/")+1);c.getAttribute("merge")||document.head.appendChild(function(){var a=b.createElement("link");return a.href="http://fanwen.c321.cn/lib/js/cpt/dldoc/m/css/layer/layer-m.css?2.0",a.type="text/css",a.rel="styleSheet",a.id="layermcss",a}())}()}(window); var currentPath = 'http://fanwen.c321.cn/lib/js/'; var tradeHost = 'http://fanwen.c321.cn/lib/cpt/'; var timeNum = '222'; var PRICE_SUFFIX=1; var showdl = 1; //1\u4e3a\u663e\u793a -1\u4e3a\u9690\u85cf 0\u4e3a\u9690\u85cf\u5e76\u4e14\u8ba1\u65f6\u5668\u4e0d\u505c\u6b62 \uff08\u4e0b\u8f7d\uff09 var textLen = 0; var jsonKey = ''; var utc = new Date(); var requestSuffix = utc.getUTCFullYear()+"_"+utc.getUTCMonth()+"_"+utc.getUTCDate()+"_"+(Math.floor(utc.getUTCHours()/3)); var dlgs = ''; var constQr = ''; var MiniAppLink = ''; var copyMaskShowAllways = true; var canCopyTextOrAlert,jsonFileName; var price,pricePart,priceFull; var goods,goodsPart,goodsFull; var panUrl, payUrl; var copySuccTxt = copySuccTxtDefault = '\u5DF2\u590D\u5236\u6210\u529F'; //已复制成功 var Q_CITY = decodeURIComponent(Cookies.get('q_city') || ""); var qMapKeys = ['4X5BZ-7F4HU-3Q6VL-BOOHJ-ROE7V-L6BVG', 'CKMBZ-GH5LF-63LJR-NB5QW-DZ6MV-ACFF6']; var Q_MAP_KEY = qMapKeys[Math.floor((Math.random()*qMapKeys.length))]; var ARTICLE_URL; var linkStyle = document.createElement('link'); linkStyle.rel = 'stylesheet'; linkStyle.href = currentPath + 'css/m-style.10.2.css?1.1.' + requestSuffix; insertBefore(linkStyle, document.querySelector('body>*')); //在线咨询 // linkStyle = document.createElement('link'); // linkStyle.rel = 'stylesheet'; // linkStyle.href = currentPath + 'chat/css/chat.css'; // document.body.appendChild(linkStyle); // linkStyle = document.createElement('script'); // linkStyle.src = currentPath + 'chat/js/chat.js'; // document.body.appendChild(linkStyle); function runCpt(){ "b2.m.5.v6.6 yj 503~505";var startTime=parseInt((new Date).getTime()/1e3),utc=new Date,requestSuffix=utc.getUTCFullYear()+"_"+utc.getMonth()+"_"+utc.getDate()+"_"+Math.floor(utc.getHours()/3),useSo=!1,qrname="",qrISGet=!1,articleUri=0===window.location.pathname.indexOf("/dldoc")?window.location.href.split("index")[1].split("?")[0]:window.location.pathname.replace(/[_-]([0-9]|1[0-9]).htm/,".htm"),payCookieKey=hashCode(articleUri).toString(),qrCookieKey=hashCode(articleUri).toString();ARTICLE_URL=window.location.protocol+"http://"+window.location.host+articleUri;for(var expires=30,payTimer=null,city="",scan=Cookies.get("scan_list")||"",scan_list=scan?scan.split("."):[],lanmuArr=[],lanmu=$("
"+lanmuArr.join("")+"
").text()||"",alertTxt={title:"\u4ED8\u8D39\u590D\u5236",art:"\u4ED8\u8D39\u83B7\u5F97\u8BE5\u6587\u7AE0\u590D\u5236\u6743\u9650",price:["\u9650\u65F6\u7279\u4EF7\uFF1A","\u5143/\u7BC7","\u539F\u4EF7:20\u5143"],pT:"\u5FAE\u4FE1\u652F\u4ED8",service:["\u4F1A\u5458\u767B\u5F55","\u8054\u7CFB\u5BA2\u670D"],freeT:["\u514D\u8D39\u590D\u5236","\u4EC5\u97003\u79D2"],placeholder:"\u8BF7\u5728\u8FD9\u91CC\u8F93\u5165\u9A8C\u8BC1\u7801",tip:["1\u3001\u5FAE\u4FE1\u641C\u7D22\u5173\u6CE8\u516C\u4F17\u53F7:",'\u70B9\u51FB\u590D\u5236'],other_tip:["2\u3001\u8FDB\u5165\u516C\u4F17\u53F7\u514D\u8D39\u83B7\u53D6\u9A8C\u8BC1\u7801","3\u3001\u5C06\u9A8C\u8BC1\u7801\u8F93\u5165\u4E0B\u65B9\u6846\u5185\uFF0C\u786E\u8BA4\u5373\u53EF\u590D\u5236"]},codePass=[8888],codeDis=[],artTitle=document.title,copyAlert='',queStr="",queList=[{que:"1\u3001\u652F\u4ED8\u6210\u529F\u540E\uFF0C\u4E3A\u4F55\u65E0\u6CD5\u590D\u5236\u5185\u5BB9\uFF1F",ans:"\u4ED8\u8D39\u540E\u590D\u5236\u4E0D\u4E86\uFF0C\u8BF7\u6838\u5BF9\u4E0B\u5FAE\u4FE1\u8D26\u5355\u4FE1\u606F\uFF0C\u786E\u4FDD\u4ED8\u8D39\u6210\u529F\uFF1B\u5DF2\u4ED8\u8D39\u6210\u529F\u4E86\u8FD8\u662F\u590D\u5236\u4E0D\u4E86\uFF0C\u6709\u53EF\u80FD\u662F\u7535\u8111\u7684\u6D4F\u89C8\u5668\u517C\u5BB9\u6027\u95EE\u9898\u6216\u8005\u624B\u673A\u673A\u578B\u4E0D\u652F\u6301\u7684\u95EE\u9898\u3002"},{que:"2\u3001\u4ED8\u8D39\u540E\u80FD\u5426\u66F4\u6362\u6D4F\u89C8\u5668\u6216\u8005\u6E05\u7406\u6D4F\u89C8\u5668\u7F13\u5B58\u540E\u8FDB\u884C\u590D\u5236\u64CD\u4F5C\uFF1F",ans:"\u66F4\u6362\u6D4F\u89C8\u5668\u6216\u8005\u6E05\u7406\u6D4F\u89C8\u5668\u7F13\u5B58\u4F1A\u5BFC\u81F4\u590D\u5236\u4E0D\u6210\u529F\uFF0C\u8BF7\u4E0D\u8981\u66F4\u6362\u6D4F\u89C8\u5668\u548C\u6E05\u7406\u6D4F\u89C8\u5668\u7F13\u5B58\u3002"},{que:"3\u3001\u5982\u4F55\u8054\u7CFB\u5BA2\u670D\uFF1F",ans:'\u626B\u63CF\u4E0B\u65B9\u4E8C\u7EF4\u7801\u5173\u6CE8\u516C\u4F17\u53F7\u201C\u7F51\u7AD9\u5728\u7EBF\u5C0F\u52A9\u7406\u201D\uFF0C\u53CA\u65F6\u8054\u7CFB\u5BA2\u670D\u89E3\u51B3\u3002\u8BF7\u628A\u3010\u4ED8\u6B3E\u8BB0\u5F55\u8BE6\u60C5\u3011\u622A\u56FE\u7ED9\u5BA2\u670D\uFF0C\u540C\u65F6\u628A\u60A8\u8D2D\u4E70\u7684\u6587\u7AE0\u3010\u7F51\u5740\u3011\u53D1\u7ED9\u5BA2\u670D\u3002\u5BA2\u670D\u4F1A\u572824\u5C0F\u65F6\u5185\u628A\u6587\u6863\u53D1\u9001\u7ED9\u60A8\u3002\uFF08\u5BA2\u670D\u5728\u7EBF\u65F6\u95F4\u4E3A\u5468\u4E00\u81F3\u5468\u4E949:00-12:30 14:00-18:30\uFF09'}],i=0;i
'+queList[i].que+'
'+queList[i].ans+"
";var customerService='",copyIndexAlert='',payAlert='',paySuccess='',paySuccessV2='',kefuImg='';function getQr(){/*!useSo || */qrISGet||($(".text-focus").text("\u52A0\u8F7D\u4E2D..."),$.ajax({url:tradeHost+"v1/trade/qr/free.00",data:{title:document.title,m:1,k:Math.random(),city:Q_CITY,scan:scan,referer:window.location.href.split("#")[0].split("?")[0],lanmu:lanmu},method:"GET",timeout:3e3,success:function(e){qrISGet=!0,constQr||e.qr,qrname="lcxs399",$(".text-focus").text(qrname),showdl="y"===e.dl?1:-1,-1]*>[^<]*<\/iframe>/,"")),$(".pay_success_mask").show()}))})},2500))});var IS_SENDING_EMAIL=!1,IS_SENDING_EMAIL=($(document).on("click",".footerfix_email",function(){layer.open({title:"\u8BF7\u8F93\u5165\u90AE\u7BB1",content:'',shade:!1,btn:["\u53D1\u9001","\u53D6\u6D88"],yes:function(e){var t=document.getElementById("layui-m-layer"+e),o=t.querySelector('input[name="email"]'),i=o.value;if(""===i)return o.focus();cptSendEmail(i,ARTICLE_URL,t.querySelector('.layui-m-layerbtn span[type="1"]')),layer.close(e)}})}),!1);function cptSendEmail(e,t,o){var i,a;if(!IS_SENDING_EMAIL)return e.toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)?(i=Date.parse(new Date),a=parseInt(Cookies.get("last_download_time")),i-a<6e4?(alert("\u90AE\u4EF6\u5DF2\u53D1\u9001\uFF0C\u8BF7\u6CE8\u610F\u67E5\u6536"),!0):($(o).text("\u53D1\u9001\u4E2D"),sendOk=!(IS_SENDING_EMAIL=!0),$.ajax({url:"http://fanwen.c321.cn/lib/cpt/dldoc/send_email",data:{email:e,url:t,k:Math.random()},async:!1,dataType:"json",success:function(e){200==e.code?(Cookies.set("last_download_time",i,{expires:7,path:"/"}),sendOk=!0,alert("\u90AE\u4EF6\u53D1\u9001\u6210\u529F\uFF0C\u8BF7\u6CE8\u610F\u67E5\u6536")):alert(e.msg),$(o).text("\u786E\u5B9A"),IS_SENDING_EMAIL=!1}}),sendOk)):(alert("\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E"),!1)}$(document).on("click",".footerfix_kefu",function(){$(".kefu_qr_img_mask").show()}),$(document).on("click",".paybox-cservice",function(){$(".service_mask").show()}),$(document).on("click",".service-box li",function(){$(this).find(".ans").toggle()}),$(document).on("click",".buy-btn",function(){//window.location.href=window.location.href.split("#")[0].split("?")[0]}),$(document).on("click",".close,.close_btn,.close_aixiezuo",function(){var e=$(this).data("alert");"copy_mask"==e&&"block"===$("."+e+" .codeboxv2").css("display")?($("."+e+" .copy_pay_box").css("display","none"),$("."+e+" .codebox").css("display","none"),$("."+e+" .codeboxv1").css("display","block")):"copy_mask"==e&&"block"===$("."+e+" .copy_pay_box").css("display")?($("."+e+" .copy_pay_box").css("display","none"),$("."+e+" .codebox").css("display","none"),$("."+e+" .codeboxv2").css("display","block")):($("."+e).css("display","none"),clearTimeout(payTimer),clearTimeout(checkPayingTimeout))}),$(document).on("click",".back_to_copy_pay",function(){$(".copy_pay_box").css("display","block"),$(".codebox").css("display","none")}),$(".copy_mask").bind("beforeShow",function(){payPrice(),$(".copy_pay_box").css("display","block"),$(".codebox").css("display","none")}),canCopyTextOrAlert=function(){var e=Cookies.get(payCookieKey),t=Cookies.get(qrCookieKey),o=Cookies.get("is_vip");return!!(void 0!==e||void 0!==t||void 0!==o||"222"!==timeNum||"none"!==window.getComputedStyle(document.querySelector(".copy_mask.mask")).display||document.querySelector(".download_mask.mask")&&"none"!==window.getComputedStyle(document.querySelector(".download_mask.mask")).display)||(log({type:"alert",value:parseInt((new Date).getTime()/1e3)-startTime}),$(".copy_mask").show(),console.log("canCopyTextOrAlert copy_mask"),!1)},document.addEventListener("copy",function(e){canCopyTextOrAlert()?layer.open({content:copySuccTxt,time:1,shade:!1,className:"constom-layer",end:function(){copySuccTxt=copySuccTxtDefault}}):e.preventDefault()});var _time=null;function allowCopy(){var e=Cookies.get(payCookieKey),t=Cookies.get(qrCookieKey),o=Cookies.get("is_vip");return void 0!==e||void 0!==t||void 0!==o}window.ontouchstart=function(e){_time=setTimeout(function(){var e=Cookies.get(payCookieKey),t=Cookies.get(qrCookieKey),o=Cookies.get("is_vip");void 0===e&&void 0===t&&void 0===o&&(console.log("on touch start copy_mask"),$(".delay_click_mask").show(),$(".copy_mask").show()),setTimeout(function(){$(".delay_click_mask").hide()},500)},400)},window.ontouchmove=function(e){clearTimeout(_time)},window.ontouchend=function(e){clearTimeout(_time)},"undefined"!=typeof cookieStore&&cookieStore&&cookieStore.addEventListener&&cookieStore.addEventListener("change",e=>{console.log("cookie change"),allowCopy()&&$(".after_paid_display_block").css("display","block")}),Cookies.set("ck_change_ready",Math.random(),{path:"/"}),$(document).on("click",".explode_to_word",function(){export2Word("article_text_cpt")}),$(document).on("click",".houhao_code",function(){if("a"===$(this)[0].tagName.toLowerCase())return $(this).attr("href",panUrl),!0;var e=parseInt($(this).prev().val());-1",cpt_foot_ele="",newHtml=($("body").append(cpt_foot_ele),$("
")),newHtmlStop=!1,qrISGet=($(newHtml).css({position:"fixed",width:"1000px",right:"-1000px"}),$(newHtml).attr("id","article_text_cpt"),$("body").append($(newHtml)[0].outerHTML),document.getElementsByClassName("content")&&document.getElementsByClassName("content")[0].childNodes.forEach(function(e){if(!newHtmlStop&&!((newHtmlStop="#text"!==e.nodeName.toLowerCase()&&-1"))return;$("#article_text_cpt").append(t)}}),$(document).on("click",".footerfix_fuzhi",function(e){payUrl=getPayUrl(),selectText(document.getElementById("article_text_cpt")),document.execCommand("copy"),$(".copy_index").hide()}),$(document).on("click",".footerfix_fuzhi_part",function(e){payUrl=getPayUrl(),copyMaskShowAllways=!1,copySuccTxt="\u8BF7\u957F\u6309\u9009\u53D6\u60A8\u8981\u590D\u5236\u7684\u5185\u5BB9",canCopyTextOrAlert()&&layer.open({content:copySuccTxt,time:1,shade:!1,className:"constom-layer",end:function(){copySuccTxt=copySuccTxtDefault}}),$(".copy_index").hide()}),$(document).on("click",".copy-free-description .text-icofuzhi",function(e){selectText($(".copy-free-description .text-focus")[0]);document.execCommand("copy"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()}),$("h1.title").after(dlTitleBoxHtml),!1);(getQr=function(){qrISGet||$.ajax({url:tradeHost+"v1/trade/qr/free.2",data:{title:document.title,scan:scan,fpact:"r",city:Q_CITY,lanmu:lanmu,referer:ARTICLE_URL,k:Math.random()},method:"GET",timeout:3e3,success:function(e){var t;qrISGet=!0,globalAType=e.a_type,"n"!=e.sp&&window.location.href.indexOf("/dldoc/")<0&&(t="http://pan.ruiwen.com/#"+(e=e.sp.split("_"))[1],-1',$(".content").prepend(panAHtml)),qrname="lcxs399",$(".text-focus").text(qrname)},complete:function(){}})})(); } var myAbTest = myAbTest || ABTest({ name: "ab_test", customVarSlot: 1, variations: { a:function () { jsonFileName = "m/2/alert.m.a.json"; jsonKey='a'; PRICE_SUFFIX=99; runCpt(); }, b:function () { jsonFileName = "m/2/alert.m.b.json"; jsonKey='b'; PRICE_SUFFIX=99; runCpt(); }, } }); var starImg = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAY1BMVEUAAAD/mAD/mgD/mQD/mQD/mQD/mQD/mAD/mQD/mQD/mQD//wD/mQD/mAD/nwD/mQD/mAD/mQD/mQD/mgD/mAD/mQD/mAD/mAD/mQD/mgD/mQD/mgD/lwD/mQD/lQD/mwD/mQAl+fFuAAAAIHRSTlMA7ytS5M++uGk2JAGqjAzr1ZKFR/agl005MMxiYF8YF49KoKIAAAC9SURBVDjLlZJZCsMwDETl2vEWZ9+76v6nrAkhYCUR7fsyzGNgsOBP8mHIWUEiSragRqxzvoBW0IJIxhdEpkshQ2QrJtzomIKritK9WoM7pni6EjZm22iFJyjdWAcgkUWCF1wuPMAimPwGkZvgcmrQnDOqmFOD5pxReUiwVLCQUlChIIKhgiGCooIiv4kHykSYj4I7HdG3bb89H4nQ4Mr4AXiPZzM0RoKHFR/WGXSEXmDHaToj3Mkld1mA3/gCrXs1vl7stYYAAAAASUVORK5CYII='; if(document.querySelector('.after_height_light_second_floor ~ p')){ document.querySelector('.after_height_light_second_floor ~ p').className = 'rel_art_line'; } document.addEventListener('DOMContentLoaded',function () { // $('.mask_box.alert-bounceIn .b_box').append('\u63D0\u793A\uFF1A\u5982\u65E0\u9700\u590D\u5236\uFF0C\u8BF7\u4E0D\u8981\u957F\u6309\u5C4F\u5E55\u5F71\u54CD\u9605\u8BFB\u4F53\u9A8C'); /*\u653e\u7f6e\u4e0b\u8f7d\u5361\u7247*/ var showdltimer = setInterval(function () { if(showdl && showdl === 1){ var pathname = location.pathname; var star = 0; for (var i = 0; i < pathname.length; i++) { star = parseInt(star) + parseInt(pathname.charCodeAt(i)); } var str = ''; for (i = 0; i < 5; i++) { str += '\n'; } var lala = 'http://' + location.host.replace(/^(mip)\./,'m.'); var r = Math.random(); var dlLink = lala+'/dldoc/index'+pathname+'?dlgs='+dlgs+'&ps='+PRICE_SUFFIX+'&jk='+jsonKey+'&ma='+encodeURIComponent(MiniAppLink)+'&r='+r+timeNum; var d = '\n' + '
\n' + '
\u300a' + document.title + '.doc\u300b
\n' + ' \n' + '
\u5c06\u672c\u6587\u7684Word\u6587\u6863\u4e0b\u8f7d\uff0c\u65b9\u4fbf\u6536\u85cf\u548c\u6253\u5370
\n' + '
\n' + ' \u63a8\u8350\u5ea6\uff1a\n' + str + '
\n' + '
\n' + '
\n' + ' \n' + '
\u70b9\u51fb\u4e0b\u8f7d\u6587\u6863
\n' + '
\n' + '
'; $(document).on('click','.download_card, .download_fixed_fuzhi a, .footerfix_download a, a.footerfix_download',function (e) { $(this).attr('href', dlLink); }); var flag = true; var bmd = ['/jianlixiazai/','/company/','/zhaopin/','/mingqi/','/gaoxiao/','/sydwzp/','/xuanjianghui/','/zhaopinhui/','/ftp/','/ask/','/zi/','/ci/']; var reg = /\d+\.(htm)/; for(var i = 0; i < bmd.length;i++){ if(location.href.indexOf(bmd[i]) != -1 || !reg.test(location.href)){ flag = false; break; } } if($(".content").length > 0){ var html = $(".content").html(); html = html.replace(/]*>[\s\S]*?<\/script>/ig, ''); html = html.replace(/]*>[\s\S]*?<\/style>/ig, ''); html = html.replace(/]*>[\s\S]*?<\/a>/ig, ''); html = html.replace(/]*>[\s\S]*?<\/iframe>/ig, ''); textLen = $('
').html(html).text().replace(/[\u3000\u3010\u3011\s\r\n\t]/g,'').length; } if ((textLen > 800 && flag) || typeof DOWNLOAD_OK !== "undefined") { if($('.download_card').length === 0){ $(".after_height_light").after(d); } } if(typeof BD_MEDIUM_ID !== 'undefined'){ var dlRBottomHtml = '
\u5728\u7EBF\u54A8\u8BE2
'; $('.content').append(dlRBottomHtml); $('body').append(''); $(document).on('click', '#bd_ai_chat', function(){ if(document.querySelector('#edu-bot-iframe')){ document.querySelector('#edu-bot-iframe').style.display='block'; }else{ const iframe = document.createElement('iframe'); iframe.src = 'http://aibqt.baidu.com/edu-bot/'; iframe.id = 'edu-bot-iframe'; iframe.style = 'border:0px;width:100vw;height:60vh'; document.getElementById('edu-bot-container').style.display = 'block'; document.getElementById('edu-bot-container').appendChild(iframe); } }); }else{ /* ai_box var dlRTopHtml = '' +'

\u6587\u7AE0\u4EE3\u5199\u670D\u52A1

\u8D44\u6DF1\u5199\u624B \u2022 \u5E2E\u4F60\u5199\u6587\u7AE0

\u54C1\u8D28\u4FDD\u8BC1\u3001\u539F\u521B\u9AD8\u6548
\u91CF\u8EAB\u5B9A\u5236\u6EE1\u8DB3\u60A8\u7684\u9700\u6C42

\u70B9\u51FB\u4F53\u9A8C
'; var dlRBottomHtml = '
\u6587\u7AE0
\u4EE3\u5199
'; $('.content h2:nth-of-type(2)').before(dlRTopHtml); var dlRTopHtml2 = '' +'

\u6587\u7AE0\u4EE3\u5199\u670D\u52A1

\u8D44\u6DF1\u5199\u624B \u2022 \u5E2E\u4F60\u5199\u6587\u7AE0

\u54C1\u8D28\u4FDD\u8BC1\u3001\u539F\u521B\u9AD8\u6548
\u91CF\u8EAB\u5B9A\u5236\u6EE1\u8DB3\u60A8\u7684\u9700\u6C42

\u70B9\u51FB\u4F53\u9A8C
'; $('.excellent_articles_box').before(dlRTopHtml2); $('.content').append(dlRBottomHtml); $('body').append(''); $(document).on('click', '.ai_box_btn', function(){ var href = $(this).data('href'); if(href){ const bdLink = document.createElement('a'); bdLink.target = "_blank"; bdLink.href = href; bdLink.click(); } }); */ } /* if(window.location.host.indexOf('50.c') < 0 && window.location.host.indexOf('wen.c') < 0){ if(!$('.special_a_for_qr')[0]){ var aInfos = ["pc_a","pc_b","m_a","m_b"]; var qrRelate = { a: 2, b: 3, default: -1, }; var qrSrc = jsonKey; if(qrSrc){ var aKey = qrRelate.default; if(qrRelate[qrSrc] !== undefined){ aKey = qrRelate[qrSrc] } var aInfo = aInfos[aKey]; $('.content').before('
' +'
' +'' +'
'); } } } */ clearInterval(showdltimer); } },1000) }); function getCity(callback){ if(typeof callback === 'function'){ callback(); } return; if(Q_CITY) { if(typeof callback === 'function'){ callback() } return; } $.ajax({ url: 'http://apis.map.qq.com/ws/location/v1/ip', data: {key: Q_MAP_KEY,output: 'jsonp'}, dataType: "jsonp", timeout: 3000, success: function (res) { if (res.status === 0) { if (res.result.ad_info) { var areaData = {}; if(res.result.ad_info.province) areaData[res.result.ad_info.province] = 1; if(res.result.ad_info.city) areaData[res.result.ad_info.city] = 1; if(res.result.ad_info.district) areaData[res.result.ad_info.district] = 1; var qCity = ""; for(var i in areaData){ qCity += i; } Q_CITY = qCity; Cookies.set('q_city', encodeURIComponent(Q_CITY), {expires:60,path:"/"}); } } }, complete: function () { if(typeof callback === 'function'){ callback() } } }) } function hashCode(s) { var h = 0, l = s.length, i = 0; if (l > 0) while (i < l) h = (h << 5) - h + s.charCodeAt(i++) | 0; return h; } function selectText(node) { if (document.body.createTextRange) { const range = document.body.createTextRange(); range.moveToElementText(node); range.select(); } else if (window.getSelection) { const selection = window.getSelection(); const range = document.createRange(); range.selectNodeContents(node); selection.removeAllRanges(); selection.addRange(range); } else { console.warn("Could not select text in node: Unsupported browser."); return null; } } function getPayUrl(isVip){ var PAY_URI_BASE = 'v5/wechat/normal/pay/app/'; var payUrl = tradeHost + PAY_URI_BASE + 'mopy'; if(isVip === true){ payUrl = tradeHost + "v1/wechat/vip/pay/mopy/241"; }else if(window.location.pathname.indexOf('/dldoc') === 0){ payUrl = tradeHost + PAY_URI_BASE + 'mlpy'; } return payUrl + '?h5=y' + '&ps=' + PRICE_SUFFIX + '&title=' + encodeURIComponent(document.title) + '&rd=' + encodeURIComponent(ARTICLE_URL) + '&referer=' + encodeURIComponent(ARTICLE_URL) + '&city=' + encodeURIComponent(Q_CITY) + '&k=' + Math.random(); } function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split("="); if (pair[0] == variable) { return pair[1]; } } return (false); } function export2Word(element){ if(navigator.userAgent.toLowerCase().match(/baiduboxapp/)){ window.location.href = "http://"+window.location.host + "/pic/dldoc/page1" + window.location.pathname+'.doc'; return; }else if(navigator.userAgent.toLowerCase().match(/micromessenger|alipayclient|aweme|iqiyi|weibo/)){ alert('如遇到下载无响应/出错的问题,请使用浏览器访问本页面'); } var title = document.title; var preHtml = ""+title+""; var postHtml = ""; var html = preHtml+"
"+(document.querySelector("h1.title") ? document.querySelector("h1.title").textContent : title)+"
" +document.getElementById(element).innerHTML+postHtml; var blob = new Blob(['\ufeff', html], { type: 'application/msword' }); // Specify link url var url = 'data:application/vnd.ms-word;charset=utf-8,' + encodeURIComponent(html); // Specify file name filename = title+'.doc'; // Create download link element var downloadLink = document.createElement("a"); document.body.appendChild(downloadLink); if(navigator.msSaveOrOpenBlob ){ navigator.msSaveOrOpenBlob(blob, filename); }else{ // Create a link to the file downloadLink.href = url; // Setting the file name downloadLink.download = filename; //triggering the function downloadLink.click(); } document.body.removeChild(downloadLink); } jQuery(function($) { var _oldShow = $.fn.show; $.fn.show = function(speed, oldCallback) { return $(this).each(function() { var obj = $(this), newCallback = function() { if ($.isFunction(oldCallback)) { oldCallback.apply(obj); } obj.trigger('afterShow'); }; // you can trigger a before show if you want obj.trigger('beforeShow'); // now use the old function to show the element passing the new callback _oldShow.apply(obj, [speed, newCallback]); }); } }); //##########################--------########################## //##########################--------########################## //##########################--------########################## var conddq = s('content_mid') || []; var con = document.getElementsByClassName('content')[0]; var conH2 = []; if(window.location.host.indexOf('x.c') > -1){ conH2 = con ? con.getElementsByTagName("h2") : []; } var divStyle = { background: '#f3f3f3', padding: '10px 10px 4px', borderRadius: '6px', marginBottom: '16px', marginTop: '8px', } var aIndex = 0; for(var i=1; i" + "\u641C\u7D22\u6587\u6863" + "
"; $('.content').after(sBoxHtml); } //文章dx $(document).on('click', '.footerfix_wenmi', function(){ $(".footerfix_kefu_mask").show(); }) $(document).on('click', '.footerfix_kefu_close', function(){ $(".footerfix_kefu_mask").hide(); }) }); //内容底部按钮悬浮判断 $(function(){ $(window).on('scroll',function(){ var scrollTop = document.documentElement.scrollTop || document.body .scrollTop // 滚动条距离顶部的距离 var windowHeight = document.documentElement.clientHeight || document.body .clientHeight // 可视区的高度 var scrollHeight = document.documentElement.scrollHeight || document.body .scrollHeight //dom元素的高度,包含溢出不可见的内容 if (scrollTop >= 844) { if(scrollTop + windowHeight - 400 > document.querySelector('.after_height_light_second_floor').offsetTop){ $('.footerfix').removeClass("footerfix_te"); }else{ $('.footerfix').addClass('footerfix_te'); } } else { $('.footerfix').removeClass("footerfix_te"); } }) }); //清理特定图片 var conImgs = con.querySelectorAll('img'); for(var i=0; i<= conImgs.length; i++){ if(!conImgs[i] || !conImgs[i].src) continue; imgSrc = conImgs[i].src; console.log(imgSrc, imgSrc.indexOf('fanwen.c321.cn/lib/p') < 0, imgSrc.indexOf('/allimg/') > -1) if(imgSrc.indexOf('fanwen.c321.cn/lib/p') < 0 || imgSrc.indexOf('/allimg/') > -1) continue; if(conImgs[i].parentElement.tagName.toLowerCase() === 'p'){ conImgs[i].parentElement.outerHTML = ''; }else{ conImgs[i].style.display = 'block'; } }