!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0 -1) if (oksz==1) { var that = this, reader = new FileReader(); //file = e.clipboardData.items[0].getAsFile(); //ajax上传图片 reader.onload = function(e) { setTimeout("hintbox('show','正在上传中...')",0000); var xhr = new XMLHttpRequest(), fd = new FormData(); xhr.open('POST', "https://tu.zqkangcheng.cn/index/jtsz", true); xhr.onload = function () { var img = new Image(); img.src = xhr.responseText; //dataxznkf('jtszpic').value = xhr.responseText; dataxznkf("img_puth").value = xhr.responseText; //alert(xhr.responseText); setTimeout("hintbox('hide',3)",800); jtszh(null); } // this.result得到图片的base64 (可以用作即时显示) fd.append('file', this.result); xhr.send(fd); } reader.readAsDataURL(file); } }, false); } function tdsz(){ //拖动上传 document.getElementById('describecon').ondrop=function (e){ e.preventDefault(); // console.log(e.dataTransfer.files[0]); var file=e.dataTransfer.files[0];//获取到第一个上传的文件对象 var fnmae = file.name; var fileSize = file.size; if(fileSize>5242880 ){ setTimeout("hintbox('show','文件过大,请点击下面文件夹图片来上传哦')",0000); setTimeout("hintbox('hide',3)",2000); return false; } var fhz = fnmae.split(".").pop(); var that = this, reader = new FileReader(); //file = e.clipboardData.items[0].getAsFile(); //alert(file); //ajax上传图片 reader.onload = function(e) { setTimeout("hintbox('show','正在上传中...')",0000); var xhr = new XMLHttpRequest(), fd = new FormData(); fd.append("fhz",fhz); xhr.open('POST', "https://tu.zqkangcheng.cn/index/jtsz", true); xhr.onload = function () { //var img = new Image(); //img.src = xhr.responseText; //that.innerHTML = ''; dataxznkf("img_puth").value = xhr.responseText; //alert(xhr.responseText); setTimeout("hintbox('hide',3)",800); jtszh(fnmae); } // this.result得到图片的base64 (可以用作即时显示) fd.append('file', this.result); //that.innerHTML = ''; xhr.send(fd); } reader.readAsDataURL(file); } } function jtszh(fc){ var way = dataxznkf("img_puth").value; var urlch = "https://tu.zqkangcheng.cn/index/jtszh"; var fnmae = fc; var yhid = dataxznkf('scyhid').value; var con = "fnmae="+fnmae+"&yhid="+yhid+"&appid=7536&yzm=s47ass347s&way="+way; var checkEmail; if (window.ActiveXObject){ checkEmail=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ checkEmail=new XMLHttpRequest(); } checkEmail.onreadystatechange = function DcheckEmail() { if(checkEmail.readyState==4){ if (checkEmail.status==200){ // alert(checkEmail.responseText) var vc=checkEmail.responseText.replace(/\s+/g,"");//删除所有空格;;; if(vc == 8){ dataxznkf('ifsx').value=1; } } } } checkEmail.open('post',urlch,true);//true 异步操作 checkEmail.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); checkEmail.send(con); } function xsbox(){ if(dataxznkf('hk-center-wrap')!=undefined){ dataxznkf("hk-center-wrap").style.display = "block"; } if(dataxznkf('hk-center-mark')!=undefined){ dataxznkf("hk-center-mark").style.display = "block"; } } function gbbox(){ if(dataxznkf('hk-center-wrap')!=undefined){ dataxznkf("hk-center-wrap").style.display = "none"; } if(dataxznkf('hk-center-mark')!=undefined){ dataxznkf("hk-center-mark").style.display = "none"; } } function xsdb(){ if(dataxznkf('hk-bottom-small')!=undefined){ dataxznkf("hk-bottom-small").style.left = "-68px"; } if(dataxznkf('hk-bottom-wrap')!=undefined){ dataxznkf("hk-bottom-wrap").style.width = "100%"; } if(dataxznkf('hk-bottom-box')!=undefined){ dataxznkf("hk-bottom-box").style.display = "block"; } } function gbdb(){ if(dataxznkf('hk-bottom-small')!=undefined){ dataxznkf("hk-bottom-small").style.left = "0"; } if(dataxznkf('hk-bottom-wrap')!=undefined){ dataxznkf("hk-bottom-wrap").style.width = "auto"; } if(dataxznkf('hk-bottom-box')!=undefined){ dataxznkf("hk-bottom-box").style.display = "none"; } } function xsmdb(){ if(dataxznkf('hk-center-mark')!=undefined){ dataxznkf("hk-center-mark").style.display = "block"; } if(dataxznkf('hk-center-box-mobile')!=undefined){ dataxznkf("hk-center-box-mobile").style.display = "block"; } } function gbmdb(){ if(dataxznkf('hk-center-mark')!=undefined){ dataxznkf("hk-center-mark").style.display = "none"; } if(dataxznkf('hk-center-box-mobile')!=undefined){ dataxznkf("hk-center-box-mobile").style.display = "none"; } } function xszb(){ if(dataxznkf('hk-simple-formbox')!=undefined){ dataxznkf("hk-simple-formbox").style.left = "0"; } } function gbzb(){ if(dataxznkf('hk-simple-formbox')!=undefined){ dataxznkf("hk-simple-formbox").style.left = "-399px"; } } function xsbq(){ var ifbq = dataxznkf('ifbq').value; if(ifbq==0){ dataxznkf("bqtp").style.display = "block"; dataxznkf("tmfc").style.display = "block"; dataxznkf('ifbq').value=1; }else{ dataxznkf("bqtp").style.display = "none"; dataxznkf("tmfc").style.display = "none"; dataxznkf('ifbq').value=0; } } function xswx(){ var ifwx = dataxznkf('ifwx').value; if(ifwx==0){ dataxznkf("wxewm").style.display = "block"; dataxznkf("tmfca").style.display = "block"; dataxznkf('ifwx').value=1; }else{ dataxznkf("wxewm").style.display = "none"; dataxznkf("tmfca").style.display = "none"; dataxznkf('ifwx').value=0; } } function xsqq(){ var ifqq = dataxznkf('ifqq').value; if(ifqq==0){ dataxznkf("qqewm").style.display = "block"; dataxznkf("tmfcb").style.display = "block"; dataxznkf('ifqq').value=1; }else{ dataxznkf("qqewm").style.display = "none"; dataxznkf("tmfcb").style.display = "none"; dataxznkf('ifqq').value=0; } } function dkqq(){ var dqqq = dataxznkf('dqqq').value; window.open('https://wpa.qq.com/msgrd?v=3&uin='+dqqq+'&site=qq&menu=yes','_blank',""); } function xswt(){ var ifwt = dataxznkf('ifwt').value; if(ifwt==0){ dataxznkf("cjwtl").style.display = "block"; dataxznkf("tmfcc").style.display = "block"; dataxznkf('ifwt').value=1; }else{ dataxznkf("cjwtl").style.display = "none"; dataxznkf("tmfcc").style.display = "none"; dataxznkf('ifwt').value=0; } } function gbltck(){ dataxznkf("tooly").style.display = "none"; if(dataxznkf('toola')!=undefined){ dataxznkf("toola").style.display = "block"; } } function xsltck(){ //新窗口 /* */ //ifjzsx - 是否加载刷新 if(dataxznkf('ifjzsx')!=undefined){ dataxznkf('ifjzsx').value=1; } if(dataxznkf('tooly')!=undefined){ dataxznkf("tooly").style.display = "block"; } if(dataxznkf('toola')!=undefined){ dataxznkf("toola").style.display = "none"; } } function lxlyan(){ if(dataxznkf('hk-center-wrap')!=undefined){ dataxznkf("hk-center-wrap").style.display = "block"; } if(dataxznkf('hk-center-mark')!=undefined){ dataxznkf("hk-center-mark").style.display = "block"; } gbltck(); } function upgoodpicing(con){ setTimeout("hintbox('show','正在上传中...')",0000); dataxznkf('zd').value=con; var yhid = dataxznkf('scyhid').value; dataxznkf('yhid').value=yhid; document.formnavpic.submit(); } function upgoodpicingh(cona,conb){ if(conb == 74){ setTimeout("hintbox('show','客服繁忙')",0000); setTimeout("hintbox('hide',3)",1000); }else if(conb != 8){ var con = conb; setTimeout("hintbox('show','"+con+"')",0000); setTimeout("hintbox('hide',3)",1500); }else{ dataxznkf('ifsx').value=1; } } function fsa(nr,sj,ifjqrhf){ if(ifjqrhf==11){ }else{ //触发人工 } if(ifjqrhf==1){ //防止第二问候语 dataxznkf('ifyhf').value=1; } //有内容了,预防加载客服出来 dataxznkf('ifhnr').value=1; var lsid = dataxznkf('lsid').value; //alert(lsid); var s=''; s+="
"; s+="
"; s+="
"; s+="
"; s+="
"; var str=sj; var shijian = str.substring(str.length-8); s+="我  "+shijian; s+="
"; s+="
"; s+="
"; s+="
"; s+="
"; s+=""; var vcc = nr; vcc=vcc.replace(/\r\n/g,"
"); vcc=vcc.replace(/konghang/g,"
"); vcc=vcc.replace(/kongge/g," "); vcc=vcc.replace(/\n/g,"
"); vcc = vcc.replace(/【-/g, ""); s+=vcc; s+="
"; s+="
"; s+="
"; s+="
"; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; ztspbf(); } function qkbd(){ dataxznkf('describecon').value=''; } function hqlsid(){ var today=new Date(); var year = today.getYear(); var month = today.getMonth(); var h=today.getHours(); var m=today.getMinutes(); var s=today.getSeconds(); var sjs = Math.floor(Math.random() * 10000) + 1; dataxznkf('lsid').value = year+""+month+""+h+""+m+""+s+""+sjs; } function jzjsdh(){ dataxznkf('ifykqjsdh').value=0; //启用 var ifkqjsdh = dataxznkf('ifkqjsdh').value; if(ifkqjsdh==0){ return false; } var clock = ''; var nums = 0; clock = setInterval(doLoop,1000); //一秒执行一次 function doLoop(){ var zxnums = dataxznkf('zxnums').value; if(zxnums==1){ nums = 0; } dataxznkf('zxnums').value=0; nums--; if(nums > 0){ }else{ clearInterval(clock); //清除js定时器 nums = 0; //重置时间 jsdhtsy(); } } } function ywnzz(){ var s="
【已为您转接人工客服】
"; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; } function kfjsdh(){ //0秒不启用 var ifkqjsdh = dataxznkf('ifkqjsdh').value; if(ifkqjsdh==0){ return false; } var ifyhjs = dataxznkf('ifyhjs').value; if(ifyhjs==1){ return false; } jsdhtsy(); } function jsdhtsy(){ //已开启 var ifykqjsdh = dataxznkf('ifykqjsdh').value; if(ifykqjsdh==1){ return false; } dataxznkf('ifykqjsdh').value=1; var s=''; s+="
"; s+="
"; s+="
"; var cshead = dataxznkf('cshead').value; s+=""; s+="
"; s+="
"; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
"; s+="
"; s+="
"; var str ="【系统提示】我还在等您的回复哦,2分钟内无应答系统将会自动结束本次对话。如问题未解决,请回复一下哦,我不想就这么与您分开呢"; str = str.replace(""; s+=""; s+=str; s+=""; s+="
"; s+="
"; s+="
"; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); dataxznkf('ifqdjsdh').value=1; setTimeout("jsdh()",120000); } function jsdh(){ var ifqdjsdh = dataxznkf('ifqdjsdh').value; if(ifqdjsdh!=1){ return false; } var yhid = dataxznkf('scyhid').value; var topurl = "https://kf.ycsyys.cn/index/jsdh"; var conveyCon = "appid=7536&yzm=s47ass347s&id="+yhid+""; var top;//定义ajax对象; if (window.ActiveXObject){ top =new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ top =new XMLHttpRequest(); } top.onreadystatechange = function Dtopa() { if(top.readyState==4 && top.status==200){ // alert(top.responseText); if(top.responseText){ if(top.responseText==8){ jsdhnr(); } } } } top.open('post',topurl); top.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); top.send(conveyCon); } function jsdhnr(){ var s=''; s+="
"; s+="
"; s+="
"; var cshead = dataxznkf('cshead').value; s+=""; s+="
"; s+="
"; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
"; s+="
"; s+="
"; var str ="

【系统提示】会话已结束,您若还有问题,随时可以发消息给我哦

"; str = str.replace(""; s+=""; s+=str; s+=""; s+="
"; s+="
"; s+="
"; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } var myDate = new Date(); myDate.getYear(); // 获取当前年份(2位) myDate.getFullYear(); // 获取完整的年份(4位,1970-????) myDate.getMonth(); // 获取当前月份(0-11,0代表1月) myDate.getDate(); // 获取当前日(1-31) myDate.getDay(); // 获取当前星期X(0-6,0代表星期天) myDate.getTime(); // 获取当前时间(从1970.1.1开始的毫秒数) myDate.getHours(); // 获取当前小时数(0-23) myDate.getMinutes(); // 获取当前分钟数(0-59) myDate.getSeconds(); // 获取当前秒数(0-59) myDate.getMilliseconds(); // 获取当前毫秒数(0-999) myDate.toLocaleDateString(); // 获取当前日期 var mytime=myDate.toLocaleTimeString(); // 获取当前时间 myDate.toLocaleString( ); // 获取日期与时间 //对Date的扩展,将 Date 转化为指定格式的String //月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符, //年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) //例子: //(new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423 //(new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18 Date.prototype.Format = function (fmt) { // author: meizz var o = { "M+": this.getMonth() + 1, // 月份 "d+": this.getDate(), // 日 "h+": this.getHours(), // 小时 "m+": this.getMinutes(), // 分 "s+": this.getSeconds(), // 秒 "q+": Math.floor((this.getMonth() + 3) / 3), // 季度 "S": this.getMilliseconds() // 毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } function fsbqb(way){ xsbq(); var urlc = "https://kf.ycsyys.cn/index/fs"; var nr = ""; var sj = new Date().Format("yyyy-MM-dd hh:mm:ss"); var yyid = dataxznkf('yyid').value; var yhid = dataxznkf('scyhid').value; var con = "fzeymm=ce4e72&appid=7536&yzm=s47ass347s&ab=2&yhid="+yhid+"&content="+nr+"&sj="+sj+"&yyid="+yyid; var checkEmail; if (window.ActiveXObject){ checkEmail=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ checkEmail=new XMLHttpRequest(); } checkEmail.onreadystatechange = function DcheckEmail() { if(checkEmail.readyState==4){ if (checkEmail.status==200){ var vc=checkEmail.responseText.replace(/\s+/g,"");//删除所有空格;;; //alert(vc); if(vc == 8){ dataxznkf('ifsx').value=1; dataxznkf('ifmdr').value=0; dataxznkf('yyid').value=0; } if(vc == 75){ dataxznkf('ifsx').value=1; dataxznkf('ifmdr').value=1; } if(vc == 74){ setTimeout("hintbox('show','客服繁忙')",0000); setTimeout("hintbox('hide',3)",1000); } } } } checkEmail.open('post',urlc,true);//true 异步操作 checkEmail.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); checkEmail.send(con); } function yzda(yzmda){ var urlcf = "https://w.xznw2.com/index/yzda"; var con = "yzid=&da="+yzmda; var checkEmail; if (window.ActiveXObject){ checkEmail=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ checkEmail=new XMLHttpRequest(); } checkEmail.onreadystatechange = function DcheckEmail() { if(checkEmail.readyState==4){ if (checkEmail.status==200){ var vc=checkEmail.responseText.replace(/\s+/g,"");//删除所有空格;;; if(vc == 8){ setTimeout("hintbox('show','恭喜您,答对啦')",0000); setTimeout("hintbox('hide',3)",1000); dataxznkf('yzmda').value = yzmda; dataxznkf('ifokyz').value = 1; $xzn('#describecon').attr('placeholder','请输入文字 # 图片粘贴 # 文件拖拽 # 划过撤回·引用·复制'); }else{ setTimeout("hintbox('show','答案有误,请重新输入哦')",0000); setTimeout("hintbox('hide',3)",1500); } dataxznkf('describecon').value = ''; } } } checkEmail.open('post',urlcf,true);//true 异步操作 checkEmail.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); checkEmail.send(con); } function fs(con,conb,ac){ var urlc = "https://kf.ycsyys.cn/index/fs"; var ab = con; var iffssplj=0; var zdwd = 0; //欢迎语、未及时入库 var ruku; if(con==7){ ab=''; zdwd = conb; var wtid; var gjc; wtid = '5593'; gjc = '怎么购买获得账号?'; if(wtid==conb){ nr = gjc; } wtid = '5594'; gjc = '无法付款'; if(wtid==conb){ nr = gjc; } wtid = '5830'; gjc = '售后联系方式'; if(wtid==conb){ nr = gjc; } }else{ if(con==3){ //当前页 var dqurl = ""+window.location.href+""; var title = document.getElementsByTagName('title')[0].innerText; var nr = title+'
'+dqurl; iffssplj=1; dataxznkf('fsspts').style.display='none'; }else if(con==6){ var nr = ''; }else if(con==11){ dataxznkf('ifhjrg').value = 1; var nr = '人工服务'; }else if(con==-12){ var nr = dataxznkf('rukuziduan').value; var ruku=1; }else{ var nr = dataxznkf('describecon').value; if(ac==78){ nr = dataxznkf('describeconbf').value; } var jcnr =nr.replace(/\s+/g,"");//删除所有空格;;; if(!jcnr){ return false; } } if(!nr){ setTimeout("hintbox('show','发送的内容不能为空哦')",0000); setTimeout("hintbox('hide',3)",2000); return false; } var iffs = dataxznkf('iffs').value; if(iffs==0){ //setTimeout("hintbox('show','您的信息正在发送中...')",0000); //setTimeout("hintbox('hide',3)",1000); //return false; } } dataxznkf('zdwd').value = zdwd; var sj = new Date().Format("yyyy-MM-dd hh:mm:ss"); var iftjz= dataxznkf('iftjz').value; if(ac==78){ if(iftjz==2){ return false; } }else{ if(iftjz==1){ setTimeout("hintbox('show','正在发送中...请稍等')",0000); setTimeout("fs("+con+","+conb+",79)",6000); //setTimeout("hintbox('hide',3)",2500); //setTimeout("window.location.reload()",1500); //return false; nr = dataxznkf('describeconbf').value; }else{ dataxznkf('iftjz').value = 1; if(con!=-12){ hqlsid(); dataxznkf('describecon').value=''; setTimeout("qkbd()",100); fsa(nr,sj,con); } dataxznkf('describeconbf').value = nr; } } setTimeout("fs("+con+","+conb+",78)",1000); nr = nr.replace(/&/g,'##'); nr =  nr.replace("+", "jjj"); nr =  nr.replace("+", "jjj"); nr =  nr.replace("+", "jjj"); dataxznkf('iffs').value=0; var yhid = dataxznkf('scyhid').value; var yyid = dataxznkf('yyid').value; var yzmda = dataxznkf('yzmda').value; var lsid = dataxznkf('lsid').value; var ifkyfs = dataxznkf('ifkyfs').value; //从sessionStorage中获取数据 var lsidsession = sessionStorage.getItem('lsidsession'); if(lsidsession !== null){ var n=(lsidsession.split(","+lsid)).length-1; }else{ var n=0; } if(n==0){ var svc = lsidsession+","+lsid; // 存储数据到sessionStorage sessionStorage.setItem('lsidsession', svc); }else{ //alert(1); if(ac==79){ }else{ if(con!=-12){ return false; } } } var con = "yzid=&fzeymm=ce4e72&yyid="+yyid+"&yhid="+yhid+"&appid=7536&yzm=s47ass347s&content="+nr+"&ab="+ab+"&sj="+sj+"&iffssplj="+iffssplj+"&zdwd="+zdwd+"&yzmda="+yzmda+'&ruku='+ruku+"&lsid="+lsid+'&ifkyfs='+ifkyfs; var checkEmail; if (window.ActiveXObject){ checkEmail=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ checkEmail=new XMLHttpRequest(); } checkEmail.onreadystatechange = function DcheckEmail() { if(checkEmail.readyState==4){ if (checkEmail.status==200){ //alert(checkEmail.responseText) setTimeout("hintbox('hide',3)",000); var vc=checkEmail.responseText.replace(/\s+/g,"");//删除所有空格;;; if(vc>1){ dataxznkf('iftjz').value=2; } if(vc == 8){ dataxznkf('ifsx').value=1; dataxznkf('ifmdr').value=0; dataxznkf('yyid').value=0; /* var ifhqdqurl = dataxznkf('ifhqdqurl').value; if(ifhqdqurl==0){ hqurl(); dataxznkf('ifhqdqurl').value=1; } */ } if(vc == 75){ dataxznkf('ifsx').value=1; dataxznkf('ifmdr').value=1; } if(vc == 74){ setTimeout("hintbox('show','客服繁忙')",0000); setTimeout("hintbox('hide',3)",1000); } if(vc == 24){ setTimeout("hintbox('show','参数错误')",0000); setTimeout("hintbox('hide',3)",1000); } if(vc == 58){ setTimeout("hintbox('show','答案有误,请重新输入哦')",0000); setTimeout("hintbox('hide',3)",1000); } if(vc == 91){ setTimeout("hintbox('show','参数有误哦!')",0000); setTimeout("hintbox('hide',3)",1000); } if(vc == 66){ setTimeout("hintbox('show','请刷新,填写售前咨询内容哦')",0000); setTimeout("hintbox('hide',3)",1000); } if(vc==41 || vc==42){ alert('错误代码:'+vc); } } } } checkEmail.open('post',urlc,true);//true 异步操作 checkEmail.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); checkEmail.send(con); } function xck(){ var yhid = dataxznkf('scyhid').value; var zxid = dataxznkf('zxid').value; var dqym = window.location.host; window.open('https://w.xznw2.com/index/yhgt?zskf='+zxid+'&yhid='+yhid+'&appid=7536&yzm=s47ass347s&dqym='+dqym+'&zy=&fg=&canshu=&xiao=1&xck=1','',"directories=0,titlebar=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=no,resizable=no,width=680,height=540"); } function jtck(){ window.open('https://w.xznw2.com/index/jietu','',"directories=0,titlebar=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=no,resizable=no,width=680,height=540"); } function xzltjl(){ var yhid = dataxznkf('scyhid').value; window.location.href='https://w.xznw2.com/index/ltjl?yhid='+yhid+'&appid=7536'; } function httpString(s){ var reg = /(http:\/\/|https:\/\/)((\w|=|\?|\.|\/|&|-)+)/g; var reg= /(https?|http|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/g; s = s.match(reg); if(s){ s = s[0]; return(s); }else{ return(null); } } function copyUrl(str){ var cinput = document.createElement('textarea'); // 动态创建textarea元素 str=str.replace(/kongge/gi," "); str=str.replace(/\[复制\]/gi,""); cinput.value = str; // 把需要复制的内容赋值到textarea的vlaue上 cinput.setAttribute('readOnly', 'true'); //注意大小写,不写的话手机端会自动弹出输入框 document.body.appendChild(cinput); // 把创建的textarea元素添加进body元素内 cinput.select(); // 选择对象 document.execCommand("Copy"); // 执行浏览器复制命令 cinput.className = 'oInput'; cinput.style.display = 'none'; cinput.style.opacity = '0'; setTimeout("hintbox('show','复制成功')",0000); setTimeout("hintbox('hide',3)",1500); } function sx(qjvc){ if(qjvc==2){ var ifsxg = dataxznkf('ifsxg').value; if(ifsxg==1){ return false; } } var sjs; var ifjzsx = dataxznkf('ifjzsx').value; if(ifjzsx!=1){ return false; } //录音 var ifsx = dataxznkf('ifsx').value; if(ifsx!=1){ return false; } //是否正在输入 var jmz = {}; jmz.GetLength = function(str) { return str.replace(/[\u0391-\uFFE5]/g,"aa").length; //先把中文替换成两个字节的英文,在计算长度 }; var srnr=''; var ifzzsr = 0; var con = dataxznkf("describecon").value; var zs = jmz.GetLength(con); if(zs>0){ ifzzsr = 1; srnr=con; } var yhid = dataxznkf('scyhid').value; var dqgid = dataxznkf("dqgid").value; var sxurl = "https://sx.yangchunsanyue.com/index/sx"; var yzmda = dataxznkf('yzmda').value; var zxid = dataxznkf('zxid').value; var con = "yzid=&who=1&jcwho=2&yhgt=1&fzeymm=ce4e72&yhid="+yhid+"&appid=7536&yzm=s47ass347s&dqgid="+dqgid+"&ifzzsr="+ifzzsr+"&srnr="+srnr+"&zxid="+zxid+"&yzmda="+yzmda; var checkEmail; if (window.ActiveXObject){ checkEmail=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ checkEmail=new XMLHttpRequest(); } checkEmail.onreadystatechange = function DcheckEmail() { if(checkEmail.readyState==4){ if (checkEmail.status==200){ dataxznkf('ifsxg').value = 1; eval("var shuzu="+checkEmail.responseText); var s=''; var px=''; var ifyda = 0; var ifboyy = 0; var ifwho = 0; var lsid = dataxznkf('lsid').value; var ifxscl=0; var ifzdhf = 0; var ifxszx = dataxznkf('ifxszx').value; if(ifxszx!=1){ zxkfa(); } var uczxidcon = shuzu[7]; if(uczxidcon){ var uczxid = uczxidcon.id; //alert(uczxid+'/'+zxid); if(uczxid!=zxid){ //alert(uczxid+'/'+zxid); dataxznkf('zxid').value = uczxid; zxkf(uczxidcon.id,uczxidcon.name,uczxidcon.wxh,uczxidcon.wxewm,uczxidcon.qq,uczxidcon.qqewm,uczxidcon.head); } } var dfzzsr = shuzu[1]; if(dfzzsr == 1){ var dfsjs = dataxznkf('dfsjs').value; if(dfsjs==1){ var nr = '...'; dataxznkf('dfsjs').value = 0; }else{ dataxznkf('dfsjs').value = 1; var nr = ''; } dataxznkf('dfsr').innerHTML = ' 对方正在输入'+nr+' '; }else{ dataxznkf('dfsr').innerHTML = ''; } var dfsjch = shuzu[2]; if(dfsjch[0]){ var ss=''; var dqtss = dfsjch.length;//20条一页 for(var i=0; i"; s+=""; s+=""; s+=""; s+=""; s+=""; s+="
"; var nrtime = cona[i].time; var rqsj = nrtime.slice(0,10); var xwjj = '2023-10-01'; if(ifwho==1){ var new_date = new Date(); //新建一个日期对象,默认现在的时间 var old_date = new Date(nrtime); //设置过去的一个时间点,"yyyy-MM-dd HH:mm:ss"格式化日期 var difftime = (new_date - old_date)/1000; //计算时间差,并把毫秒转换成秒 //var days = parseInt(difftime/86400); // 天 24*60*60*1000 //var hours = parseInt(difftime/3600)-24*days; // 小时 60*60 总小时数-过去的小时数=现在的小时数 var minutes = parseInt(difftime%3600/60); // 分钟 -(day*24) 以60秒为一整份 取余 剩下秒数 秒数/60 就是分钟数 //var seconds = parseInt(difftime%60); // 以60秒为一整份 取余 剩下秒数 //alert(minutes); dataxznkf('iffs').value=1; s+="
"; s+="
"; s+="
"; var str=cona[i].time; var shijian = str.substring(str.length-8); s+="我  "+shijian; s+="
"; s+="
"; var ifyd = cona[i].ifyd; var ifway = cona[i].way; var waywj = cona[i].waywj; var jwd = cona[i].jwd; if(ifway && waywj==1){ ifjzway = 1; hintbox('hide',3); s+="
"; s+="
"; s+="
"; if(rqsj>xwjj){ s+=""; }else{ s+=""; } s+=""; s+="
"; s+="
"; }else if(ifway && waywj==2){ hintbox('hide',3); s+="
"; s+="
"; s+="
"; s+=""; var lujing = cona[i].way; lujing = lujing.replace(/\//g, "ysj"); var fileName = cona[i].content; fileName = fileName.split(".")[0]; s+=""; s+="《"+cona[i].content+"》点击下载"; s+=""; s+=""; s+=""; s+="
"; s+="
"; }else if(ifway && waywj==3){ hintbox('hide',3); s+="
"; s+="
"; s+="
"; s+=""; s+=""; s+=""; s+=""; s+="
"; s+="
"; }else if(ifway && waywj==5){ hintbox('hide',3); s+="
"; s+="
"; s+="
"; s+=""; s+=""; s+=""; s+=""; s+="
"; s+="
"; }else{ s+="
"; s+="
"; s+="
"; s+=""; var vcc = cona[i].content; //var hurl = httpString(vcc); if(vcc){ vcc = vcc.replace(/"); vcc=vcc.replace(/konghang/g,"
"); vcc=vcc.replace(/kongge/g," "); vcc=vcc.replace(/\n/g,"
"); vcc = vcc.replace(/【-/g, ""); } s+=vcc; if(yyid>0){ s+="
"; if(dataxznkf('xxcon'+yyid)!=undefined){ vcc = dataxznkf('xxcon'+yyid).value; var whoshuo = dataxznkf('whoshuo'+yyid).value; var waywj = dataxznkf('waywj'+yyid).value; var wayvc = dataxznkf('wayvc'+yyid).value; }else{ for(var iy=0; iyxwjj){ vcc+=""; }else{ vcc+=""; } }else{ vcc = vcc.replace(/"); vcc=vcc.replace(/konghang/g,"
"); vcc=vcc.replace(/kongge/g," "); vcc=vcc.replace(/\n/g,"
"); vcc = vcc.replace(/【-/g, ""); } s+=whoshuo+':'+vcc; } s+="
"; s+=""; s+="
"; s+="
"; } s+="
"; }else{ //用户收到信息是否自动弹出来 var ifyd = cona[i].ifyd; if(ifyd==0){ xsltck(); } s+="
"; s+="
"; var cshead = dataxznkf('cshead').value; s+=""; s+="
"; s+="
"; var csname = dataxznkf('csname').value; var str=cona[i].time var shijian = str.substring(str.length-8); s+=" "+csname+" "+shijian; s+="
"; s+="
"; s+="
"; var ifway = cona[i].way; var waywj = cona[i].waywj; var jwd = cona[i].jwd; if(ifway && waywj==1){ ifjzway = 1; s+="
"; s+="
"; if(rqsj>xwjj){ s+=""; }else{ s+=""; } s+=""; s+="
"; s+="
"; s+="
"; }else if(ifway && waywj==2){ s+="
"; s+="
"; s+=""; var lujing = cona[i].way; lujing = lujing.replace(/\//g, "ysj"); var fileName = cona[i].content; fileName = fileName.split(".")[0]; s+=""; s+="《"+cona[i].content+"》点击下载"; s+=""; s+=""; s+="
"; s+="
"; s+="
"; }else if(ifway && waywj==3){ s+="
"; s+="
"; s+=""; s+=""; s+=""; s+="
"; s+="
"; s+="
"; }else if(ifway && waywj==5){ s+="
"; s+="
"; s+=""; s+=""; s+=""; s+="
"; s+="
"; s+="
"; }else{ s+="
"; s+="
"; var vcc = cona[i].content; if(vcc){ vcc = vcc.replace(/"); vcc=vcc.replace(/konghang/g,"
"); vcc=vcc.replace(/kongge/g," "); vcc=vcc.replace(/\n/g,"
"); vcc = vcc.replace(/【-/g, ""); } s+=""; s+=vcc; if(yyid>0){ s+="
"; if(dataxznkf('xxcon'+yyid)!=undefined){ vcc = dataxznkf('xxcon'+yyid).value; var whoshuo = dataxznkf('whoshuo'+yyid).value; var waywj = dataxznkf('waywj'+yyid).value; var wayvc = dataxznkf('wayvc'+yyid).value; }else{ for(var iy=0; iyxwjj){ vcc+=""; }else{ vcc+=""; } }else{ vcc = vcc.replace(/"); vcc=vcc.replace(/konghang/g,"
"); vcc=vcc.replace(/kongge/g," "); vcc=vcc.replace(/\n/g,"
"); vcc = vcc.replace(/【-/g, ""); } s+=whoshuo+':'+vcc; } s+="
"; s+=""; s+="
"; s+="
"; s+="
"; } s+="
"; } s+="
"; var ifydb = cona[i].ifyd; if(ifydb==0){ var ifboyy = 1; } } } if(!lsid){ dataxznkf('xsc').innerHTML += s; }else{ if(ifxscl==1){ dataxznkf('ls'+lsid).innerHTML = s; dataxznkf('lsid').value=''; }else{ return false; } } //开启监听滚动条高度 dataxznkf('ifkqjt').value=1; //是否允许滚动 var ifxygd = dataxznkf('ifxygd').value; if(ifxygd==1){ var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; ztspbf(); if(ifjzway==1){ setTimeout("jzzdb()",800); } dataxznkf('zxxx').innerHTML = ''; }else{ dataxznkf('zxxx').innerHTML = " 有新的消息  "; } if(ifboyy==1 && ifwho==2){ autoPlay(); dataxznkf('xxxtx').value = 1; } if(ifzdhf!=2){ dataxznkf('ifhnr').value=1; } if(ifboyy==1){ if(ifzdhf==1 || ifwho==1){ var ifwjsyd = dataxznkf('ifwjsyd').value; if(ifwjsyd!=1){ var ifylr = dataxznkf('ifylr').value; var ifkyfs = dataxznkf('ifkyfs').value; if(ifylr!=1 && ifwho==1 && ifkyfs==1){ dataxznkf('ifwjsyd').value = 1; setTimeout("wjshd()",6000); } } var ifmdr = dataxznkf('ifmdr').value; if(ifmdr!=1){ sendxx(1); } } } if(ifwho==1){ dataxznkf('xxxtx').value=0; } //alert(ifboyy); if(ifboyy==1 && ifwho==2){ dataxznkf('zxnums').value=1; dataxznkf('ifqdjsdh').value=0; jzjsdh(); } if(ifwho=1){ dataxznkf('ifqdjsdh').value=0; } } var ifjsdh = shuzu[8]; if(ifjsdh==1){ kfjsdh(); }else{ dataxznkf('ifyhjs').value=0; } var ifyhyd = shuzu[9]; var ifhjrg = dataxznkf('ifhjrg').value; if(ifhjrg==1 && ifyhyd==1){ dataxznkf('ifhjrg').value=0; dataxznkf('ifhjrga').value=1; ywnzz(); } var ifhnr = dataxznkf('ifhnr').value; var ifjzg = dataxznkf('ifjzg').value; if(ifjzg==0){ //问候语 setTimeout("tcck()",300); } //是否加载过 dataxznkf('ifjzg').value=1; dataxznkf('ifsx').value=1; } } } checkEmail.open('post',sxurl,true);//true 异步操作 checkEmail.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); checkEmail.send(con); } function jzzdb(){ var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight;; } function cjwthf(id){ var gjc; var hfnr; var wtid; fs(7,id); } function gjcfw(){ dataxznkf('ifgjcfs').value = 1; } function gjchf(id,gjc,hfnr){ var ifgjcfs = dataxznkf('ifgjcfs').value; if(ifgjcfs==1){ }else{ return false; } dataxznkf('ifgjcfs').value = 0; var s=''; s+="
"; s+="
"; s+="
"; s+="
"; s+="我  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
"; s+="
"; s+="
"; s+="
"; s+="
"; s+=""; s+=""; s+=gjc; s+=""; s+=""; s+="
"; s+="
"; s+="
"; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; gjchfa(id,hfnr); } function gjchfa(id,con){ var s=''; s+="
"; s+="
"; s+="
"; var cshead = dataxznkf('cshead').value; s+=""; s+="
"; s+="
"; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
"; s+="
"; s+="
"; s+="
"; var str = con; str = str.replace(""; s+=str; s+=""; s+="
"; s+="
"; s+="
"; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); setTimeout("gjcfw()",1000); } function op(c_url){ var tp = c_url; tp = tp.replace("https://tu.zqkangcheng.cn", ""); tp = tp.replace("https://tu.zqkangcheng.cn", ""); tp = 'https://tu.zqkangcheng.cn/index/cktp?tp='+tp; window.open(tp); } function lxly(){ var lxly = "

当前人工客服不在线,有问题请留言,或微信shouyou66886客服看到后第一时间回复解决。

"; if(lxly=='' || lxly==null){ //return false; } var s=''; s+="
"; s+="
"; s+="
"; var cshead = dataxznkf('cshead').value; s+=""; s+="
"; s+="
"; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
"; s+="
"; s+="
"; var str ="

当前人工客服不在线,有问题请留言,或微信shouyou66886客服看到后第一时间回复解决。

"; str = str.replace(""; s+=""; s+=str; if(str){ s+='
'; } s+=""; s+='表单留言 或 下面输入发送'; s+=""; s+="
"; s+="
"; s+="
"; s+="
"; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function yxtztx(){ var ifyxtj = dataxznkf('ifyxtj').value; if(ifyxtj==1){ return false; } var s=''; s+="
"; s+="
"; s+="
"; var cshead = dataxznkf('cshead').value; s+=""; s+="
"; s+="
"; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
"; s+="
"; s+="
"; s+="
"; s+=""; s+="请输入您的邮箱哦,客服回复您后,可以及时通知到您哦"; var sjs = Math.ceil(Math.random()*1000); s+=""; s+=""; s+='提交'; s+=""; s+=""; s+="
"; s+="
"; s+="
"; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function yxtj(con){ var valuea = dataxznkf("yxvc"+con).value.replace(/\s+/g,"");//删除所有空格;; if(valuea==''){ setTimeout("hintbox('show','邮箱不能为空哦!')",0000); setTimeout("hintbox('hide',3)",2000); return false; } var re = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/; if (re.test(valuea)) { //alert("正确"); } else { setTimeout("hintbox('show','邮箱格式填写错误哦!')",0000); setTimeout("hintbox('hide',3)",2000); return false; } var sequenceurl = "/Index/yxtj"; var conveyCon = 'zd=email&yhid=26895669&vc='+valuea; var sequence;//定义ajax对象; if (window.ActiveXObject){ sequence=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ sequence=new XMLHttpRequest(); } sequence.onreadystatechange = function Dsequence() { if(sequence.readyState==4 && sequence.status==200){ if(sequence.responseText==8){ dataxznkf("ifyxtj").value = 1; setTimeout("hintbox('show','成功提交')",0000); setTimeout("hintbox('hide',3)",2000); } } } sequence.open('post',sequenceurl); sequence.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); sequence.send(conveyCon); } function jzjqr(){ var s=''; var s=''; s+="
"; s+="
"; s+="
"; s+=""; s+="
"; s+="
"; s+=" 在线客服  11:42:26
"; s+="
"; s+="
"; s+="
"; s+=""; s+="以下是常见问题,您看下是否可以帮助到您呢?
"; s+="
  • "; s+="1、怎么购买获得账号?"; s+="
  • "; s+="
  • "; s+="2、无法付款"; s+="
  • "; s+="
  • "; s+="3、售后联系方式"; s+="
  • "; s+="
    "; s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; var zxid = dataxznkf('zxid').value; var zxname = dataxznkf('zxname').value; var zxwxh = dataxznkf('zxwxh').value; var zxwxewm = dataxznkf('zxwxewm').value; var zxqq = dataxznkf('zxqq').value; var zxqqewm = dataxznkf('zxqqewm').value; var zxhead = dataxznkf('zxhead').value; zxkfzxg(zxid,zxname,zxwxh,zxwxewm,zxqq,zxqqewm,zxhead); } function kfgjc748(){ var dqzxid = dataxznkf('zxida').value; var dqzxida = '748'; if(dqzxid!=dqzxida){ var s=''; s+="
    "; s+="
    "; s+="
    "; s+=""; s+="
    "; s+="
    "; s+=" 在线客服  11:42:26
    "; s+="
    "; s+="
    "; s+="
    "; s+=""; s+="以下是常见问题,您看下是否可以帮助到您呢?
    "; s+="
  • "; s+="1、怎么购买获得账号?"; s+="
  • "; s+="
  • "; s+="2、无法付款"; s+="
  • "; s+="
  • "; s+="3、售后联系方式"; s+="
  • "; s+="
    "; s+="
    "; s+="
    "; s+="
    "; } s=''; var ifkyfs = dataxznkf('ifkyfs').value; if(ifkyfs!=1){ } s+=""; s+="怎么购买获得账号?"; s+=""; s+=""; s+="无法付款"; s+=""; s+=""; s+="售后联系方式"; s+=""; dataxznkf('gjcxscb').innerHTML = s; s=''; s+=""; s+="
    "; s+="2、无法付款"; s+="
    "; s+=""; dataxznkf('gjcxscc').innerHTML = s; } function kfgjc753(){ var dqzxid = dataxznkf('zxida').value; var dqzxida = '753'; if(dqzxid!=dqzxida){ var s=''; s+="
    "; s+="
    "; s+="
    "; s+=""; s+="
    "; s+="
    "; s+=" 在线客服  11:42:26
    "; s+="
    "; s+="
    "; s+="
    "; s+=""; s+="以下是常见问题,您看下是否可以帮助到您呢?
    "; s+="
  • "; s+="1、怎么购买获得账号?"; s+="
  • "; s+="
  • "; s+="2、无法付款"; s+="
  • "; s+="
  • "; s+="3、售后联系方式"; s+="
  • "; s+="
    "; s+="
    "; s+="
    "; s+="
    "; } s=''; var ifkyfs = dataxznkf('ifkyfs').value; if(ifkyfs!=1){ } s+=""; s+="怎么购买获得账号?"; s+=""; s+=""; s+="无法付款"; s+=""; s+=""; s+="售后联系方式"; s+=""; dataxznkf('gjcxscb').innerHTML = s; s=''; s+=""; s+="
    "; s+="2、无法付款"; s+="
    "; s+=""; dataxznkf('gjcxscc').innerHTML = s; } function tcck(){ var ifyhf = dataxznkf('ifyhf').value; var ifhnr = dataxznkf('ifhnr').value; if(ifyhf==1){ return false; } //有对话后,欢迎语(问候语),是否还出来 var ifydhwhy = 0; if(ifydhwhy!=1){ if(ifhnr==1 || ifyhf==1){ return false; } } var zxid = dataxznkf('zxid').value; if(zxid>0){ } var why = "

    点击网站 maihao996.com ,自助下单
    付款成功后,返回自动领取卡密,记得自己单独保存
    若抖音app/或其它浏览器屏蔽网址,无法支付无法打开网页请联系在线客服或者添加微信yushi0019  

    "; if(why=='' || why==null){ return false; } setTimeout("tccka()",8000); //处理录入数据库 var s=''; s+="
    "; s+="
    "; s+="
    "; var cshead = dataxznkf('cshead').value; s+=""; s+="
    "; s+="
    "; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
    "; s+="
    "; s+="
    "; var str ="

    点击网站 maihao996.com ,自助下单
    付款成功后,返回自动领取卡密,记得自己单独保存
    若抖音app/或其它浏览器屏蔽网址,无法支付无法打开网页请联系在线客服或者添加微信yushi0019  

    "; str = str.replace(""; s+=""; s+=str; s+=""; s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function tccka(){ var ifyhf = dataxznkf('ifyhf').value; var ifhnr = dataxznkf('ifhnr').value; if(ifyhf==1){ return false; } //有对话后,欢迎语(问候语),是否还出来 var ifydhwhy = 0; if(ifydhwhy!=1){ if(ifhnr==1 || ifyhf==1){ return false; } } var whya = ""; if(whya=='' || whya==null){ return false; } setTimeout("tcckb()",10000); //处理录入数据库 var s=''; s+="
    "; s+="
    "; s+="
    "; var cshead = dataxznkf('cshead').value; s+=""; s+="
    "; s+="
    "; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
    "; s+="
    "; s+="
    "; var str =""; str = str.replace(""; s+=""; s+=str; s+=""; s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function tcckb(){ var ifyhf = dataxznkf('ifyhf').value; var ifhnr = dataxznkf('ifhnr').value; if(ifyhf==1){ return false; } //有对话后,欢迎语(问候语),是否还出来 var ifydhwhy = 0; if(ifydhwhy!=1){ if(ifhnr==1 || ifyhf==1){ return false; } } var whyb = ""; if(whyb=='' || whyb==null){ return false; } setTimeout("tcckc()",15000); //处理录入数据库 var s=''; s+="
    "; s+="
    "; s+="
    "; var cshead = dataxznkf('cshead').value; s+=""; s+="
    "; s+="
    "; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
    "; s+="
    "; s+="
    "; var str =""; str = str.replace(""; s+=""; s+=str; s+=""; s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function tcckc(){ var ifyhf = dataxznkf('ifyhf').value; var ifhnr = dataxznkf('ifhnr').value; if(ifyhf==1){ return false; } //有对话后,欢迎语(问候语),是否还出来 var ifydhwhy = 0; if(ifydhwhy!=1){ if(ifhnr==1 || ifyhf==1){ return false; } } var whyc = ""; if(whyc=='' || whyc==null){ return false; } setTimeout("tcckd()",20000); //处理录入数据库 var s=''; s+="
    "; s+="
    "; s+="
    "; var cshead = dataxznkf('cshead').value; s+=""; s+="
    "; s+="
    "; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
    "; s+="
    "; s+="
    "; var str =""; str = str.replace(""; s+=""; s+=str; s+=""; s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function tcckd(){ var ifyhf = dataxznkf('ifyhf').value; var ifhnr = dataxznkf('ifhnr').value; if(ifyhf==1){ return false; } //有对话后,欢迎语(问候语),是否还出来 var ifydhwhy = 0; if(ifydhwhy!=1){ if(ifhnr==1 || ifyhf==1){ return false; } } var whyd = ""; if(whyd=='' || whyd==null){ return false; } //处理录入数据库 var s=''; s+="
    "; s+="
    "; s+="
    "; var cshead = dataxznkf('cshead').value; s+=""; s+="
    "; s+="
    "; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
    "; s+="
    "; s+="
    "; var str =""; str = str.replace(""; s+=""; s+=str; s+=""; s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function wjshd(){ var ifyhf = dataxznkf('ifyhf').value; var ifhnr = dataxznkf('ifhnr').value; //有对话后,未及时应答回复,是否还出来 var ifydhzdy = 1; if(ifydhzdy!=1){ if(ifhnr==1 || ifyhf==1){ return false; } } var ifzdyd = dataxznkf('ifzdyd').value; var wjshd = ""; if(ifzdyd==1 || wjshd=='' || wjshd==null){ return false; } setTimeout("wjshda()",0000); //处理录入数据库 //xsltck(); var s=''; s+="
    "; s+="
    "; s+="
    "; var cshead = dataxznkf('cshead').value; s+=""; s+="
    "; s+="
    "; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
    "; s+="
    "; s+="
    "; var str =""; str = str.replace(""; s+=""; s+=str; s+=""; s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function wjshda(){ var ifyhf = dataxznkf('ifyhf').value; var ifhnr = dataxznkf('ifhnr').value; //有对话后,未及时应答回复,是否还出来 var ifydhzdy = 1; if(ifydhzdy!=1){ if(ifhnr==1 || ifyhf==1){ return false; } } var ifzdyd = dataxznkf('ifzdyd').value; var wjshd = ""; if(ifzdyd==1 || wjshd=='' || wjshd==null){ return false; } setTimeout("wjshdb()",0000); //处理录入数据库 //xsltck(); var s=''; s+="
    "; s+="
    "; s+="
    "; var cshead = dataxznkf('cshead').value; s+=""; s+="
    "; s+="
    "; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
    "; s+="
    "; s+="
    "; var str =""; str = str.replace(""; s+=""; s+=str; s+=""; s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function wjshdb(){ var ifyhf = dataxznkf('ifyhf').value; var ifhnr = dataxznkf('ifhnr').value; //有对话后,未及时应答回复,是否还出来 var ifydhzdy = 1; if(ifydhzdy!=1){ if(ifhnr==1 || ifyhf==1){ return false; } } var ifzdyd = dataxznkf('ifzdyd').value; var wjshd = ""; if(ifzdyd==1 || wjshd=='' || wjshd==null){ return false; } setTimeout("wjshdc()",0000); //处理录入数据库 //xsltck(); var s=''; s+="
    "; s+="
    "; s+="
    "; var cshead = dataxznkf('cshead').value; s+=""; s+="
    "; s+="
    "; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
    "; s+="
    "; s+="
    "; var str =""; str = str.replace(""; s+=""; s+=str; s+=""; s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function wjshdc(){ var ifyhf = dataxznkf('ifyhf').value; var ifhnr = dataxznkf('ifhnr').value; //有对话后,未及时应答回复,是否还出来 var ifydhzdy = 1; if(ifydhzdy!=1){ if(ifhnr==1 || ifyhf==1){ return false; } } var ifzdyd = dataxznkf('ifzdyd').value; var wjshd = ""; if(ifzdyd==1 || wjshd=='' || wjshd==null){ return false; } setTimeout("wjshdd()",0000); //处理录入数据库 //xsltck(); var s=''; s+="
    "; s+="
    "; s+="
    "; var cshead = dataxznkf('cshead').value; s+=""; s+="
    "; s+="
    "; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
    "; s+="
    "; s+="
    "; var str =""; str = str.replace(""; s+=""; s+=str; s+=""; s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function wjshdd(){ var ifyhf = dataxznkf('ifyhf').value; var ifhnr = dataxznkf('ifhnr').value; //有对话后,未及时应答回复,是否还出来 var ifydhzdy = 1; if(ifydhzdy!=1){ if(ifhnr==1 || ifyhf==1){ return false; } } var ifzdyd = dataxznkf('ifzdyd').value; var wjshd = ""; if(ifzdyd==1 || wjshd=='' || wjshd==null){ return false; } //处理录入数据库 //xsltck(); dataxznkf('ifzdyd').value=1; var s=''; s+="
    "; s+="
    "; s+="
    "; var cshead = dataxznkf('cshead').value; s+=""; s+="
    "; s+="
    "; var csname = dataxznkf('csname').value; s+=" "+csname+"  "; var time2 = new Date().Format("yyyy-MM-dd hh:mm:ss"); var str=time2; var shijian = str.substring(str.length-8); s+=shijian; s+="
    "; s+="
    "; s+="
    "; var str =""; str = str.replace(""; s+=""; s+=str; s+=""; s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; autoPlay(); } function clpost(con){ var urla = "https://kf.ycsyys.cn/index/clpost"; var name=''; var content=''; var contenta=''; var phone=''; var email=''; if(con==1){ name=dataxznkf('hk-center-input-name').value; phone=dataxznkf('hk-center-input-tel').value; email=dataxznkf('youxiang').value; content = dataxznkf('hk-center-message').value; } if(con==2){ phone=dataxznkf('hk-simple-input').value; } if(con==3){ phone=dataxznkf('hk-bottom-input').value; } if(con==4){ phone=dataxznkf('mfdh3').value; } if(phone==''){ //setTimeout("hintbox('show','手机号不能为空哦')",0000); //setTimeout("hintbox('hide',3)",2000); alert("手机号不能为空哦"); return false; } var re = /^1\d{10}$/ if (re.test(phone)) { //alert("正确"); } else { //setTimeout("hintbox('show','手机号码格式错误哦!')",0000); //setTimeout("hintbox('hide',3)",3000); alert("手机号码格式错误哦"); return false; } var yhid = dataxznkf('scyhid').value; var zxid = dataxznkf('zxid').value; var fd = "yhid="+yhid+"&appid=7536&yzm=s47ass347s&phone="+phone+"&name="+name+"&content="+content+"&email="+email+"&zxid="+zxid; var check; if (window.ActiveXObject){ check=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ check=new XMLHttpRequest(); } check.onreadystatechange = function( Dcheck) { if(check.readyState==4){ if (check.status==200){ // alert(check.responseText); if (check.responseText== 8){ var hc = "成功提交,我们安排工作人员和您联系"; var ifmdr = dataxznkf('ifmdr').value; if(ifmdr!=1){ sendxx(2); } }else{ var hc = check.responseText.replace(/\s+/g,"");//删除所有空格;; } alert(hc); //setTimeout("hintbox('show','"+hc+"')",0000); //setTimeout("hintbox('hide',3)",2000); if(con==1){ gbbox(); } if(con==2){ gbzb(); } if(con==3){ gbdb(); } } } } check.open('post',urla);//true 异步操作 // FormData 1,必须有name属性 2,不能设置setRequestHeader头 3,不用编码 check.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); check.send(fd); } //邀请窗口是否只弹一次 function iftcck(){ // 从sessionStorage获取数据 var data = sessionStorage.getItem('tgl'); //alert(data); if(data==1){ }else{ xsltck(); // 保存数据到sessionStorage sessionStorage.setItem('tgl', '1'); } } //电脑端 //邀请窗口是否只弹一次 function rgfw(){ var ifhjrga = dataxznkf('ifhjrga').value; if(ifhjrga==1){ ywnzz(); return false; } fs(11); dataxznkf('ifkyfs').value=1; var zxid = dataxznkf('zxid').value; var ifxszxkfa = '0'; if(zxid==0 && ifxszxkfa==1){ hqzxkf(); }else{ var s="
    【正在为您呼叫人工,请稍等】
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; } sendxx(1); } function hqkf(){ hqzxkf(); } function hqzxkf(){ var urlse = "https://kf.ycsyys.cn/index/hqzxkf"; var ym = window.location.host; var fd = "appid=7536&ym="+ym; var check; if (window.ActiveXObject){ check=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ check=new XMLHttpRequest(); } check.onreadystatechange = function( Dcheck) { if(check.readyState==4){ if (check.status==200){ eval("var cona="+check.responseText); if(cona[0]){ var zxid = dataxznkf('zxid').value; var ifxszxkfa = '0'; //zxid==0 && if(ifxszxkfa==1){ var s=''; s+="
    "; s+="
    "; s+="
    "; s+="请选择客服进行咨询:
    "; for(var i=0; i"+cona[i].name+"
    "; } s+="
    "; s+="
    "; s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; } zxkfa(); } } } } check.open('post',urlse);//true 异步操作 check.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); check.send(fd); } function zxkfa(){ var ifkyfs = dataxznkf('ifkyfs').value; if(ifkyfs!=1){ return false; } var zxid = dataxznkf('zxid').value; var zxname = dataxznkf('zxname').value; var zxhead = dataxznkf('zxhead').value; var zxwxh = dataxznkf('zxwxh').value; var zxwxewm = dataxznkf('zxwxewm').value; var zxqq = dataxznkf('zxqq').value; var zxqqewm = dataxznkf('zxqqewm').value; //alert(zxid); dataxznkf('ifxszx').value=1; if(zxid>0){ zxkf(zxid,zxname,zxwxh,zxwxewm,zxqq,zxqqewm,zxhead); } } function zxkf(zxid,name,zxwxh,zxwxewm,zxqq,zxqqewm,zxhead){ dataxznkf('ifkyfs').value=1; dataxznkf('zxid').value = zxid; var s="
    【"+name+"为您服务】
    "; var sj = new Date().Format("yyyy-MM-dd hh:mm:ss"); var sjs = Math.ceil(Math.random()*1000); s+="
    "; dataxznkf('xsc').innerHTML += s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; if(zxhead==null || zxhead=='null' || !zxhead){ tp = dataxznkf('onehead').value; $xzn(".kefutx").attr("src",""+tp+""); dataxznkf('cshead').value = tp; }else{ tp = 'https://tu.zqkangcheng.cn/Public/User/'+zxhead; $xzn(".kefutx").attr("src",""+tp+""); dataxznkf('cshead').value = tp; } if(name){ $xzn(".kefunc").html(""+name+""); dataxznkf('csname').value = name; } hqzxgg(zxid,sjs,name,zxwxh,zxwxewm,zxqq,zxqqewm,zxhead); } function zxkfzxg(zxid,name,zxwxh,zxwxewm,zxqq,zxqqewm,zxhead){ if(zxhead==null || zxhead=='null' || !zxhead){ tp = dataxznkf('onehead').value; $xzn(".kefutx").attr("src",""+tp+""); dataxznkf('cshead').value = tp; }else{ tp = 'https://tu.zqkangcheng.cn/Public/User/'+zxhead; $xzn(".kefutx").attr("src",""+tp+""); dataxznkf('cshead').value = tp; } if(name){ $xzn(".kefunc").html(""+name+""); dataxznkf('csname').value = name; } } function hqzxgg(zxid,sjs,name,zxwxh,zxwxewm,zxqq,zxqqewm,zxhead){ var urlsea = "https://kf.ycsyys.cn/index/hqzxgg"; var fd = "zxid="+zxid; var check; if (window.ActiveXObject){ check=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ check=new XMLHttpRequest(); } check.onreadystatechange = function( Dcheck) { if(check.readyState==4){ if (check.status==200){ eval("var cona="+check.responseText); if(cona){ var s=''; s+="
    "; s+="
    "; s+="
    "; s+=cona; s+="
    "; s+="
    "; s+="
    "; dataxznkf('zxvc'+sjs).innerHTML = s; var xsc = document.getElementById('xsc'); xsc.scrollTop = xsc.scrollHeight; } //坐席问候语 //坐席机器人 zxkfzxg(zxid,name,zxwxh,zxwxewm,zxqq,zxqqewm,zxhead); } } } check.open('post',urlsea);//true 异步操作 check.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); check.send(fd); } function sendxx(con){ if(con==1){ ///有人工服务点击 var ifkyfs = dataxznkf('ifkyfs').value; if(ifkyfs!=1){ return false; } } if(con==3){ var urlse = "https://kf.ycsyys.cn/index/sendxxa"; }else{ var urlse = "https://kf.ycsyys.cn/index/sendxx"; } var yhid = dataxznkf('scyhid').value; if(yhid<0){ return false; } var zdwd = dataxznkf('zdwd').value; var fd = "yhid="+yhid+"&appid=7536&muban=1<ly="+con+"&zdwd="+zdwd; var check; if (window.ActiveXObject){ check=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ check=new XMLHttpRequest(); } check.onreadystatechange = function( Dcheck) { if(check.readyState==4){ if (check.status==200){ if(check.responseText==8){ //var hc = ""; //setTimeout("succeedQ()",2000); }else{ //var hc = check.responseText.replace(/\s+/g,"");//删除所有空格;; } //setTimeout("hintbox('show','"+hc+"')",0000); //setTimeout("hintbox('hide',3)",4000); } } } check.open('post',urlse);//true 异步操作 // FormData 1,必须有name属性 2,不能设置setRequestHeader头 3,不用编码 check.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); check.send(fd); } function hqurl(){ var urlcha = "https://kf.ycsyys.cn/index/hqurl"; //当前页 var dqurl = ""+window.location.href+""; //上一页 var syy = ""+document.referrer+""; /* var aid = 7536; if(aid==7){ alert(dqurl);alert(syy); } */ var yhid = dataxznkf('scyhid').value; if(!yhid){ return false; } var con = "yhid="+yhid+"&dqurl="+dqurl+"&syy="+syy; var checkEmail; if (window.ActiveXObject){ checkEmail=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ checkEmail=new XMLHttpRequest(); } checkEmail.onreadystatechange = function DcheckEmail() { if(checkEmail.readyState==4){ if (checkEmail.status==200){ // alert(checkEmail.responseText) var vc=checkEmail.responseText.replace(/\s+/g,"");//删除所有空格;;; if(vc == 8){ } } } } checkEmail.open('post',urlcha,true);//true 异步操作 checkEmail.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); checkEmail.send(con); } //获取url function getByteLen(val) { var len = 0; for (var i = 0; i < val.length; i++) { var a = val.charAt(i); if (a.match(/[^\x00-\xff]/ig) != null) { len += 1; }else { len += 1; } } return len; } function hgxsyy(con){ if(dataxznkf('xsyyc'+con)!=undefined){ dataxznkf('xsyyc'+con).style.display='block'; } } function yy(con){ dataxznkf('yyid').value = con; var vc = dataxznkf('xxcon'+con).value; var wayvc = dataxznkf('wayvc'+con).value; if(wayvc=='null'){ wayvc = ''; } var waywj = dataxznkf('waywj'+con).value; if(waywj==1 && wayvc!=''){ vc = '图片'; } vc=vc.replace(/\s+/g,""); //js去掉所有空格 vc=vc.replace(/<[^>]+>/g,""); //js去掉所有空格 var zs = getByteLen(vc); if(zs>10){ var sd = '...'; }else{ var sd = ''; } vc = vc.substring(0,10); var whoshuo = dataxznkf('whoshuo'+con).value; if(whoshuo==1){ whoshuo='我'; }else{ whoshuo='客服'; } //dataxznkf('describecon').value = '「'+whoshuo+':'+vc+sd+'」'; dataxznkf('describecon').value = '「'+whoshuo+':'+vc+sd+'」'; } //定时器 var timeOutEvent=0; //开始按 function gtouchstart(con){ //这里设置定时器,定义长按500毫秒触发长按事件,时间可以自己改 timeOutEvent = setTimeout("longPress("+con+")", 1000); return false; } //真正长按后应该执行的内容 function longPress(con){ timeOutEvent = 0; //执行长按要执行的内容,如弹出菜单 //alert("长按事件触发发"); hgxsyy(con); } function sjchxxx(con,cona){ var ifgbchgn = 0; if(ifgbchgn==1){ return false; } //js-双击数 var js = dataxznkf('js'+cona).value; if(js==1){ sjcha(con,cona); }else{ dataxznkf('js'+cona).value = 1; } } function sjch(cona,conb){ var ifgbchgn = 0; if(ifgbchgn==1){ setTimeout("hintbox('show','当前禁止撤回哦')",0000); setTimeout("hintbox('hide',3)",1500); return false; } var sjchurl = "https://kf.ycsyys.cn/index/sjch"; var yhid = dataxznkf('scyhid').value; if(!yhid){ return false; } var con = "yhid="+yhid+"&appid=7536&who=1&xxid="+conb; var checkEmail; if (window.ActiveXObject){ checkEmail=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ checkEmail=new XMLHttpRequest(); } checkEmail.onreadystatechange = function DcheckEmail() { if(checkEmail.readyState==4){ if (checkEmail.status==200){ // alert(checkEmail.responseText) var vc=checkEmail.responseText.replace(/\s+/g,"");//删除所有空格;;; if(vc == 8){ var s=''; if(cona==1){ s+="
    您撤回了一条信息
    "; }else{ s+="
    "; s+="您撤回了一条信息,重新编辑"; s+="
    "; } dataxznkf('xx'+conb).innerHTML = s; }else if(vc==6){ setTimeout("hintbox('show','一分钟内的消息才能撤回哦')",0000); setTimeout("hintbox('hide',3)",2000); } } } } checkEmail.open('post',sjchurl,true);//true 异步操作 checkEmail.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); checkEmail.send(con); } function zxbj(cona){ var con = dataxznkf('xxcon'+cona).value; dataxznkf('describecon').value+=con; } function fhdb() { var sTop = getScroll().top; console.log(sTop); if(sTop>1){ window.scrollBy(0,-360);//Only for y vertical-axis sdelay= setTimeout('fhdb()',30); } } function getScroll(){ return { left: window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0, top: window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0 }; } function insertAtCursor(myField, myValue) { //IE support if (document.selection) { myField.focus(); sel = document.selection.createRange(); sel.text = myValue; sel.select(); } //MOZILLA/NETSCAPE support else if (myField.selectionStart || myField.selectionStart == '0') { var startPos = myField.selectionStart; var endPos = myField.selectionEnd; // save scrollTop before insert www.keleyi.com var restoreTop = myField.scrollTop; myField.value = myField.value.substring(0, startPos) + myValue + myField.value.substring(endPos, myField.value.length); if (restoreTop > 0) { myField.scrollTop = restoreTop; } myField.focus(); myField.selectionStart = startPos + myValue.length; myField.selectionEnd = startPos + myValue.length; } else { myField.value += myValue; myField.focus(); } xsbq(); } function autoPlay(){ var myAuto = document.getElementById('myaudio'); myAuto.play(); ztspbf(); } function ztspbf(){ var divElement = document.getElementById('xsc'); // 替换'divId'为实际的div的id var videoElements = divElement.querySelectorAll('video'); // 获取当前页面中的所有video元素 //var videoElements = document.querySelectorAll('video'); //var videoCount = videoElements.length; // 循环遍历videoElements数组,对每个video元素进行操作 videoElements.forEach(function(video) { // 在这里可以对每个video元素进行进一步的处理 // 修改autoplay属性 video.pause(); video.autoplay = false; // 设置为false表示禁用自动播放 }); } function ybt(){ var tc = document.title; dataxznkf('ybt').value=tc; setInterval("ifblock()",150); setInterval("ifblocka()",3000); } function ifblock(){ var xxxtx = dataxznkf('xxxtx').value; if(xxxtx==1){ var text=document.title; document.title=text.substring(1,text.length)+text.substring(0,1); text=document.title.substring(0,text.length); }else{ var ybt = dataxznkf('ybt').value; document.title=ybt; } } function ifblocka(){ var xxxtx = dataxznkf('xxxtx').value; if(xxxtx==1){ //document.title="您有1条新的消息..."; } } function hqyhid(){ dqyhid = '26895669'; dataxznkf('scyhid').value = dqyhid; setTimeout("hqurl()",3000); sx(1); setInterval("sx(1)",2000); } function csgd(){ var dqpmgd = dataxznkf('dqpmgd').value; var u = navigator.userAgent; //获取到的是个字符串,包括很多信息,我只匹配我想要的信息 var isAnd = u.indexOf("Android") > -1 || u.indexOf("Linux") > -1; //判断是安卓手机 var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //判断是苹果手机 if (isAnd) { var oh = document.documentElement.clientHeight || document.body.clientHeight; //获取变化之前的可视区域的高度 window.addEventListener("resize", function() { //resize事件,这里有个小坑,当绑定多个事件是后面的会覆盖前面的事件 //所以我是用addEventListener,绑定多个事件 var rh = document.documentElement.clientHeight || document.body.clientHeight;//变化之后的高度 if (rh < oh) { //软键盘弹出 dataxznkf('kbgd').style.height='0%'; } else { //软键盘收起 dataxznkf('kbgd').style.height='15%'; } }) } //苹果中不会触发resize,但是可以用focusin/focusout if (isIOS) { document.body.addEventListener("focusin", function() { //软键盘弹出 }); document.body.addEventListener("focusout", function() { //软键盘收起 }) } } function jzxznkf(){ var yhid = '26895669'; if(!yhid){ yhid=0; } var dqym = window.location.host; var urlcj = "https://kf.ycsyys.cn/index/gtgja"; var con = "yhid="+yhid+"&appid=7536&yzm=s47ass347s&phone=&dqym="+dqym+"&zy=&fg=&zskf=&canshu="; var checkEmail; if (window.ActiveXObject){ checkEmail=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ checkEmail=new XMLHttpRequest(); } checkEmail.onreadystatechange = function DcheckEmail() { if(checkEmail.readyState==4){ if (checkEmail.status==200){ var appid = '7536'; if(dataxznkf('audio-play')!=undefined){ var divifyc = document.getElementById('audio-play'); if (window.getComputedStyle(divifyc).display === 'none') { // div has display:none dataxznkf('audio-play').innerHTML=checkEmail.responseText; dataxznkf('audio-play').style.display='block'; } else { dataxznkf('audio-play').innerHTML += checkEmail.responseText; dataxznkf('audio-play').style.display='block'; // div does not have display:none } }else{ if(dataxznkf('xznkfxt')!=undefined){ dataxznkf('xznkfxt').innerHTML=checkEmail.responseText; }else{ var htmlvc = "
    "+checkEmail.responseText+"
    "; document.getElementsByTagName('body')[0].innerHTML += htmlvc; } } tuodong(); gbfc(); hqyhid(); setTimeout("jtsza()",600); setTimeout("tdsz()",700); ybt(); sxyhzx(); setInterval("sxyhzx()",3000); // 监听滚动 scrollHeight = document.getElementById('xsc').scrollHeight; let box = document.querySelector("#xsc"); box.addEventListener("scroll", function (e) { let scrollTop = e.target.scrollTop; let clientHeight = e.target.clientHeight; let scrollHeight = e.target.scrollHeight; var scrollBottom = scrollHeight - scrollTop - clientHeight; var ifkqjt = dataxznkf('ifkqjt').value; if(ifkqjt==1){ if(scrollBottom>150){ //不允许自动滚动 dataxznkf('ifxygd').value = 0; }else{ //允许自动滚动 dataxznkf('ifxygd').value = 1; dataxznkf('zxxx').innerHTML = ''; } } }); document.addEventListener('DOMContentLoaded', function() { var textarea = document.getElementById('describecon'); textarea.addEventListener('keydown', function(event) { if (event.key === 'Enter' && event.shiftKey) { event.preventDefault(); var cursorPosition = textarea.selectionStart; var value = textarea.value; var newValue = value.substring(0, cursorPosition) + '\n' + value.substring(cursorPosition); textarea.value = newValue; textarea.selectionStart = cursorPosition + 1; textarea.selectionEnd = cursorPosition + 1; } }); }); } } } checkEmail.open('post',urlcj,true);//true 异步操作 checkEmail.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); checkEmail.send(con); } setTimeout("jzxznkf()",10); function tcyzkf(){ dataxznkf('yzkf').style.right='0px'; dataxznkf('aFloatTools_Show').style.display='none'; dataxznkf('aFloatTools_Hide').style.display='block'; } function gbyzkf(){ dataxznkf('yzkf').style.right='-232px'; dataxznkf('aFloatTools_Show').style.display='block'; dataxznkf('aFloatTools_Hide').style.display='none'; } //刷新用户在线 function sxyhzx(){ var ifjzsx = dataxznkf('ifjzsx').value; if(ifjzsx==1){ return false; } var yhid = dataxznkf('scyhid').value; var urlch = "https://sx.yangchunsanyue.com/index/sxyhzx"; var con = "appid=7536&yhid="+yhid; var checkEmail; if (window.ActiveXObject){ checkEmail=new ActiveXObject("Msxml2.XMLHTTP.6.0"); }else{ checkEmail=new XMLHttpRequest(); } checkEmail.onreadystatechange = function DcheckEmail() { if(checkEmail.readyState==4){ if (checkEmail.status==200){ } } } checkEmail.open('post',urlch,true);//true 异步操作 checkEmail.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); checkEmail.send(con); } function gbfc(){ document.getElementById('overlay').addEventListener('click', function() { this.style.display = 'none'; }); } function showImageOverlay(imageUrl) { var outerElement = document.getElementById('overlay-image'); outerElement.src = imageUrl; var outerElementa = document.getElementById('overlay'); outerElementa.style.display = 'block'; } //保存图片 function bctp(a,b){ window.location.href='https://w.xznw2.com/index/bctp?name='+a+'&way='+b; } function uploadFile(){ setTimeout("hintbox('show','正在上传中...')",0000); var fd = new FormData(); var pic = document.getElementById("way").files; for(var j=0;j