/*! Sea.js 2.2.1 | seajs.org/LICENSE.md */ ! function(a4, a3) { function a2(b) { return function(a) { return {}.toString.call(a) == "[object " + b + "]" } } function a1() { return aC++ } function a0(b) { return b.match(ay)[0] } function aZ(b) { for (b = b.replace(ax, "/"); b.match(aw);) { b = b.replace(aw, "/") } return b = b.replace(av, "$1/") } function aY(e) { var d = e.length - 1, f = e.charAt(d); return "#" === f ? e.substring(0, d) : ".js" === e.substring(d - 2) || e.indexOf("?") > 0 || ".css" === e .substring(d - 3) || "/" === f ? e : e + ".js" } function aX(d) { var c = aJ.alias; return c && aH(c[d]) ? c[d] : d } function aW(e) { var d = aJ.paths, f; return d && (f = e.match(au)) && aH(d[f[1]]) && (e = d[f[1]] + f[2]), e } function aV(d) { var c = aJ.vars; return c && d.indexOf("{") > -1 && (d = d.replace(at, function(b, e) { return aH(c[e]) ? c[e] : b })), d } function aU(h) { var g = aJ.map, l = h; if (g) { for (var k = 0, j = g.length; j > k; k++) { var i = g[k]; if (l = aF(i) ? i(h) || h : h.replace(i[0], i[1]), l !== h) { break } } } return l } function aT(f, e) { var j, i = f.charAt(0); if (ar.test(f)) { j = f } else { if ("." === i) { j = aZ((e ? a0(e) : aJ.cwd) + f) } else { if ("/" === i) { var h = aJ.cwd.match(aq); j = h ? h[0] + f.substring(1) : f } else { j = aJ.base + f } } } return 0 === j.indexOf("//") && (j = location.protocol + j), j } function aS(e, d) { if (!e) { return "" } e = aX(e), e = aW(e), e = aV(e), e = aY(e); var f = aT(e, d); return f = aU(f) } function aR(b) { return b.hasAttribute ? b.src : b.getAttribute("src", 4) } function aQ(h, g, l) { var k = ai.test(h), j = ap.createElement(k ? "link" : "script"); if (l) { var i = aF(l) ? l(h) : l; i && (j.charset = i) } aP(j, g, k, h), k ? (j.rel = "stylesheet", j.href = h) : (j.async = !0, j.src = h), ah = j, aj ? ak .insertBefore(j, aj) : ak.appendChild(j), ah = null } function aP(b, l, k, j) { function i() { b.onload = b.onerror = b.onreadystatechange = null, k || aJ.debug || ak.removeChild(b), b = null, l() } var h = "onload" in b; return !k || !af && h ? (h ? (b.onload = i, b.onerror = function() { az("error", { uri: j, node: b }), i() }) : b.onreadystatechange = function() { /loaded|complete/.test(b.readyState) && i() }, a3) : (setTimeout(function() { aO(b, l) }, 1), a3) } function aO(g, f) { var j = g.sheet, i; if (af) { j && (i = !0) } else { if (j) { try { j.cssRules && (i = !0) } catch (h) { "NS_ERROR_DOM_SECURITY_ERR" === h.name && (i = !0) } } } setTimeout(function() { i ? f() : aO(g, f) }, 20) } function aN() { if (ah) { return ah } if (ag && "interactive" === ag.readyState) { return ag } for (var e = ak.getElementsByTagName("script"), d = e.length - 1; d >= 0; d--) { var f = e[d]; if ("interactive" === f.readyState) { return ag = f } } } function aM(d) { var c = []; return d.replace(ad, "").replace(ae, function(b, f, e) { e && c.push(e) }), c } function aL(d, c) { this.uri = d, this.dependencies = c || [], this.exports = null, this.status = 0, this._waitings = {}, this ._remain = 0 } if (!a4.seajs) { var aK = a4.seajs = { version: "2.2.1" }, aJ = aK.data = {}, aI = a2("Object"), aH = a2("String"), aG = Array.isArray || a2("Array"), aF = a2("Function"), aC = 0, aA = aJ.events = {}; aK.on = function(e, d) { var f = aA[e] || (aA[e] = []); return f.push(d), aK }, aK.off = function(f, e) { if (!f && !e) { return aA = aJ.events = {}, aK } var h = aA[f]; if (h) { if (e) { for (var g = h.length - 1; g >= 0; g--) { h[g] === e && h.splice(g, 1) } } else { delete aA[f] } } return aK }; var az = aK.emit = function(f, e) { var h = aA[f], g; if (h) { for (h = h.slice(); g = h.shift();) { g(e) } } return aK }, ay = /[^?#]*\//, ax = /\/\.\//g, aw = /\/[^/]+\/\.\.\//, av = /([^:/])\/\//g, au = /^([^/:]+)(\/.+)$/, at = /{([^{]+)}/g, ar = /^\/\/.|:\//, aq = /^.*?\/\/.*?\//, ap = document, ao = a0(ap.URL), an = ap.scripts, am = ap.getElementById("seajsnode") || an[an.length - 1], al = a0(aR(am) || ao); aK.resolve = aS; var ak = ap.head || ap.getElementsByTagName("head")[0] || ap.documentElement, aj = ak.getElementsByTagName("base")[0], ai = /\.css(?:\?|$)/i, ah, ag, af = +navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/(\d+).*/, "$1") < 536; aK.request = aQ; var ae = /"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|\/\*[\S\s]*?\*\/|\/(?:\\\/|[^\/\r\n])+\/(?=[^\/])|\/\/.*|\.\s*require|(?:^|[^$])\brequire\s*\(\s*(["'])(.+?)\1\s*\)/g, ad = /\\\\/g, ac = aK.cache = {}, aa, aD = {}, a6 = {}, aB = {}, a5 = aL.STATUS = { FETCHING: 1, SAVED: 2, LOADING: 3, LOADED: 4, EXECUTING: 5, EXECUTED: 6 }; aL.prototype.resolve = function() { for (var g = this, f = g.dependencies, j = [], i = 0, h = f.length; h > i; i++) { j[i] = aL.resolve(f[i], g.uri) } return j }, aL.prototype.load = function() { var b = this; if (!(b.status >= a5.LOADING)) { b.status = a5.LOADING; var n = b.resolve(); az("load", n); for (var m = b._remain = n.length, l, k = 0; m > k; k++) { l = aL.get(n[k]), l.status < a5.LOADED ? l._waitings[b.uri] = (l._waitings[b.uri] || 0) + 1 : b ._remain-- } if (0 === b._remain) { return b.onload(), a3 } var j = {}; for (k = 0; m > k; k++) { l = ac[n[k]], l.status < a5.FETCHING ? l.fetch(j) : l.status === a5.SAVED && l.load() } for (var i in j) { j.hasOwnProperty(i) && j[i]() } } }, aL.prototype.onload = function() { var f = this; f.status = a5.LOADED, f.callback && f.callback(); var e = f._waitings, h, g; for (h in e) { e.hasOwnProperty(h) && (g = ac[h], g._remain -= e[h], 0 === g._remain && g.onload()) } delete f._waitings, delete f._remain }, aL.prototype.fetch = function(b) { function n() { aK.request(j.requestUri, j.onRequest, j.charset) } function m() { delete aD[i], a6[i] = !0, aa && (aL.save(k, aa), aa = null); var d, c = aB[i]; for (delete aB[i]; d = c.shift();) { d.load() } } var l = this, k = l.uri; l.status = a5.FETCHING; var j = { uri: k }; az("fetch", j); var i = j.requestUri || k; return !i || a6[i] ? (l.load(), a3) : aD[i] ? (aB[i].push(l), a3) : (aD[i] = !0, aB[i] = [l], az( "request", j = { uri: k, requestUri: i, onRequest: m, charset: aJ.charset }), j.requested || (b ? b[j.requestUri] = n : n()), a3) }, aL.prototype.exec = function() { function b(a) { return aL.get(b.resolve(a)).exec() } var j = this; if (j.status >= a5.EXECUTING) { return j.exports } j.status = a5.EXECUTING; var i = j.uri; b.resolve = function(c) { return aL.resolve(c, i) }, b.async = function(a, e) { return aL.use(a, e, i + "_async_" + a1()), b }; var h = j.factory, d = aF(h) ? h(b, j.exports = {}, j) : h; return d === a3 && (d = j.exports), delete j.factory, j.exports = d, j.status = a5.EXECUTED, az("exec", j), d }, aL.resolve = function(e, d) { var f = { id: e, refUri: d }; return az("resolve", f), f.uri || aK.resolve(f.id, d) }, aL.define = function(b, l, k) { var j = arguments.length; 1 === j ? (k = b, b = a3) : 2 === j && (k = l, aG(b) ? (l = b, b = a3) : l = a3), !aG(l) && aF(k) && ( l = aM("" + k)); var i = { id: b, uri: aL.resolve(b), deps: l, factory: k }; if (!i.uri && ap.attachEvent) { var h = aN(); h && (i.uri = h.src) } az("define", i), i.uri ? aL.save(i.uri, i) : aa = i }, aL.save = function(e, d) { var f = aL.get(e); f.status < a5.SAVED && (f.id = d.id || e, f.dependencies = d.deps || [], f.factory = d.factory, f .status = a5.SAVED) }, aL.get = function(d, c) { return ac[d] || (ac[d] = new aL(d, c)) }, aL.use = function(a, h, g) { var f = aL.get(g, aG(a) ? a : [a]); f.callback = function() { for (var c = [], j = f.resolve(), i = 0, e = j.length; e > i; i++) { c[i] = ac[j[i]].exec() } h && h.apply(a4, c), delete f.callback }, f.load() }, aL.preload = function(e) { var d = aJ.preload, f = d.length; f ? aL.use(d, function() { d.splice(0, f), aL.preload(e) }, aJ.cwd + "_preload_" + a1()) : e() }, aK.use = function(d, c) { return aL.preload(function() { aL.use(d, c, aJ.cwd + "_use_" + a1()) }), aK }, aL.define.cmd = {}, a4.define = aL.define, aK.Module = aL, aJ.fetchedList = a6, aJ.cid = a1, aK.require = function(d) { var c = aL.get(aL.resolve(d)); return c.status < a5.EXECUTING && (c.onload(), c.exec()), c.exports }; var aE = /^(.+?\/)(\?\?)?(seajs\/)+/; aJ.base = (al.match(aE) || ["", al])[1], aJ.dir = al, aJ.cwd = ao, aJ.charset = "utf-8", aJ.preload = function() { var d = [], c = location.search.replace(/(seajs-\w+)(&|$)/g, "$1=1$2"); return c += " " + ap.cookie, c.replace(/(seajs-\w+)=1/g, function(a, e) { d.push(e) }), d }(), aK.config = function(g) { for (var f in g) { var j = g[f], i = aJ[f]; if (i && aI(i)) { for (var h in j) { i[h] = j[h] } } else { aG(i) ? j = i.concat(j) : "base" === f && ("/" !== j.slice(-1) && (j += "/"), j = aT(j)), aJ[ f] = j } } return az("config", g), aK } } }(this);; /*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ !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
",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) { b.el.slidesjs({ width: b.width, height: b.height, navigation: false, play: { auto: !b.stop, interval: 5000 }, callback: { loaded: function() { if (!b.loaded) { return } this.stop(true); var d = this; globalData.slidePlay = function(e) { d.play(e) } } } }) } }) }) }; Util.dropdown = function(a) { if (!$(".js-activated").length) { return } seajs.use("dropdown", function() { for (var c in Util.url.params) { var b = $("li[data-key='" + c + "']").filter("li[data-select='" + Util.url.params[c] + "']"); if (b) { b.addClass("dropdown-menu-item-current"); b.parents(".dropdown").find(".dropdown-toggle-text").html(b.find("a").html()) } } $(".js-activated").dropdownHover({ select: function(d, e) { d.parents(".dropdown").find(".dropdown-toggle-text").html(d.find("a").html()); if (d.parent().hasClass("dropdown-type-reload")) { Util.url.set(d.attr("data-key"), d.attr("data-select")); window.location.href = Util.url.getUrl() } else { if (d.parent().hasClass("dropdown-type-setKey")) { a[d.attr("data-key")] = d.attr("data-select") } } } }) }) }; Util.tabs = function(a) { if (!$(".J-tabs").length) { return } seajs.use("ui", function() { $(".J-tabs").each(function(c, b) { $(b).tabs({ active: a || 0, event: "mouseover" }) }) }) }; Util.fixed = function(c, b) { if (!c[0]) { return } var a = $(c).offset().top; $.event.add(window, "scroll", function() { var d = $(window).scrollTop(); if (d > a) { $(c).css("position", "fixed"); $(c).css("top", "0px"); $(c).css("z-index", "999"); b && b.start && b.start() } else { $(c).css("position", "static"); b && b.end && b.end() } }) }; Util.scrollTo = function(c, a) { if (!$(".J-scroll").length) { return } var b = a || 0; $(".J-scroll").click(function(e) { e.preventDefault(); var d = $(this); if ($("#" + d.attr("data-id")).length) { $("html,body").animate({ scrollTop: $("#" + d.attr("data-id")).position().top - b }, 500, function() { c && c(d) }) } else { window.open(d.attr("data-href")) } }) }; Util.lazyload = function() { if (!$(".J-lazyload").length) { return } seajs.use("lazyload", function() { $(".J-lazyload").lazyload({ threshold: 300, data_attribute: "src", placeholder: "http://files.0938.cn/images/default.jpg" }) }) }; Util.getRequestId = function() { return Util.get_url_para(window.location, "_no").substr(4) }; Util.placeholder = { _check: function() { return "placeholder" in document.createElement("input") }, init: function() { if (!this._check()) { this.fix() } }, fix: function() { if (!$(":input[placeholder]").length) { return } $(":input[placeholder]").each(function(e, b) { var k = $(this), c = k.attr("placeholder"); if (k.css("display") != "none") { k.wrap($("
").css({ position: "relative", zoom: "1", border: "none", background: "none", padding: "none", margin: "none" })); var i = k.position(), d = k.css("height"), f = k.css("padding"), a = k.css("width"), j = k.css("font-size"); var g = $("").text(c).css({ position: "absolute", left: i.left, fontSize: j, top: i.top, width: a, overflow: "hidden", height: d, lineHeight: d, padding: f, color: "#aaa" }).appendTo(k.parent()); k.focusin(function(h) { g.hide() }).focusout(function(h) { if (!k.val()) { g.show() } }); g.click(function(h) { g.hide(); k.focus() }) } }) } }; Util.rate = function() { if (!$(".J-rate").length) { return } seajs.use("rate", function() { $(".J-rate").jRating({ bigStarsPath: "http://files.0938.cn/images/comment-star.png", sendPath: "/ashx/house/comment.ashx", showRateInfo: false, mouseleave: function() { $(this).parent().find(".tip b").html("0") }, mousemove: function(a) { $(this).parent().find(".tip b").html(a) }, sendData: function(d, c, e) { var a = {}; a["_" + c] = e; var b = Util.getCookie("_id_" + Util.getRequestId()); a._id = b || 0; a._content = " "; a._hn_id = Util.getRequestId(); return a }, onSuccess: function(e, k, j, d) { var b = $("#" + k), f = b.find(".J_per_score"), h = parseFloat(f.html()), g = b.find(".J_per_people"), c = parseInt(g.html()), i = b.find(".per em"); g.html(c + 1); var a = ((h * c + j) / (c + 1)).toFixed(2); f.html(a); a = a.toString() + "%"; i.animate({ width: a }); Util.addCookie("_id_" + Util.getRequestId(), d, 0) }, onError: function() { alert("评分失败,请重新再试") } }) }) }; Util.ticker = function() { if (!$("#ticker")) { return } seajs.use("ticker", function() { $("#ticker").vTicker({ speed: 500, showItems: 2 }) }) }; Util.gallery = function() { seajs.use("gallery", function() {}); Util.fancyboxGallery() }; Util.url = { ourl: window.location.href, href: "", params: {}, paramsIsNULL: false, jing: "", defaultValue: "all", init: function() { var e = this.ourl; var a = e.indexOf("#"); if (a > 0) { this.jing = e.substr(a); e = e.substring(0, a) } a = e.indexOf("?"); if (a > 0) { this.href = e.substring(0, a); e = e.substr(a + 1); var d = e.split("&"); for (var b = 0; b < d.length; b++) { var c = d[b].split("="); this.params[c[0]] = c[1] } } else { this.href = this.ourl; this.params = {}; this.paramsIsNULL = true } }, set: function(a, b) { this.params[a] = b }, getUrl: function(e, d) { var c = e || this.href; var a = []; for (var b in this.params) { if (this.params[b]) { if (!(d && (b != d))) { a.push(b + "=" + this.params[b]) } } } if (a.length > 0) { c += "?" + a.join("&") } if (this.jing.length > 0) { c += this.jing } return c }, remove: function(a) { this.params[a] = undefined }, get: function(a) { return this.params[a] }, filter: function() { var a = this; this.init(); for (var b in this.params) { $(".J-filter[filter-key='" + b + "'][filter-value='" + this.params[b] + "']").addClass("current") } $(".J-filter[filter-value='" + this.defaultValue + "']").each(function(d, c) { !$(c).parent().children(".current").length && $(c).addClass("current") }); $(document).delegate(".J-filter", "click", function(g) { g.preventDefault(); var f = $(this).attr("filter-key"), h = $(this).attr("filter-value"); a.set(f, h); var e = "", c = $(this).attr("href") ? $(this).attr("href") : $(this).children("a").attr("href"); if (c.indexOf(".aspx") != -1) { var d = c.indexOf("?"); if (d > 0) { c = c.substring(0, d) } if (f.indexOf("subnav") != -1) { e = a.getUrl(c) } else { e = a.getUrl(c, f) } } else { e = a.getUrl() } window.location.href = e }) } }; Util.nav = function(c) { if (!$(".J-nav").length || $(".J-nav .current").length) { return } var b = c || window.location.pathname; var d = $('.J-nav a[href*="' + b + '"]'); if (!d.length) { var a = b.split("/"); b = "/" + a[1] + "/" + a[2]; d = $('.J-nav a[href*="' + b + '"]') } if (!d.length) { b = "/" + a[1]; d = $('.J-nav a[href*="' + b + '"]') } d.length && $(d.parent()[0]).addClass("current") }; Util.fancybox = function(a) { seajs.use(["fancybox_css", "fancybox"], function() { $.fancybox.open(a) }) }; Util.fancyboxGallery = function() { if (!$(".fancybox-thumbs").length) { return } seajs.use(["fancybox_css", "fancybox"], function() { $(".fancybox-thumbs").fancybox({ prevEffect: "none", nextEffect: "none", helpers: { thumbs: { width: 50, height: 50 } } }) }) }; Util.hoverBox = function(a) { if (!$(".J-hoverbox")) { return } $(".J-hoverbox").each(function() { var c = $("#" + $(this).attr("data-hover")); var b = $(this).position(); $(this).hover(function() { c.css("left", b.left + $(this).width()).css("top", b.top); if (!(a && !a($(this), c))) { c.show() } }, function() { c.hide() }) }) }; Util.hoverInfo = function() { if (!$(".hover-info").length) { return } $(".hover-info").hover(function(a) { console.log(a.currentTarget); setTimeout(function() { $(this).find(".hover-info-box").animate({ opacity: 1, easing: "easein" }, 1000) }, 100) }, function() { setTimeout(function() { $(this).find(".hover-info-box").animate({ opacity: 0, easing: "easeout" }, 500) }, 100) }) }; Util.hover = function(a) { if (!$(".J-hover").length) { return } $(".J-hover").each(function() { $(this).hover(function() { if (!(a && !a($(this)))) { $(this).addClass("hover") } }, function() { $(this).removeClass("hover") }) }) }; Util.galleryToImages = function() { var b = $(".ser-detail-foot-cnt"); if (!b.length) { return } var c = $(".g_img .img_big img"); if (!c.length) { return } var a = ""; c.each(function(f, d) { var e = $(d).parent().attr("href"); a += '' }); $(a).appendTo(b) }; Util.decimal = function(c) { var a = 0, b = []; while (c != 0) { if (c % 2 == 1) { b.push(Math.pow(2, a)) } a += 1; c >>>= 1 } return b }; Util.setLast = function() { if (!$(".J-last").length) { return } $(".J-last").each(function(b, a) { $(a).children().last().addClass("last") }) }; Util.map = function() { if (!$(".J-map").length) { return } $(".J-map").click(function(b) { b.preventDefault(); var a = $(this).attr("href"); Util.xbox({ width: "740px", height: "370px", src: a, callback: function() { return true } }) }) }; Util.bankCombo = function() { if (!$(".ui-list-bank-icon").length) { return } var c = "https://i.alipayobjects.com/combo.png?d=cashier&t=", a = []; $(".ui-list-bank-icon").each(function(e, d) { d = $(d); d.css({ "background-position": "0 " + (-e * 36) + "px" }); a.push(d.attr("class").split(" ")[2]) }); c += a.join(","); $("").appendTo("head"); var b = $(".bank-current"); $(".J-bank").click(function(d) { b.removeClass("bank-current"); $(this).find(".J-icon").addClass("bank-current"); $(this).find(".J-check")[0].checked = true; b = $(this).find(".J-icon") }) }; Util.select = function(a, c) { var b = a || "welfare"; Util.url.params[b] && $(Util.decimal(parseInt(Util.url.params[b]))).each(function(e, d) { $(".J-select a[data-value=" + d + "]").parent().addClass("select") }); $(document).delegate(".J-select", "click", function(g) { g.preventDefault(); $(this).hasClass("select") ? $(this).removeClass("select") : $(this).addClass("select"); var f = 0; $(".select").each(function(h, e) { f += parseInt($(e).attr("data-value")) || parseInt($(e).children("a").attr( "data-value")) }); if (f) { Util.url.set(b, f) } else { delete Util.url.params[b] } var d = Util.url.getUrl(); if (!(c && !c(d))) { window.location.href = d } }) }; Util.ajaxForm = function(b) { var a = $("#btn_submit"); if (!b.url) { return } if (a && b.stopOnError) { a.addClass("btn-disabled"); a.attr("disabled", "disabled") } var c = (new Date()).getTime(); if (b.url.indexOf("?") != -1) { _url = b.url + "&stamp=" + c } else { _url = b.url + "?stamp=" + c } $.ajax({ type: "post", url: _url, data: b.data, beforeSend: function() { b.beforeSend && b.beforeSend() }, success: function(d) { if (globalData.redirectUrl) { window.location.href = globalData.redirectUrl } else { b.success && b.success.call(this, d) } }, complete: function() { b.complete && b.complete(); a && a.removeAttr("disabled"); a && a.removeClass("btn-disabled") } }) }; var M_COUNT_DOWN, TIME_ID; Util.sendcode = function(a) { a.beforeSendCode && a.beforeSendCode(a); M_COUNT_DOWN = 60; var c = a.mobile || $('input[validate-type="mobile"]').val(); var b = a.template || "手机认证"; if (!c) { return } a.sendBtn && resendcode.call(a.sendBtn); Util.ajaxForm($.extend({ url: a.url }, a)) }; function resendcode() { var a = this; this.attr("disabled", "true"); this.html("(" + M_COUNT_DOWN + "秒后)重新获取"); if (M_COUNT_DOWN > 0) { M_COUNT_DOWN--; TIME_ID = window.setTimeout(function() { resendcode.call(a) }, 1000) } else { window.clearTimeout(TIME_ID); this.val("获取手机确认码"); this.removeAttr("disabled") } } var _current_click = null; $(document).ready(function() { $("form").click(function(a) { _current_click = a.target }) }); Util.getClick = function() { return _current_click }; Util.autoComplete = function(a) { if (!$(".J-autoComplete").length) { return } seajs.use(["common/ui/jquery-ui.min.css", "common/ui/jquery-ui.min.js"], function() { $(".J-autoComplete").each(function(c, d) { var b = $(d); b.autocomplete({ source: function(f, e) { $.ajax({ url: b.attr("data-url"), data: { name: f.term }, dataType: "json", success: function(h, i, g) { e($.map(h, function(k, j) { return { label: k.name, value: k.name, _value: k.value } })) } }) }, delay: 300, select: function(e, f) { a.select && a.select(e, f) } }) }) }) }; Util.eachSlider = function(g) { var c = g.slideCnt, d = g.slideItems, f = g.left, b = g.right, e = g.current || 0; var a = function(h) { f.show() && b.show(); if (!d[h]) { return } var i = 0 - $(d[h]).position().left; c.animate({ left: i }, { duration: 500 }) }; f.click(function(h) { h.preventDefault(); if (e > 0) { e--; a(e) } }); b.click(function(h) { h.preventDefault(); if (e < d.length - 1) { e++; a(e) } }) }; Util.adExpansion = function() { var a = $(".J-ad-expansion"); if (!a.length) { return } a.hover(function() { $(this).animate({ opacity: 1, width: 1000, left: 0 }, 1000) }, function() { $(this).fadeOut() }) }; Util.toUtf8 = function(e) { var b, d, a, f; b = ""; a = e.length; for (d = 0; d < a; d++) { f = e.charCodeAt(d); if ((f >= 1) && (f <= 127)) { b += e.charAt(d) } else { if (f > 2047) { b += String.fromCharCode(224 | ((f >> 12) & 15)); b += String.fromCharCode(128 | ((f >> 6) & 63)); b += String.fromCharCode(128 | ((f >> 0) & 63)) } else { b += String.fromCharCode(192 | ((f >> 6) & 31)); b += String.fromCharCode(128 | ((f >> 0) & 63)) } } } return b }; Util.xbox = function(a) { seajs.use(["laycss", "lay"], function() { $.layer({ type: 2, border: [5, 0.5, "#666"], shadeClose: true, title: a.title || "", area: [a.width || "500px", a.height || "260px"], iframe: { src: a.src }, end: function() { a.callback && a.callback() } }) }) }; Util.qrcode = function(a) { if (!$(".J-qrcode").length) { return } seajs.use("qrcode", function() { $(".J-qrcode").each(function(b, c) { c = $(c); var d = a(c.attr("data-text")); if (!d) { return } c.qrcode({ render: "table", width: c.attr("data-width") || 150, height: c.attr("data-width") || 150, text: d }) }) }) }; Util.rotate = function(e, h) { if (!e) { return } var a = "0px", d = e.height; if (!document.body.filters) { if (Math.abs(h / 90 % 2)) { console.log("width:" + e.width); d = e.width; a = (e.width - e.height) / 2 + "px" } $(e).parent().css("height", d); e.style.MozTransform = "translate(0px, " + a + ") rotate(" + h + "deg)"; e.style.webkitTransform = "translate(0px, " + a + ") rotate(" + h + "deg)"; e.style.msTransform = "translate(0px, " + a + ") rotate(" + h + "deg)"; e.style.OTransform = "translate(0px, " + a + ") rotate(" + h + "deg)"; e.style.transform = "translate(0px, " + a + ") rotate(" + h + "deg)" } else { if (h >= 0) { h = Math.PI * h / 180 } else { h = Math.PI * (360 + h) / 180 } var c = Math.cos(h), b = -Math.sin(h), g = Math.sin(h), f = Math.cos(h); $(e).parent().css("height", d); e.style.filter = "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11='" + c + "', M12='" + b + "', M21='" + g + "', M22='" + f + "')" } }; Util.promotion = function(b) { var a = $(".content-extend .col2_r"); if (a.length && !a.hasClass("except")) { $.get("/ashx/promotion.ashx", { _module: b, stamp: (new Date()).getTime() }).done(function(c) { seajs.use("http://files.0938.cn/css/common/popularize.css"); var d = parseInt($(".content-extend .col2_l")[0] ? $(".content-extend .col2_l").css( "margin-top") : 0) + parseInt($(".mainbar1 .row1")[0] ? $(".mainbar1 .row1").css( "height") : 0); a.css("margin-top", d + "px"); a.html(c) }) } }; Util.validate = { base: {}, getField: function(a) { return this.defaultFields[a] }, setField: function(a, b) { this.defaultFields[a] = b }, set: function(a, b) { this.base[a] = b }, get: function(a) { return this.base[a] }, defaultFields: { username: { rule: "required;", msg: { required: "您还没有输入账户名" } }, usernameExist: { rule: "required;username;", tip: "只能由字母、数字、下划线和中文组成,以中文或字母开头,长度为2-16位", ok: "", dataFilter: function(a) { if (a == "True") { return "用户名已存在" } else { return "" } }, msg: { required: "您还没有输入用户名" } }, password: { rule: "required;password", msg: { required: "您还没有输入密码" } }, oldpwd: { rule: "密码:required;password", tip: "请输入原始密码", ok: "", msg: { required: "原始密码不能为空!" } }, newpwd: { rule: "密码:required;length[6~];password;strength", tip: "密码需由6-16个字母、数字和符号组成,区分大小写", ok: "", msg: { required: "密码不能为空!", length: "密码最少为6位。" } }, repwd: { rule: "required;match(#txt_newpwd);", tip: "请再次输入您的密码", ok: "", msg: { required: "密码不一致,请再次确认", match: "密码不一致,请再次确认" } }, mobile: { rule: "required;mobile;", dataFilter: function(a) { if (a == "True") { return "该手机号码已被认证" } else { return "" } }, ok: "" }, mobileNotExist: { rule: "required;mobile;", dataFilter: function(a) { if (a == "False") { return "该手机号码尚未注册" } else { return "" } }, ok: "" }, mobileExist: { rule: "required;mobile;", tip: "请输入您的手机号码", ok: "", dataFilter: function(a) { if (a == "True") { return "手机号已存在" } else { return "" } }, msg: { required: "请输入您的手机号码" } }, company: { rule: "required;length[2~50];", tip: "请填写营业执照上面的名称", ok: "", msg: { required: "2-50个字,只能填汉字,字母,数字及括号" } }, companyExist: { rule: "required;length[2~50];", tip: "请填写营业执照上面的名称", ok: "", dataFilter: function(a) { if (a == "True") { return "企业已存在" } else { return "" } }, msg: { required: "请输入企业名称" } }, code: { rule: "required;", ok: "", dataFilter: function(a) { if (a == "True") { return "" } else { return "手机确认码错误" } } }, cardpic: { rule: "mychecked", ok: "", msg: { mychecked: "请上传身份证" } }, cardid: { rule: "required; cardid;", ok: "", dataFilter: function(a) { if (a == "True") { return "身份证号已经被认证" } else { return "" } } }, number: { rule: "required;integer[+];" }, no: { rule: "required;", ok: "" }, buinessName: { rule: "required;", ok: "" }, legal: { rule: "required;", ok: "" }, licensePic: { rule: "mychecked", ok: "", msg: { mychecked: "请上传营业执照" } }, phone: "required;", qq: "qq", truename: "chinese", birth: "required", email: { rule: "required;email;", tip: "请输入电子邮箱", ok: "", dataFilter: function(a) { if (a == "True") { return "抱歉,该邮箱已经被注册过" } else { return "" } }, msg: { required: "您还没有输入电子邮箱" } }, emailExist: { rule: "required;email;", tip: "请输入有效的电子邮箱,可用于登录和找回密码", ok: "", dataFilter: function(a) { if (a == "True") { return "邮箱已存在" } else { return "" } }, msg: { required: "您还没有输入电子邮箱", remote: "电子邮箱已存在" } }, agree: { rule: "checked", msg: { checked: "请同意使用协议" } }, mileage: { rule: "required;price;" }, price: { rule: "price", msg: { price: "请输入正确的格式" } }, title: { rule: "required;length[2~50];" }, brand: { rule: "required;length[2~50];" }, content: { rule: "required;" }, address: { rule: "required;length[2~50];" }, contact: { rule: "required;contact" } }, getFormData: function(d, b) { var c = this; b = b || "J-validate"; var a = {}; var e = d.find("." + b); if (!e.length) { return } e.each(function(g, h) { var f = $(h).attr("validate-name"); if (!f) { f = "_" + $(h).attr("validate-type") } f && (a[f] = $(h).val()) }); return a }, getFormFields: function(b) { var e = b.form; var d = this; var c = "J-validate"; var a = {}; var f = e.find("." + c); if (!f.length) { return } f.each(function(h, i) { var g = $(i).attr("validate-type"); if (g) { if ($(i).attr("validate-remote")) { d.defaultFields[g].rule += "remote[" + $(i).attr("validate-remote") + "]" } a["#" + $(i).attr("id")] = d.defaultFields[g] } }); return a }, valid: function(a) { var b = this; if (!a.fields) { a.fields = {} } $.extend(a.fields, b.getFormFields(a)); seajs.use("validator", function() { seajs.use("validator_CN", function() { var c = { stopOnError: true, timely: 2, rules: { mychecked: function(d) { if (d.value == "0" || d.value == "") { return false || "请选择" } return true }, username: [/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9_\u4E00-\u9FA5]{1,15}$/, "只能由字母、数字、下划线和中文组成,以中文或字母开头,长度为2-16位" ], mobile: function(d) { return Util.isMobile(d.value) }, contact: [/[^\x00-\xff]/, "只能由中英文字符组成(2-10个字)。"], phone: function(d) { return true }, myfloat: function(d) { return Util.IsFloat(d.value) }, price: function(d) { return Util.IsFloat(d.value) } } }; $.extend(c, a); c.valid = function(d) { if (!a.valid || (a.valid && a.valid(d))) { c.data = c.getData ? c.getData() : {}; $.extend(c.data, b.getFormData(c.form)); Util.ajaxForm(c) } }; b.base = c; a.form.validator(c); c.beforeValidate && c.beforeValidate.call(a.form, c) }) }) }, login: function(a) { var b = this; $.extend(a, { theme: "yellow_top", url: "/ashx/user/login.ashx", success: function(c) { if (c > 0) { if (get_url_para(window.location, "ReturnUrl") != null) { window.location = get_url_para(window.location, "ReturnUrl") } else { window.location = a.ReturnUrl || "/my/index.aspx" } } else { if (c == 0) { $("#msg-holder").html("账户名或密码错误"); a.successCallback && a.successCallback() } else { $("#msg-holder").html("此账户被禁用") } } }, invalid: function(d, e) { var c = ""; $.map(e, function(f) { $("#msg-holder").html(f) }) } }); b.valid(a) } }; /** * 新轮播图swiper * @author shenhu */ let swiperFlag = true; Util.swiper = function(id,option){ if(id){ seajs.use('swiper', function () { if(swiperFlag){ var link = document.createElement("link"); link.rel = "stylesheet"; link.type = "text/css"; link.href = 'https://files.risun-tec.cn/js/common/swiper/swiper-bundle.min.css'; document.getElementsByTagName("head")[0].appendChild(link); swiperFlag = false } var swiper = new Swiper(id, option); }) }else{ return; } } /** * 新图片预览 * @author shenhu */ let imgPerviewFlag = true Util.imgPerview = function(id) { if(id){ seajs.use('imgPerview', function () { if(imgPerviewFlag){ var link = document.createElement("link"); link.rel = "stylesheet"; link.type = "text/css"; link.href = 'https://files.risun-tec.cn/js/common/imgPerview/jquery.galpop.css'; document.getElementsByTagName("head")[0].appendChild(link); imgPerviewFlag = false } $(id).galpop(); }) }else{ return; } } /** * 新数字效果(1) * @author shenhu */ let OdometerFlag = true Util.Odometer = function(id,num,dot){ if(id){ seajs.use('Odometer', function () { if(OdometerFlag){ var link = document.createElement("link"); link.rel = "stylesheet"; link.type = "text/css"; link.href = 'https://files.risun-tec.cn/js/common/Odometer/Odometer.css'; document.getElementsByTagName("head")[0].appendChild(link); OdometerFlag = false } var odo = new Odometer(id,{ len : null, //设置默认位数 num : num || 0, //初始化值 speed : 3000, //动画速度 symbol : '', //分割符 dot : dot || 0 //保留几位小数点 }); }) }else{ return } } /** * 新数字效果(2) * @author shenhu */ Util.numscroll = function(id,time){ if(id){ seajs.use('numscroll', function () { $(id).numScroll({ time: time || 1500 }); }) }else{ return; } } /** * echarts 图表组件库 * @author shenhu */ Util.Echarts = function(id,animate,option,callback){ if(id){ console.log(id,option) seajs.use('Echarts', function () { var DOM = document.getElementById(id); var myChart = echarts.init(DOM); if (option && typeof option === "object") { myChart.setOption(option, true); //确保callback是一个函数 if(animate){ setInterval(function(){ myChart.clear(); myChart.setOption(option, true); },5000) } if(typeof callback === "function"){ //调用它,既然我们已经确定了它是可调用的 callback(myChart); } } }) }else{ return; } } /** * echarts 分页组件 * @author shenhu */ let pagesFlag = true Util.pages = function(id,option){ seajs.use('pages',function(){ if(pagesFlag){ var link = document.createElement("link"); link.rel = "stylesheet"; link.type = "text/css"; link.href = 'https://files.risun-tec.cn/js/common/pagenation/jquery.pagination.css'; document.getElementsByTagName("head")[0].appendChild(link); pagesFlag = false } $(id).pagination(option); }) } /** * 基础弹窗 * @author shenhu */ let dialogFlag = true Util.dialog = function(id,thingsType,option){ seajs.use('dialog',function(){ if(dialogFlag){ var link = document.createElement("link"); link.rel = "stylesheet"; link.type = "text/css"; link.href = 'https://files.risun-tec.cn/js/common/dialog/dialog.css'; document.getElementsByTagName("head")[0].appendChild(link); dialogFlag = false } if(thingsType === 'click'){ $(id).click(function(){ var infoDialog = $.dialog(option); // if(typeof callback === "function"){ // callback(infoDialog); // } }); }else{ var infoDialog = $.dialog(option); // if(typeof callback === "function"){ // callback(infoDialog); // } } }) } /** * videoJs组件 * @author shenhu */ Util.video = function(id,option){ if(id){ seajs.use(["common/videojs/video-js.min.css","common/videojs/video.min.js","common/videojs/videojs-contrib-hls.js","common/videojs/videojs-flash.js"],function(){ var player = videojs(id, option); }) }else{ return } } /** * 跑马灯组件 * @author shenhu */ Util.marquee = function(id,option){ if(id){ seajs.use('marquee',function(){ $(id).marquee(option); }) } else{ return } } /** * 评分组件 * @author shenhu */ Util.rate = function(id,option){ if(id){ seajs.use('rate',function(){ $(id).lqScore(option); }) }else{ return } } /** * 区域定位组件 * @author shenhu */ Util.sticky = function(id,option){ if(id){ seajs.use('sticky',function(){ var sticky = new Sticky(id); }) }else{ return } } /** * 详情页图片放大展示 H5 使用 * @author shenhu */ Util.flyZoom = function(id,fn){ if(id){ seajs.use('flyZoom',function(){ var fly1 = $(id).FlyZommImg({ miscellaneous: true, //是否显示底部辅助按钮 closeBtn: true, //是否打开右上角关闭按钮 slitherCallback: fn // function(direction, DOM) { // // //左滑动回调 两个参数 第一个动向 // // 'left,firstClick,close' // // 第二个 当前操作DOM // // console.log('test1'); // } }); }) } } Util.buyCountDeal = function(e) { if (!e.num) { return } var d = parseInt(e.num.val()); var f = function(a) { e.beforeChange && e.beforeChange(a); e.minus.removeClass("minus-disable"); e.plus.removeClass("plus-disable"); if (a <= 1) { a = 1; e.minus.addClass("minus-disable") } if (a >= e.max) { a = e.max; e.plus.addClass("plus-disable") } e.num.val(a); d = a; e.afterChange && e.afterChange(a) }; f(d); e.num.keyup(function(b) { var a = b.which; var c = $(this); if ((a >= 48 && a <= 57) || (a >= 96 && a <= 105)) { d = parseInt(c.val()) } else { d = 0 } f(d) }); e.plus.click(function() { if (!$(this).hasClass("plus-disable")) { d++; f(d) } }); e.minus.click(function() { if (!$(this).hasClass("minus-disable")) { d--; f(d) } }) }; (function(a) { var b = a({}); a.subscribe = function() { b.bind.apply(b, arguments) }; a.unsubscribe = function() { b.unbind.apply(b, arguments) }; a.publish = function() { b.trigger.apply(b, a.makeArray(arguments)) } })(jQuery);; if (!this.JSON) { this.JSON = {} }(function() { function f(n) { return n < 10 ? "0" + n : n } if (typeof Date.prototype.toJSON !== "function") { Date.prototype.toJSON = function(key) { return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f( this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f( this.getUTCSeconds()) + "Z" : null }; String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function(key) { return this.valueOf() } } var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, gap, indent, meta = { "\b": "\\b", "\t": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" }, rep; function quote(string) { escapable.lastIndex = 0; return escapable.test(string) ? '"' + string.replace(escapable, function(a) { var c = meta[a]; return typeof c === "string" ? c : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) }) + '"' : '"' + string + '"' } function str(key, holder) { var i, k, v, length, mind = gap, partial, value = holder[key]; if (value && typeof value === "object" && typeof value.toJSON === "function") { value = value.toJSON(key) } if (typeof rep === "function") { value = rep.call(holder, key, value) } switch (typeof value) { case "string": return quote(value); case "number": return isFinite(value) ? String(value) : "null"; case "boolean": case "null": return String(value); case "object": if (!value) { return "null" } gap += indent; partial = []; if (Object.prototype.toString.apply(value) === "[object Array]") { length = value.length; for (i = 0; i < length; i += 1) { partial[i] = str(i, value) || "null" } v = partial.length === 0 ? "[]" : gap ? "[\n" + gap + partial.join(",\n" + gap) + "\n" + mind + "]" : "[" + partial.join(",") + "]"; gap = mind; return v } if (rep && typeof rep === "object") { length = rep.length; for (i = 0; i < length; i += 1) { k = rep[i]; if (typeof k === "string") { v = str(k, value); if (v) { partial.push(quote(k) + (gap ? ": " : ":") + v) } } } } else { for (k in value) { if (Object.hasOwnProperty.call(value, k)) { v = str(k, value); if (v) { partial.push(quote(k) + (gap ? ": " : ":") + v) } } } } v = partial.length === 0 ? "{}" : gap ? "{\n" + gap + partial.join(",\n" + gap) + "\n" + mind + "}" : "{" + partial.join(",") + "}"; gap = mind; return v } } if (typeof JSON.stringify !== "function") { JSON.stringify = function(value, replacer, space) { var i; gap = ""; indent = ""; if (typeof space === "number") { for (i = 0; i < space; i += 1) { indent += " " } } else { if (typeof space === "string") { indent = space } } rep = replacer; if (replacer && typeof replacer !== "function" && (typeof replacer !== "object" || typeof replacer .length !== "number")) { throw new Error("JSON.stringify") } return str("", { "": value }) } } if (typeof JSON.parse !== "function") { JSON.parse = function(text, reviver) { var j; function walk(holder, key) { var k, v, value = holder[key]; if (value && typeof value === "object") { for (k in value) { if (Object.hasOwnProperty.call(value, k)) { v = walk(value, k); if (v !== undefined) { value[k] = v } else { delete value[k] } } } } return reviver.call(holder, key, value) } text = String(text); cx.lastIndex = 0; if (cx.test(text)) { text = text.replace(cx, function(a) { return "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) }) } if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace( /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace( /(?:^|:|,)(?:\s*\[)+/g, ""))) { j = eval("(" + text + ")"); return typeof reviver === "function" ? walk({ "": j }, "") : j } throw new SyntaxError("JSON.parse") } } }());; ;