/*-----------H-ui前端框架------------- * H-ui.min.js v3.1.9 * http://www.h-ui.net/ * Created & Modified by guojunhui * Date modified 2017.11.13 * * Copyright 2013-2017 北京颖杰联创科技有限公司 All rights reserved. * Licensed under MIT license. * http://opensource.org/licenses/MIT */ !function () { if (navigator.userAgent.match(/IEMobile\/10\.0/)) { var a = document.createElement("style"); a.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")); document.getElementsByTagName("head")[0].appendChild(a) } }(); function stopDefault(a) { if (a && a.preventDefault) { a.preventDefault() } else { window.event.returnValue = false } return false } !(function (a) { if (typeof define === "function" && define.amd) { define(["jquery"], a) } else { if (typeof exports === "object") { module.exports = a(require("jquery")) } else { a(jQuery) } } }(function (f) { var a = /\+/g; function d(i) { return b.raw ? i : encodeURIComponent(i) } function g(i) { return b.raw ? i : decodeURIComponent(i) } function h(i) { return d(b.json ? JSON.stringify(i) : String(i)) } function c(i) { if (i.indexOf('"') === 0) { i = i.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, "\\") } try { i = decodeURIComponent(i.replace(a, " ")); return b.json ? JSON.parse(i) : i } catch (j) { } } function e(j, i) { var k = b.raw ? j : c(j); return f.isFunction(i) ? i(k) : k } var b = f.cookie = function (q, p, v) { if (arguments.length > 1 && !f.isFunction(p)) { v = f.extend({}, b.defaults, v); if (typeof v.expires === "number") { var r = v.expires, u = v.expires = new Date(); u.setMilliseconds(u.getMilliseconds() + r * 86400000) } return (document.cookie = [d(q), "=", h(p), v.expires ? "; expires=" + v.expires.toUTCString() : "", v.path ? "; path=" + v.path : "", v.domain ? "; domain=" + v.domain : "", v.secure ? "; secure" : ""].join("")) } var w = q ? undefined : {}, s = document.cookie ? document.cookie.split("; ") : [], o = 0, m = s.length; for (; o < m; o++) { var n = s[o].split("="), j = g(n.shift()), k = n.join("="); if (q === j) { w = e(k, p); break } if (!q && (k = e(k)) !== undefined) { w[j] = k } } return w }; b.defaults = {}; f.removeCookie = function (j, i) { f.cookie(j, "", f.extend({}, i, { expires: -1 })); return !f.cookie(j) } })); (function (a) { if (typeof define === "function" && define.amd) { define(["jquery"], a) } else { a((typeof (jQuery) != "undefined") ? jQuery : window.Zepto) } }(function (f) { var c = {}; c.fileapi = f("").get(0).files !== undefined; c.formdata = window.FormData !== undefined; var e = !!f.fn.prop; f.fn.attr2 = function () { if (!e) { return this.attr.apply(this, arguments) } var g = this.prop.apply(this, arguments); if ((g && g.jquery) || typeof g === "string") { return g } return this.attr.apply(this, arguments) }; f.fn.ajaxSubmit = function (j) { if (!this.length) { d("ajaxSubmit: skipping submit process - no element selected"); return this } var i, C, m, o = this; if (typeof j == "function") { j = { success: j } } else { if (j === undefined) { j = {} } } i = j.type || this.attr2("method"); C = j.url || this.attr2("action"); m = (typeof C === "string") ? f.trim(C) : ""; m = m || window.location.href || ""; if (m) { m = (m.match(/^([^#]+)/) || [])[1] } j = f.extend(true, { url: m, success: f.ajaxSettings.success, type: i || f.ajaxSettings.type, iframeSrc: /^https/i.test(window.location.href || "") ? "javascript:false" : "about:blank" }, j); var u = {}; this.trigger("form-pre-serialize", [this, j, u]); if (u.veto) { d("ajaxSubmit: submit vetoed via form-pre-serialize trigger"); return this } if (j.beforeSerialize && j.beforeSerialize(this, j) === false) { d("ajaxSubmit: submit aborted via beforeSerialize callback"); return this } var n = j.traditional; if (n === undefined) { n = f.ajaxSettings.traditional } var s = []; var E, F = this.formToArray(j.semantic, s); if (j.data) { j.extraData = j.data; E = f.param(j.data, n) } if (j.beforeSubmit && j.beforeSubmit(F, this, j) === false) { d("ajaxSubmit: submit aborted via beforeSubmit callback"); return this } this.trigger("form-submit-validate", [F, this, j, u]); if (u.veto) { d("ajaxSubmit: submit vetoed via form-submit-validate trigger"); return this } var y = f.param(F, n); if (E) { y = (y ? (y + "&" + E) : E) } if (j.type.toUpperCase() == "GET") { j.url += (j.url.indexOf("?") >= 0 ? "&" : "?") + y; j.data = null } else { j.data = y } var H = []; if (j.resetForm) { H.push(function () { o.resetForm() }) } if (j.clearForm) { H.push(function () { o.clearForm(j.includeHidden) }) } if (!j.dataType && j.target) { var l = j.success || function () { }; H.push(function (q) { var k = j.replaceTarget ? "replaceWith" : "html"; f(j.target)[k](q).each(l, arguments) }) } else { if (j.success) { H.push(j.success) } } j.success = function (K, q, L) { var J = j.context || this; for (var I = 0, k = H.length; I < k; I++) { H[I].apply(J, [K, q, L || o, o]) } }; if (j.error) { var z = j.error; j.error = function (J, k, q) { var I = j.context || this; z.apply(I, [J, k, q, o]) } } if (j.complete) { var h = j.complete; j.complete = function (I, k) { var q = j.context || this; h.apply(q, [I, k, o]) } } var D = f("input[type=file]:enabled", this).filter(function () { return f(this).val() !== "" }); var p = D.length > 0; var B = "multipart/form-data"; var x = (o.attr("enctype") == B || o.attr("encoding") == B); var w = c.fileapi && c.formdata; d("fileAPI :" + w); var r = (p || x) && !w; var v; if (j.iframe !== false && (j.iframe || r)) { if (j.closeKeepAlive) { f.get(j.closeKeepAlive, function () { v = G(F) }) } else { v = G(F) } } else { if ((p || x) && w) { v = t(F) } else { v = f.ajax(j) } } o.removeData("jqxhr").data("jqxhr", v); for (var A = 0; A < s.length; A++) { s[A] = null } this.trigger("form-submit-notify", [this, j]); return this; function g(K) { var L = f.param(K, j.traditional).split("&"); var q = L.length; var k = []; var J, I; for (J = 0; J < q; J++) { L[J] = L[J].replace(/\+/g, " "); I = L[J].split("="); k.push([decodeURIComponent(I[0]), decodeURIComponent(I[1])]) } return k } function t(q) { var k = new FormData(); for (var I = 0; I < q.length; I++) { k.append(q[I].name, q[I].value) } if (j.extraData) { var L = g(j.extraData); for (I = 0; I < L.length; I++) { if (L[I]) { k.append(L[I][0], L[I][1]) } } } j.data = null; var K = f.extend(true, {}, f.ajaxSettings, j, { contentType: false, processData: false, cache: false, type: i || "POST" }); if (j.uploadProgress) { K.xhr = function () { var M = f.ajaxSettings.xhr(); if (M.upload) { M.upload.addEventListener("progress", function (Q) { var P = 0; var N = Q.loaded || Q.position; var O = Q.total; if (Q.lengthComputable) { P = Math.ceil(N / O * 100) } j.uploadProgress(Q, N, O, P) }, false) } return M } } K.data = null; var J = K.beforeSend; K.beforeSend = function (N, M) { if (j.formData) { M.data = j.formData } else { M.data = k } if (J) { J.call(this, N, M) } }; return f.ajax(K) } function G(af) { var L = o[0], K, ab, V, ad, Y, N, Q, O, P, Z, ac, T; var ai = f.Deferred(); ai.abort = function (aj) { O.abort(aj) }; if (af) { for (ab = 0; ab < s.length; ab++) { K = f(s[ab]); if (e) { K.prop("disabled", false) } else { K.removeAttr("disabled") } } } V = f.extend(true, {}, f.ajaxSettings, j); V.context = V.context || V; Y = "jqFormIO" + (new Date().getTime()); if (V.iframeTarget) { N = f(V.iframeTarget); Z = N.attr2("name"); if (!Z) { N.attr2("name", Y) } else { Y = Z } } else { N = f('