929709.cc
Open in
urlscan Pro
134.122.135.200
Public Scan
URL:
https://929709.cc/common/template/lottery/lecai/js/jquery.ajax.js?v=1.1.12
Submission: On November 17 via api from US — Scanned from DE
Submission: On November 17 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
(function() { var _tags = document.getElementsByTagName("script"); window.base = _tags[_tags.length - 1].getAttribute("path"); })(); (function($) { // 备份jqueryçš„ajax方法 var _ajax = $.ajax; // é‡å†™jqueryçš„ajax方法 $.ajax = function(opt) { if (!opt.dataType) { opt.dataType = "json"; } if (!opt.type) { opt.type = "post"; } // 备份optä¸errorå’Œsuccess方法 var fn = { error : function(XMLHttpRequest, textStatus, errorThrown) { }, success : function(data, textStatus, xhr) { }, successIntercept:function(data){} } if (opt.error) { fn.error = opt.error; } if (opt.success) { fn.success = opt.success; } if (opt.successIntercept) { fn.successIntercept = opt.successIntercept; } // æ‰©å±•å¢žå¼ºå¤„ç† var _opt = $.extend(opt, { error : function(XMLHttpRequest, textStatus, errorThrown) { var statusCode = XMLHttpRequest.status; // é”™è¯¯æ–¹æ³•å¢žå¼ºå¤„ç† if (statusCode == 404) { layer.msg("[" + opt.url + "] 404 not found",{icon: 5,offset:['30%']}); } else { fn.error(XMLHttpRequest, textStatus, errorThrown); //layer.msg("网络异常,"+errorThrown,{icon: 5,offset:['30%']}); //layer.msg("网络ä¸ç»™åŠ›å•Šï¼Œè¿™æ ·æˆ‘怎么干活",{icon:5,offset:['30%']}); } }, success : function(data, textStatus, xhr) { var ceipstate = xhr.getResponseHeader("ceipstate") if (ceipstate == 1) {// æ£å¸¸å“应 fn.success(data, textStatus, xhr); } else if (ceipstate == 2) {// åŽå°å¼‚常 layer.msg("åŽå°å¼‚常,请è”系管ç†å‘˜!",{icon: 5,offset:['30%']}); fn.successIntercept(data); } else if (ceipstate == 3) { // 业务异常 //layer.msg(data.msg,{icon: 5,offset:['30%']}); fn.success(data, textStatus, xhr); } else if (ceipstate == 4 || ceipstate == 5) {// 未登陆异常 或 没有æƒé™ // layer.alert(data.msg, {closeBtn: 0,icon: 5,offset:['30%']},function(){ // window.location.href= base + '/lotteryV3/index.do'; //åŽæœŸå®šä¹‰å¥½æ›´æ”¹ // }); $('a[data-reveal-id]').trigger('click'); } else { fn.success(data, textStatus, xhr); } } }); return _ajax(_opt); }; })(jQuery); /** * JSON */ var JSON = JSON || {}; (function() { function f(n) { // Format integers to have at least two digits. 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 = { // table // of // character // substitutions '\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, // The loop counter. k, // The member key. v, // The member value. 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.encode !== 'function') { JSON.encode = 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.decode !== 'function') { JSON.decode = function(text) { return eval("(" + text + ")"); }; } }()); //对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) { 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; } DateUtil = { formatDate : function(time) { if (!time) { return ""; } var date = new Date(time); return date.format("yyyy-MM-dd"); }, formatDatetime : function(time) { if (!time) { return ""; } var date = new Date(time); return date.format("yyyy-MM-dd hh:mm:ss"); } }