明日科技后台js文件

amazeui.min.js

/*! Amaze UI v2.3.0 | by Amaze UI Team | (c) 2015 AllMobilize, Inc. | Licensed under MIT | 2015-04-08T06:04:29 UTC */ 
!function t(e,i,n){function o(a,r){if(!i[a]){if(!e[a]){var l="function"==typeof require&&require;if(!r&&l)return l(a,!0);if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[a]={exports:{}};e[a][0].call(u.exports,function(t){var i=e[a][1][t];return o(i?i:t)},u,u.exports,t,e,i,n)}return i[a].exports}for(var s="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(t,e){(function(i){"use strict";function n(){var t=o('[data-am-widget="accordion"]'),e={item:".am-accordion-item",title:".am-accordion-title",body:".am-accordion-bd",disabled:".am-disabled"};t.each(function(t,i){var n=s.utils.parseOptions(o(i).attr("data-am-accordion")),a=o(i).find(e.title);a.on("click.accordion.amui",function(){var t=o(this).next(e.body),s=o(this).parent(e.item),a=t.data("amui.collapse");s.is(e.disabled)||(s.toggleClass("am-active"),a?t.collapse("toggle"):t.collapse(),!n.multiple&&o(i).children(".am-active").not(s).not(e.disabled).removeClass("am-active").find(e.body+".am-in").collapse("close"))})})}t("./core"),t("./ui.collapse");var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null,s=o.AMUI;o(function(){n()}),e.exports=o.AMUI.accordion={VERSION:"2.1.0",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4,"./ui.collapse":26}],2:[function(t,e){(function(i){"use strict";var n="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),t("./util.fastclick"),t("./util.hammer"),t("./amazeui"),t("./amazeui.legacy"),t("./ui.add2home"),t("./ui.alert"),t("./ui.button"),t("./ui.collapse"),t("./ui.datepicker"),t("./ui.dimmer"),t("./ui.dropdown"),t("./ui.flexslider"),t("./ui.iscroll-lite"),t("./ui.modal"),t("./ui.offcanvas"),t("./ui.pinchzoom"),t("./ui.popover"),t("./ui.progress"),t("./ui.pureview"),t("./ui.scrollspy"),t("./ui.scrollspynav"),t("./ui.selected"),t("./ui.share"),t("./ui.smooth-scroll"),t("./ui.sticky"),t("./ui.tabs"),t("./ui.ucheck"),t("./ui.validator"),t("./util.cookie"),t("./util.fullscreen"),t("./util.geolocation"),t("./util.qrcode"),t("./util.store"),t("./accordion"),t("./divider"),t("./duoshuo"),t("./figure"),t("./footer"),t("./gallery"),t("./gotop"),t("./header"),t("./intro"),t("./list_news"),t("./map"),t("./mechat"),t("./menu"),t("./navbar"),t("./pagination"),t("./paragraph"),t("./slider"),t("./tabs"),t("./titlebar"),t("./wechatpay"),e.exports=n.AMUI}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./accordion":1,"./amazeui":2,"./amazeui.legacy":3,"./core":4,"./divider":5,"./duoshuo":6,"./figure":7,"./footer":8,"./gallery":9,"./gotop":10,"./header":11,"./intro":12,"./list_news":13,"./map":14,"./mechat":15,"./menu":16,"./navbar":17,"./pagination":18,"./paragraph":19,"./slider":20,"./tabs":21,"./titlebar":22,"./ui.add2home":23,"./ui.alert":24,"./ui.button":25,"./ui.collapse":26,"./ui.datepicker":27,"./ui.dimmer":28,"./ui.dropdown":29,"./ui.flexslider":30,"./ui.iscroll-lite":31,"./ui.modal":32,"./ui.offcanvas":33,"./ui.pinchzoom":34,"./ui.popover":35,"./ui.progress":36,"./ui.pureview":37,"./ui.scrollspy":38,"./ui.scrollspynav":39,"./ui.selected":40,"./ui.share":41,"./ui.smooth-scroll":42,"./ui.sticky":43,"./ui.tabs":44,"./ui.ucheck":45,"./ui.validator":46,"./util.cookie":47,"./util.fastclick":48,"./util.fullscreen":49,"./util.geolocation":50,"./util.hammer":51,"./util.qrcode":52,"./util.store":53,"./wechatpay":54}],3:[function(t,e){(function(i){"use strict";var n="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),t("./ui.alert"),t("./ui.button"),t("./ui.collapse"),t("./ui.dimmer"),t("./ui.dropdown"),t("./ui.flexslider"),t("./ui.modal"),t("./ui.offcanvas"),t("./ui.popover"),t("./ui.progress"),t("./ui.scrollspynav"),t("./ui.sticky"),t("./util.cookie"),e.exports=n.AMUI}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4,"./ui.alert":24,"./ui.button":25,"./ui.collapse":26,"./ui.dimmer":28,"./ui.dropdown":29,"./ui.flexslider":30,"./ui.modal":32,"./ui.offcanvas":33,"./ui.popover":35,"./ui.progress":36,"./ui.scrollspynav":39,"./ui.sticky":43,"./util.cookie":47}],4:[function(t,e){(function(t){"use strict";var i="undefined"!=typeof window?window.jQuery:"undefined"!=typeof t?t.jQuery:null;if("undefined"==typeof i)throw new Error("Amaze UI 2.x requires jQuery :-(\n爱上一匹野马,可你的家里没有草原…");var n=i.AMUI||{},o=i(window),s=window.document,a=i("html");n.VERSION="2.3.0",n.support={},n.support.transition=function(){var t=function(){var t=s.body||s.documentElement,e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return e[i]}();return t&&{end:t}}(),n.support.animation=function(){var t=function(){var t=s.body||s.documentElement,e={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var i in e)if(void 0!==t.style[i])return e[i]}();return t&&{end:t}}(),n.support.touch="ontouchstart"in window&&navigator.userAgent.toLowerCase().match(/mobile|tablet/)||window.DocumentTouch&&document instanceof window.DocumentTouch||window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>0||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>0||!1,n.support.mutationobserver=window.MutationObserver||window.WebKitMutationObserver||null,n.support.formValidation="function"==typeof document.createElement("form").checkValidity,n.utils={},n.utils.debounce=function(t,e,i){var n;return function(){var o=this,s=arguments,a=function(){n=null,i||t.apply(o,s)},r=i&&!n;clearTimeout(n),n=setTimeout(a,e),r&&t.apply(o,s)}},n.utils.isInView=function(t,e){var n=i(t),s=!(!n.width()&&!n.height())&&"none"!==n.css("display");if(!s)return!1;var a=o.scrollLeft(),r=o.scrollTop(),l=n.offset(),c=l.left,u=l.top;return e=i.extend({topOffset:0,leftOffset:0},e),u+n.height()>=r&&u-e.topOffset<=r+o.height()&&c+n.width()>=a&&c-e.leftOffset<=a+o.width()},n.utils.parseOptions=n.utils.options=function(t){if(i.isPlainObject(t))return t;var e=t?t.indexOf("{"):-1,n={};if(-1!=e)try{n=new Function("","var json = "+t.substr(e)+"; return JSON.parse(JSON.stringify(json));")()}catch(o){}return n},n.utils.generateGUID=function(t){var e=t+"-"||"am-";do e+=Math.random().toString(36).substring(2,7);while(document.getElementById(e));return e},i.fn.emulateTransitionEnd=function(t){var e=!1,o=this;i(this).one(n.support.transition.end,function(){e=!0});var s=function(){e||i(o).trigger(n.support.transition.end),o.transitionEndTimmer=void 0};return this.transitionEndTimmer=setTimeout(s,t),this},i.fn.redraw=function(){return i(this).each(function(){this.offsetHeight}),this},i.fn.transitionEnd=function(t){function e(n){t.call(this,n),i&&o.off(i,e)}var i=n.support.transition.end,o=this;return t&&i&&o.on(i,e),this},i.fn.removeClassRegEx=function(){return this.each(function(t){var e=i(this).attr("class");if(!e||!t)return!1;var n=[];e=e.split(" ");for(var o=0,s=e.length;s>o;o++)e[o].match(t)||n.push(e[o]);i(this).attr("class",n.join(" "))})},i.fn.alterClass=function(t,e){var n=this;if(-1===t.indexOf("*"))return n.removeClass(t),e?n.addClass(e):n;var o=new RegExp("\\s"+t.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");return n.each(function(t,e){for(var n=" "+e.className+" ";o.test(n);)n=n.replace(o," ");e.className=i.trim(n)}),e?n.addClass(e):n},n.utils.rAF=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),n.utils.cancelAF=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}}(),n.utils.measureScrollbar=function(){if(document.body.clientWidth>=window.innerWidth)return 0;var t=i('<div style="width: 100px;height: 100px;overflow: scroll;position: absolute;top: -9999px;"></div>');i(document.body).append(t);var e=t[0].offsetWidth-t[0].clientWidth;return t.remove(),e},n.utils.imageLoader=function(t,e){function i(){e(t[0])}function n(){if(this.one("load",i),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var t=this.attr("src"),e=t.match(/\?/)?"&":"?";e+="random="+(new Date).getTime(),this.attr("src",t+e)}}return t.attr("src")?void(t[0].complete||4===t[0].readyState?i():n.call(t)):void i()},n.template=function(t,e){var i=n.template;return i.cache[t]||(i.cache[t]=function(){var e=t,n=/^[\w\-]+$/.test(t)?i.get(t):(e="template(string)",t),o=1,s=("try { "+(i.variable?"var "+i.variable+" = this.stash;":"with (this.stash) { ")+"this.ret += '"+n.replace(/<%/g,"").replace(/%>/g,"").replace(/'(?![^\x11\x13]+?\x13)/g,"\\x27").replace(/^\s*|\s*$/g,"").replace(/\n/g,function(){return"';\nthis.line = "+ ++o+"; this.ret += '\\n"}).replace(/\x11-(.+?)\x13/g,"' + ($1) + '").replace(/\x11=(.+?)\x13/g,"' + this.escapeHTML($1) + '").replace(/\x11(.+?)\x13/g,"'; $1; this.ret += '")+"'; "+(i.variable?"":"}")+"return this.ret;} catch (e) { throw 'TemplateError: ' + e + ' (on "+e+"' + ' line ' + this.line + ')'; } //@ sourceURL="+e+"\n").replace(/this\.ret \+= '';/g,""),a=new Function(s),r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#x22;","'":"&#x27;"},l=function(t){return(""+t).replace(/[&<>\'\"]/g,function(t){return r[t]})};return function(t){return a.call(i.context={escapeHTML:l,line:1,ret:"",stash:t})}}()),e?i.cache[t](e):i.cache[t]},n.template.cache={},n.template.get=function(t){if(t){var e=document.getElementById(t);return e&&e.innerHTML||""}},n.DOMWatchers=[],n.DOMReady=!1,n.ready=function(t){n.DOMWatchers.push(t),n.DOMReady&&t(document)},n.DOMObserve=function(t,e,o){var s=n.support.mutationobserver;s&&(e=i.isPlainObject(e)?e:{childList:!0,subtree:!0},o="function"==typeof o&&o||function(){},i(t).each(function(){var t=this,a=i(t);if(!a.data("am.observer"))try{var r=new s(n.utils.debounce(function(e,i){o.call(t,e,i),a.trigger("changed.dom.amui")},50));r.observe(t,e),a.data("am.observer",r)}catch(l){}}))},i.fn.DOMObserve=function(t,e){return this.each(function(){n.DOMObserve(this,t,e)})},n.support.touch&&(a.addClass("am-touch"),i(function(){var t=n.FastClick;t&&(i("[contenteditable]").addClass("needsclick"),t.attach(document.body))})),i(document).on("changed.dom.amui",function(t){var e=t.target;i.each(n.DOMWatchers,function(t,i){i(e)})}),i(function(){var t=i("body");n.DOMReady=!0,i.each(n.DOMWatchers,function(t,e){e(document)}),n.DOMObserve("[data-am-observe]"),a.removeClass("no-js").addClass("js"),n.support.animation&&a.addClass("cssanimations"),window.navigator.standalone&&a.addClass("am-standalone"),i(".am-topbar-fixed-top").length&&t.addClass("am-with-topbar-fixed-top"),i(".am-topbar-fixed-bottom").length&&t.addClass("am-with-topbar-fixed-bottom");var e=i(".am-layout");e.find('[class*="md-block-grid"]').alterClass("md-block-grid-*"),e.find('[class*="lg-block-grid"]').alterClass("lg-block-grid"),i("[data-am-widget]").each(function(){var t=i(this);0===t.parents(".am-layout").length&&t.addClass("am-no-layout")})}),i.AMUI=n,e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(t,e){"use strict";e.exports={VERSION:"2.0.1"}},{}],6:[function(t,e){(function(i){"use strict";function n(){var t=o(".ds-thread"),e=t.parent('[data-am-widget="duoshuo"]').attr("data-ds-short-name"),i=("https:"==document.location.protocol?"https:":"http:")+"//static.duoshuo.com/embed.js";if(t.length&&e&&(window.duoshuoQuery={short_name:e},!o('script[src="'+i+'"]').length)){var n=o("<script>",{async:!0,type:"text/javascript",src:i,charset:"utf-8"});o("body").append(n)}}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),o(window).on("load",n),e.exports=o.AMUI.duoshuo={VERSION:"2.0.1",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],7:[function(t,e){(function(i){"use strict";function n(){o(".am-figure").each(function(t,e){var i,n=s.utils.parseOptions(o(e).attr("data-am-figure")),a=o(e);if(n.pureview)if("auto"===n.pureview){var r=o.isImgZoomAble(a.find("img")[0]);r&&a.pureview()}else a.addClass("am-figure-zoomable").pureview();i=a.data("amui.pureview"),i&&a.on("click",":not(img)",function(){i.open(0)})})}t("./core"),t("./ui.pureview");var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null,s=o.AMUI;o.isImgZoomAble=function(t){var e=new Image;e.src=t.src;var i=o(t).width()<e.width;return i&&o(t).closest(".am-figure").addClass("am-figure-zoomable"),i},o(window).on("load",function(){n()}),e.exports=o.AMUI.figure={VERSION:"2.0.3",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4,"./ui.pureview":37}],8:[function(t,e){(function(i){"use strict";function n(){o(".am-footer-ysp").on("click",function(){o("#am-footer-modal").modal()});var t=s.utils.parseOptions(o(".am-footer").data("amFooter"));t.addToHS&&a(),o('[data-rel="desktop"]').on("click",function(t){t.preventDefault(),window.AMPlatform?window.AMPlatform.util.goDesktop():(r.set("allmobilize","desktop","","/"),window.location=window.location)})}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null,s=t("./core");t("./ui.modal");var a=t("./ui.add2home"),r=t("./util.cookie");o(function(){n()}),e.exports=o.AMUI.footer={VERSION:"3.1.2",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4,"./ui.add2home":23,"./ui.modal":32,"./util.cookie":47}],9:[function(t,e){(function(i){"use strict";function n(){var t=o('[data-am-widget="gallery"]');t.each(function(){var t=s.utils.parseOptions(o(this).attr("data-am-gallery"));t.pureview&&("object"==typeof t.pureview?o(this).pureview(t.pureview):o(this).pureview())})}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),t("./ui.pureview");var s=o.AMUI;o(function(){n()}),e.exports=o.AMUI.gallery={VERSION:"3.0.0",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4,"./ui.pureview":37}],10:[function(t,e){(function(i){"use strict";function n(){function t(){i[(n.scrollTop()>50?"add":"remove")+"Class"]("am-active")}var e=o('[data-am-widget="gotop"]'),i=e.filter(".am-gotop-fixed"),n=o(window);e.find("a").on("click",function(t){t.preventDefault(),n.smoothScroll()}),t(),n.on("scroll.gotop.amui",o.AMUI.utils.debounce(t,100))}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),t("./ui.smooth-scroll"),o(function(){n()}),e.exports=o.AMUI.gotop={VERSION:"4.0.2",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4,"./ui.smooth-scroll":42}],11:[function(t,e){(function(i){"use strict";function n(){o('[data-am-widget="header"]').each(function(){return o(this).hasClass("am-header-fixed")?(o("body").addClass("am-with-fixed-header"),!1):void 0})}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),o(function(){n()}),e.exports=o.AMUI.header={VERSION:"2.0.0",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],12:[function(t,e){(function(i){"use strict";var n="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),e.exports=n.AMUI.intro={VERSION:"4.0.2"}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],13:[function(t,e){(function(i){"use strict";var n="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),e.exports=n.AMUI.listNews={VERSION:"4.0.0",init:function(){}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],14:[function(t,e){(function(i){function n(t){var e=s("<script />",{id:"am-map-api-0"});s("body").append(e),e.on("load",function(){console.log("load");var e=s("<script/>",{id:"am-map-api-1"});s("body").append(e),e.on("load",function(){var e=document.createElement("script");e.textContent="("+t.toString()+")();",s("body")[0].appendChild(e)}).attr("src","http://api.map.baidu.com/getscript?type=quick&file=feature&ak=WVAXZ05oyNRXS5egLImmentg&t=20140109092002")}).attr("src","http://api.map.baidu.com/getscript?type=quick&file=api&ak=WVAXZ05oyNRXS5egLImmentg&t=20140109092002")}function o(){var t=document.querySelector(".am-map"),e=116.331398,i=39.897445,n=t.getAttribute("data-name"),o=t.getAttribute("data-address"),s=t.getAttribute("data-longitude")||e,a=t.getAttribute("data-latitude")||i,r=t.getAttribute("data-setZoom")||17,l=t.getAttribute("data-icon"),c=new BMap.Map("bd-map"),u=new BMap.Point(s,a);c.centerAndZoom(u,r),t.getAttribute("data-zoomControl")&&c.addControl(new BMap.ZoomControl),t.getAttribute("data-scaleControl")&&c.addControl(new BMap.ScaleControl);var d=new BMap.Marker(u);l&&d.setIcon(new BMap.Icon(l,new BMap.Size(40,40)));var h={width:200,title:n},p=new BMap.InfoWindow("地址:"+o,h),f=new BMap.Geocoder;s==e&&a==i?f.getPoint(o,function(t){t&&(c.centerAndZoom(t,r),d.setPosition(t),c.addOverlay(d),c.openInfoWindow(p,t))},""):f.getLocation(u,function(){c.centerAndZoom(u,r),d.setPosition(u),c.addOverlay(d),o?c.openInfoWindow(p,u):c.openInfoWindow(new BMap.InfoWindow(o,h),u)})}var s="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core");var a=function(){s(".am-map").length&&n(o)};s(document).on("ready",a),e.exports=s.AMUI.map={VERSION:"2.0.2",init:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],15:[function(t,e){(function(i){"use strict";function n(){if(o("#mechat").length){var t=o('[data-am-widget="mechat"]'),e=t.data("am-mechat-unitid"),i=o("<script>",{charset:"utf-8",src:"http://mechatim.com/js/unit/button.js?id="+e});o("body").append(i)}}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),o(window).on("load",n),e.exports=o.AMUI.mechat={VERSION:"2.0.1",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],16:[function(t,e){(function(i){"use strict";var n="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),t("./ui.offcanvas"),t("./ui.collapse");var o=t("./ui.iscroll-lite"),s=function(){var t=n('[data-am-widget="menu"]');t.find(".am-menu-nav .am-parent > a").on("click",function(t){t.preventDefault();var e=n(this),i=e.parent(),o=e.next(".am-menu-sub");i.toggleClass("am-open"),o.collapse("toggle"),i.siblings(".am-parent").removeClass("am-open").children(".am-menu-sub.am-in").collapse("close")}),t.filter("[data-am-menu-collapse]").find("> .am-menu-toggle").on("click",function(t){t.preventDefault();var e=n(this),i=e.next(".am-menu-nav");e.toggleClass("am-active"),i.collapse("toggle")}),t.filter("[data-am-menu-offcanvas]").find("> .am-menu-toggle").on("click",function(t){t.preventDefault();var e=n(this),i=e.next(".am-offcanvas");e.toggleClass("am-active"),i.offCanvas("open")});var e='.am-offcanvas[data-dismiss-on="click"]',i=n(e);i.find("a").not(".am-parent>a").on("click",function(){n(this).parents(e).offCanvas("close")}),t.filter(".am-menu-one").each(function(t){var e,i=n(this),s=n('<div class="am-menu-nav-sub-wrap"></div>'),a=0,r=i.find(".am-menu-nav"),l=r.children("li");l.filter(".am-parent").each(function(t){n(this).attr("data-rel","#am-menu-sub-"+t),n(this).find(".am-menu-sub").attr("id","am-menu-sub-"+t).appendTo(s)}),i.append(s),r.wrap('<div class="am-menu-nav-wrap" id="am-menu-'+t+'">'),l.each(function(){a+=parseFloat(n(this).css("width"))}),r.width(a);var c=new o("#am-menu-"+t,{eventPassthrough:!0,scrollX:!0,scrollY:!1,preventDefault:!1});l.on("click",function(){var t=n(this);t.addClass("am-active").siblings().removeClass("am-active"),s.find(".am-menu-sub.am-in").collapse("close"),t.is(".am-parent")?!t.hasClass(".am-open")&&s.find(t.attr("data-rel")).collapse("open"):t.siblings().removeClass("am-open"),void 0===e&&(e=n(this).index()?0:1);var o,a=n(this).index()>e,l=n(this)[a?"next":"prev"](),u=l.offset()||n(this).offset(),d=i.offset(),h=parseInt(i.css("padding-left"));(a?u.left+u.width>d.left+d.width:u.left<d.left)&&(o=r.offset(),c.scrollTo(a?d.width-u.left+o.left-u.width-h:o.left-u.left,0,400)),e=n(this).index()}),i.on("touchmove",function(t){t.preventDefault()})})};n(function(){s()}),e.exports=n.AMUI.menu={VERSION:"4.0.3",init:s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4,"./ui.collapse":26,"./ui.iscroll-lite":31,"./ui.offcanvas":33}],17:[function(t,e){(function(i){"use strict";function n(){function t(){u.append(b),u.find("li").not(".am-navbar-more").slice(i()-1).appendTo(y),n.append(y)}function e(){return i()>=h?(b.hide(),void y.find("li").insertBefore(b)):(!n.find(".am-navbar-actions").length&&t(),b.show(),void(u.find("li").length<i()?y.find("li").slice(0,i()-u.find("li").length).insertBefore(b):u.find("li").length>i()&&(y.find("li").length?u.find("li").not(b).slice(i()-1).insertBefore(y.find("li").first()):u.find("li").not(b).slice(i()-1).appendTo(y))))}function i(){return Math.floor((l.width()-m)/f)}var n=o('[data-am-widget="navbar"]');if(n.length){var l=o(window),c=o("body"),u=n.find(".am-navbar-nav"),d=n.find("li"),h=d.length,p=u.attr("class")&&parseInt(u.attr("class").match(/am-avg-sm-(\d+)/)[1])||3,f=60,m=16,v=d.filter("[data-am-navbar-share]"),g=d.filter("[data-am-navbar-qrcode]"),w="am-active",y=o('<ul class="am-navbar-actions"></ul>',{id:r.utils.generateGUID("am-navbar-actions")}),b=o('<li class="am-navbar-labels am-navbar-more"><a href="javascript: void(0);"><span class="am-icon-angle-up"></span><span class="am-navbar-label">更多</span></a></li>');if("fixed"==n.css("position")&&c.addClass("am-with-fixed-navbar"),g.length){var T="am-navbar-qrcode";if(C=o("#"+T),!C.length){var x=g.attr("data-am-navbar-qrcode"),C=o('<div class="am-modal am-modal-no-btn" id=""><div class="am-modal-dialog"><div class="am-modal-bd"></div></div></div>',{id:T}),E=C.find(".am-modal-bd");if(x)E.html('<img src="'+x+'"/>');else{var k=new a({render:"canvas",correctLevel:0,text:window.location.href,width:200,height:200,background:"#fff",foreground:"#000"});E.html(k)}c.append(C)}g.on("click",function(t){t.preventDefault(),C.modal()})}h>p&&h>i()&&t(),n.on("click.navbar.amui",".am-navbar-more",function(t){t.preventDefault(),b[y.hasClass(w)?"removeClass":"addClass"](w),y.toggleClass(w)}),v.length&&v.on("click.navbar.amui",function(t){t.preventDefault(),s.toggle()}),l.on("resize.navbar.amui orientationchange.navbar.amui",r.utils.debounce(e,150))}}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),t("./ui.modal");var s=t("./ui.share"),a=t("./util.qrcode"),r=o.AMUI;o(function(){n()}),e.exports=o.AMUI.navbar={VERSION:"2.0.2",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4,"./ui.modal":32,"./ui.share":41,"./util.qrcode":52}],18:[function(t,e){(function(i){"use strict";var n="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),e.exports=n.AMUI.pagination={VERSION:"3.0.1"}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],19:[function(t,e){(function(i){"use strict";function n(){var t=o('[data-am-widget="paragraph"]');t.each(function(t){var e=o(this),i=a.utils.parseOptions(e.attr("data-am-paragraph")),n=t;i.pureview&&e.pureview(),i.tableScrollable&&e.find("table").each(function(t){o(this).width()>o(window).width()&&o(this).scrollTable(n+"-"+t)})})}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),t("./ui.pureview");var s=t("./ui.iscroll-lite"),a=o.AMUI;o.fn.scrollTable=function(t){var e,i=o(this);i.wrap('<div class="am-paragraph-table-container" id="am-paragraph-table-'+t+'"><div class="am-paragraph-table-scroller"></div></div>'),e=i.parent(),e.width(i.width()),e.height(i.height()),new s("#am-paragraph-table-"+t,{eventPassthrough:!0,scrollX:!0,scrollY:!1,preventDefault:!1})},o(window).on("load",function(){n()}),e.exports=o.AMUI.paragraph={VERSION:"2.0.1",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4,"./ui.iscroll-lite":31,"./ui.pureview":37}],20:[function(t,e){(function(i){"use strict";function n(){var t=o('[data-am-widget="slider"]');t.not(".am-slider-manual").each(function(t,e){var i=s.utils.parseOptions(o(e).attr("data-am-slider"));o(e).flexslider(i)})}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),t("./ui.flexslider");var s=o.AMUI;o(document).on("ready",n),e.exports=o.AMUI.slider={VERSION:"3.0.1",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4,"./ui.flexslider":30}],21:[function(t,e){(function(i){"use strict";function n(){o('[data-am-widget="tabs"]').each(function(){var t=o(this).data("amTabsNoswipe")?{noSwipe:1}:{};o(this).tabs(t)})}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),t("./ui.tabs"),o(function(){n()}),e.exports=o.AMUI.tab={VERSION:"4.0.1",init:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4,"./ui.tabs":44}],22:[function(t,e){(function(i){"use strict";var n="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core"),e.exports=n.AMUI.titlebar={VERSION:"4.0.1"}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],23:[function(t,e){(function(i){"use strict";function n(){window.removeEventListener("load",n,!1),l=!0}function o(t){return c=c||new o.Class(t)}function s(t,e){for(var i in e)t[i]=e[i];return t}function a(){"#ath"==document.location.hash&&history.replaceState("",window.document.title,document.location.href.split("#")[0]),u.test(document.location.href)&&history.replaceState("",window.document.title,document.location.href.replace(u,"$1")),d.test(document.location.search)&&history.replaceState("",window.document.title,document.location.href.replace(d,"$2"))}var r="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null;t("./core");var l=!1;"complete"===document.readyState?l=!0:window.addEventListener("load",n,!1);var c,u=/\/ath(\/)?$/,d=/([\?&]ath=[^&]*$|&ath=[^&]*(&))/;o.intl={en_us:{message:"To add this web app to the home screen: tap %icon and then <strong>%action</strong>.",action:{ios:"Add to Home Screen",android:"Add to homescreen",windows:"pin to start"}},zh_cn:{message:"如要把应用程式加至主屏幕,请点击%icon, 然后<strong>%action</strong>",action:{ios:"加至主屏幕",android:"加至主屏幕",windows:"按住启动"}},zh_tw:{message:"如要把應用程式加至主屏幕, 請點擊%icon, 然後<strong>%action</strong>.",action:{ios:"加至主屏幕",android:"加至主屏幕",windows:"按住啟動"}}};for(var h in o.intl)o.intl[h.substr(0,2)]=o.intl[h];o.defaults={appID:"org.cubiq.addtohome",fontSize:15,debug:!1,modal:!1,mandatory:!1,autostart:!0,skipFirstVisit:!1,startDelay:1,lifespan:15,displayPace:1440,maxDisplayCount:0,icon:!0,message:"",validLocation:[],onInit:null,onShow:null,onRemove:null,onAdd:null,onPrivate:null,detectHomescreen:!1};var p=window.navigator.userAgent,f=window.navigator;s(o,{hasToken:"#ath"==document.location.hash||u.test(document.location.href)||d.test(document.location.search),isRetina:window.devicePixelRatio&&window.devicePixelRatio>1,isIDevice:/iphone|ipod|ipad/i.test(p),isMobileChrome:p.indexOf("Android")>-1&&/Chrome\/[.0-9]*/.test(p),isMobileIE:p.indexOf("Windows Phone")>-1,language:f.language&&f.language.toLowerCase().replace("-","_")||""}),o.language=o.language&&o.language in o.intl?o.language:"en_us",o.isMobileSafari=o.isIDevice&&p.indexOf("Safari")>-1&&p.indexOf("CriOS")<0,o.OS=o.isIDevice?"ios":o.isMobileChrome?"android":o.isMobileIE?"windows":"unsupported",o.OSVersion=p.match(/(OS|Android) (\d+[_\.]\d+)/),o.OSVersion=o.OSVersion&&o.OSVersion[2]?+o.OSVersion[2].replace("_","."):0,o.isStandalone=window.navigator.standalone||o.isMobileChrome&&screen.height-document.documentElement.clientHeight<40,o.isTablet=o.isMobileSafari&&p.indexOf("iPad")>-1||o.isMobileChrome&&p.indexOf("Mobile")<0,o.isCompatible=o.isMobileSafari&&o.OSVersion>=6||o.isMobileChrome;var m={lastDisplayTime:0,returningVisitor:!1,displayCount:0,optedout:!1,added:!1};o.removeSession=function(t){try{localStorage.removeItem(t||o.defaults.appID)}catch(e){}},o.Class=function(t){if(this.options=s({},o.defaults),s(this.options,t),this.options.mandatory=this.options.mandatory&&("standalone"in window.navigator||this.options.debug),this.options.modal=this.options.modal||this.options.mandatory,this.options.mandatory&&(this.options.startDelay=-.5),this.options.detectHomescreen=this.options.detectHomescreen===!0?"hash":this.options.detectHomescreen,this.options.debug&&(o.isCompatible=!0,o.OS="string"==typeof this.options.debug?this.options.debug:"unsupported"==o.OS?"android":o.OS,o.OSVersion="ios"==o.OS?"8":"4"),this.container=document.documentElement,this.session=localStorage.getItem(this.options.appID),this.session=this.session?JSON.parse(this.session):void 0,!o.hasToken||o.isCompatible&&this.session||(o.hasToken=!1,a()),o.isCompatible){this.session=this.session||m;try{localStorage.setItem(this.options.appID,JSON.stringify(this.session)),o.hasLocalStorage=!0}catch(e){o.hasLocalStorage=!1,this.options.onPrivate&&this.options.onPrivate.call(this)}for(var i=!this.options.validLocation.length,n=this.options.validLocation.length;n--;)if(this.options.validLocation[n].test(document.location.href)){i=!0;break}if(localStorage.getItem("addToHome")&&this.optOut(),!this.session.optedout&&!this.session.added&&i){if(o.isStandalone)return void(this.session.added||(this.session.added=!0,this.updateSession(),this.options.onAdd&&o.hasLocalStorage&&this.options.onAdd.call(this)));if(this.options.detectHomescreen){if(o.hasToken)return a(),void(this.session.added||(this.session.added=!0,this.updateSession(),this.options.onAdd&&o.hasLocalStorage&&this.options.onAdd.call(this)));"hash"==this.options.detectHomescreen?history.replaceState("",window.document.title,document.location.href+"#ath"):"smartURL"==this.options.detectHomescreen?history.replaceState("",window.document.title,document.location.href.replace(/(\/)?$/,"/ath$1")):history.replaceState("",window.document.title,document.location.href+(document.location.search?"&":"?")+"ath=")}(this.session.returningVisitor||(this.session.returningVisitor=!0,this.updateSession(),!this.options.skipFirstVisit))&&o.hasLocalStorage&&(this.ready=!0,this.options.onInit&&this.options.onInit.call(this),this.options.autostart&&this.show())}}},o.Class.prototype={events:{load:"_delayedShow",error:"_delayedShow",orientationchange:"resize",resize:"resize",scroll:"resize",click:"remove",touchmove:"_preventDefault",transitionend:"_removeElements",webkitTransitionEnd:"_removeElements",MSTransitionEnd:"_removeElements"},handleEvent:function(t){var e=this.events[t.type];e&&this[e](t)},show:function(t){if(this.options.autostart&&!l)return void setTimeout(this.show.bind(this),50);if(!this.shown){var e=Date.now(),i=this.session.lastDisplayTime;if(t!==!0){if(!this.ready)return;
if(e-i<6e4*this.options.displayPace)return;if(this.options.maxDisplayCount&&this.session.displayCount>=this.options.maxDisplayCount)return}this.shown=!0,this.session.lastDisplayTime=e,this.session.displayCount++,this.updateSession(),this.applicationIcon||(this.applicationIcon=document.querySelector("ios"==o.OS?'head link[rel^=apple-touch-icon][sizes="152x152"],head link[rel^=apple-touch-icon][sizes="144x144"],head link[rel^=apple-touch-icon][sizes="120x120"],head link[rel^=apple-touch-icon][sizes="114x114"],head link[rel^=apple-touch-icon]':'head link[rel^="shortcut icon"][sizes="196x196"],head link[rel^=apple-touch-icon]'));var n="";n=this.options.message in o.intl?o.intl[this.options.message].message.replace("%action",o.intl[this.options.message].action[o.OS]):""!==this.options.message?this.options.message:o.intl[o.language].message.replace("%action",o.intl[o.language].action[o.OS]),n="<p>"+n.replace("%icon",'<span class="ath-action-icon">icon</span>')+"</p>",this.viewport=document.createElement("div"),this.viewport.className="ath-viewport",this.options.modal&&(this.viewport.className+=" ath-modal"),this.options.mandatory&&(this.viewport.className+=" ath-mandatory"),this.viewport.style.position="absolute",this.element=document.createElement("div"),this.element.className="ath-container ath-"+o.OS+" ath-"+o.OS+(o.OSVersion+"").substr(0,1)+" ath-"+(o.isTablet?"tablet":"phone"),this.element.style.cssText="-webkit-transition-property:-webkit-transform,opacity;-webkit-transition-duration:0;-webkit-transform:translate3d(0,0,0);transition-property:transform,opacity;transition-duration:0;transform:translate3d(0,0,0);-webkit-transition-timing-function:ease-out",this.element.style.webkitTransform="translate3d(0,-"+window.innerHeight+"px,0)",this.element.style.webkitTransitionDuration="0s",this.options.icon&&this.applicationIcon&&(this.element.className+=" ath-icon",this.img=document.createElement("img"),this.img.className="ath-application-icon",this.img.addEventListener("load",this,!1),this.img.addEventListener("error",this,!1),this.img.src=this.applicationIcon.href,this.element.appendChild(this.img)),this.element.innerHTML+=n,this.viewport.style.left="-99999em",this.viewport.appendChild(this.element),this.container.appendChild(this.viewport),this.img||this._delayedShow()}},_delayedShow:function(){setTimeout(this._show.bind(this),1e3*this.options.startDelay+500)},_show:function(){var t=this;this.updateViewport(),window.addEventListener("resize",this,!1),window.addEventListener("scroll",this,!1),window.addEventListener("orientationchange",this,!1),this.options.modal&&document.addEventListener("touchmove",this,!0),this.options.mandatory||setTimeout(function(){t.element.addEventListener("click",t,!0)},1e3),setTimeout(function(){t.element.style.webkitTransform="translate3d(0,0,0)",t.element.style.webkitTransitionDuration="1.2s"},0),this.options.lifespan&&(this.removeTimer=setTimeout(this.remove.bind(this),1e3*this.options.lifespan)),this.options.onShow&&this.options.onShow.call(this)},remove:function(){clearTimeout(this.removeTimer),this.img&&(this.img.removeEventListener("load",this,!1),this.img.removeEventListener("error",this,!1)),window.removeEventListener("resize",this,!1),window.removeEventListener("scroll",this,!1),window.removeEventListener("orientationchange",this,!1),document.removeEventListener("touchmove",this,!0),this.element.removeEventListener("click",this,!0),this.element.addEventListener("transitionend",this,!1),this.element.addEventListener("webkitTransitionEnd",this,!1),this.element.addEventListener("MSTransitionEnd",this,!1),this.element.style.webkitTransitionDuration="0.3s",this.element.style.opacity="0"},_removeElements:function(){this.element.removeEventListener("transitionend",this,!1),this.element.removeEventListener("webkitTransitionEnd",this,!1),this.element.removeEventListener("MSTransitionEnd",this,!1),this.container.removeChild(this.viewport),this.shown=!1,this.options.onRemove&&this.options.onRemove.call(this)},updateViewport:function(){if(this.shown){this.viewport.style.width=window.innerWidth+"px",this.viewport.style.height=window.innerHeight+"px",this.viewport.style.left=window.scrollX+"px",this.viewport.style.top=window.scrollY+"px";var t=document.documentElement.clientWidth;this.orientation=t>document.documentElement.clientHeight?"landscape":"portrait";var e="ios"==o.OS?"portrait"==this.orientation?screen.width:screen.height:screen.width;this.scale=screen.width>t?1:e/window.innerWidth,this.element.style.fontSize=this.options.fontSize/this.scale+"px"}},resize:function(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(this.updateViewport.bind(this),100)},updateSession:function(){o.hasLocalStorage!==!1&&localStorage.setItem(this.options.appID,JSON.stringify(this.session))},clearSession:function(){this.session=m,this.updateSession()},optOut:function(){this.session.optedout=!0,this.updateSession()},optIn:function(){this.session.optedout=!1,this.updateSession()},clearDisplayCount:function(){this.session.displayCount=0,this.updateSession()},_preventDefault:function(t){t.preventDefault(),t.stopPropagation()}},r.AMUI.addToHomescreen=o,e.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],24:[function(t,e){(function(i){"use strict";var n="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null,o=t("./core"),s=function(t,e){var i=this;this.options=n.extend({},s.DEFAULTS,e),this.$element=n(t),this.$element.addClass("am-fade am-in").on("click.alert.amui",".am-close",function(){i.close.call(this)})};s.DEFAULTS={removeElement:!0},s.prototype.close=function(){function t(){i.trigger("closed.alert.amui").remove()}var e=n(this),i=e.hasClass("am-alert")?e:e.parent(".am-alert");i.trigger("close.alert.amui"),i.removeClass("am-in"),o.support.transition&&i.hasClass("am-fade")?i.one(o.support.transition.end,t).emulateTransitionEnd(200):t()},n.fn.alert=function(t){return this.each(function(){var e=n(this),i=e.data("amui.alert"),o="object"==typeof t&&t;i||e.data("amui.alert",i=new s(this,o||{})),"string"==typeof t&&i[t].call(e)})},n(document).on("click.alert.amui.data-api","[data-am-alert]",function(t){var e=n(t.target);n(this).addClass("am-fade am-in"),e.is(".am-close")&&n(this).alert("close")}),n.AMUI.alert=s,e.exports=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],25:[function(t,e){(function(i){"use strict";function n(t){return this.each(function(){var e=o(this),i=e.data("amui.button"),n="object"==typeof t&&t||{};i||e.data("amui.button",i=new a(this,n)),"toggle"==t?i.toggle():"string"==typeof t&&i.setState(t)})}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null,s=t("./core"),a=function(t,e){this.$element=o(t),this.options=o.extend({},a.DEFAULTS,e),this.isLoading=!1,this.hasSpinner=!1};a.DEFAULTS={loadingText:"loading...",className:{loading:"am-btn-loading",disabled:"am-disabled"},spinner:void 0},a.prototype.setState=function(t){var e="disabled",i=this.$element,n=this.options,a=i.is("input")?"val":"html",r=n.className.disabled+" "+n.className.loading;t+="Text",n.resetText||(n.resetText=i[a]()),s.support.animation&&n.spinner&&"html"===a&&!this.hasSpinner&&(n.loadingText='<span class="am-icon-'+n.spinner+' am-icon-spin"></span>'+n.loadingText,this.hasSpinner=!0),i[a](n[t]),setTimeout(o.proxy(function(){"loadingText"==t?(i.addClass(r).attr(e,e),this.isLoading=!0):this.isLoading&&(i.removeClass(r).removeAttr(e),this.isLoading=!1)},this),0)},a.prototype.toggle=function(){var t=!0,e=this.$element,i=this.$element.parent(".am-btn-group");if(i.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&e.hasClass("am-active")?t=!1:i.find(".am-active").removeClass("am-active")),t&&n.prop("checked",!e.hasClass("am-active")).trigger("change")}t&&(e.toggleClass("am-active"),e.hasClass("am-active")||e.blur())},o.fn.button=n,o(document).on("click.button.amui.data-api","[data-am-button]",function(t){var e=o(t.target);e.hasClass("am-btn")||(e=e.closest(".am-btn")),n.call(e,"toggle"),t.preventDefault()}),s.ready(function(t){o("[data-am-loading]",t).each(function(){o(this).button(s.utils.parseOptions(o(this).data("amLoading")))})}),o.AMUI.button=a,e.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],26:[function(t,e){(function(i){"use strict";function n(t){return this.each(function(){var e=o(this),i=e.data("amui.collapse"),n=o.extend({},a.DEFAULTS,s.utils.options(e.attr("data-am-collapse")),"object"==typeof t&&t);!i&&n.toggle&&"open"==t&&(t=!t),i||e.data("amui.collapse",i=new a(this,n)),"string"==typeof t&&i[t]()})}var o="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null,s=t("./core"),a=function(t,e){this.$element=o(t),this.options=o.extend({},a.DEFAULTS,e),this.transitioning=null,this.options.parent&&(this.$parent=o(this.options.parent)),this.options.toggle&&this.toggle()};a.DEFAULTS={toggle:!0},a.prototype.open=function(){if(!this.transitioning&&!this.$element.hasClass("am-in")){var t=o.Event("open.collapse.amui");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.$parent&&this.$parent.find("> .am-panel > .am-in");if(e&&e.length){var i=e.data("amui.collapse");if(i&&i.transitioning)return;n.call(e,"close"),i||e.data("amui.collapse",null)}this.$element.removeClass("am-collapse").addClass("am-collapsing").height(0),this.transitioning=1;var a=function(){this.$element.removeClass("am-collapsing").addClass("am-collapse am-in").height(""),this.transitioning=0,this.$element.trigger("opened.collapse.amui")};if(!s.support.transition)return a.call(this);var r=this.$element[0].scrollHeight;this.$element.one(s.support.transition.end,o.proxy(a,this)).emulateTransitionEnd(300).css({height:r})}}},a.prototype.close=function(){if(!this.transitioning&&this.$element.hasClass("am-in")){var t=o.Event("close.collapse.amui");if(this.$element.trigger(t),!t.isDefaultPrevented()){this.$element.height(this.$element.height()).redraw(),this.$element.addClass("am-collapsing").removeClass("am-collapse am-in"),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.trigger("closed.collapse.amui").removeClass("am-collapsing").addClass("am-collapse")};return s.support.transition?void this.$element.height(0).one(s.support.transition.end,o.proxy(e,this)).emulateTransitionEnd(300):e.call(this)}}},a.prototype.toggle=function(){this[this.$element.hasClass("am-in")?"close":"open"]()},o.fn.collapse=n,o(document).on("click.collapse.amui.data-api","[data-am-collapse]",function(t){var e,i=o(this),a=s.utils.options(i.attr("data-am-collapse")),r=a.target||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),l=o(r),c=l.data("amui.collapse"),u=c?"toggle":a,d=a.parent,h=d&&o(d);c&&c.transitioning||(h&&h.find("[data-am-collapse]").not(i).addClass("am-collapsed"),i[l.hasClass("am-in")?"addClass":"removeClass"]("am-collapsed")),n.call(l,u)}),o.AMUI.collapse=a,e.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./core":4}],27:[function(t,e){(function(i){"use strict";var n="undefined"!=typeof window?window.jQuery:"undefined"!=typeof i?i.jQuery:null,o=t("./core"),s=n(document),a=function(t,e){if(this.$element=n(t),this.options=n.extend({},a.DEFAULTS,e),this.format=r.parseFormat(this.options.format),this.$element.data("date",this.options.date),this.language=this.getLocale(this.options.locale),this.theme=this.options.theme,this.$picker=n(r.template).appendTo("body").on({click:n.proxy(this.click,this)}),this.isInput=this.$element.is("input"),this.component=this.$element.is(".am-datepicker-date")?this.$element.find(".am-datepicker-add-on"):!1,this.isInput?this.$element.on({"click.datepicker.amui":n.proxy(this.open,this),"keyup.datepicker.amui":n.proxy(this.update,this)}):this.component?this.component.on("click.datepicker.amui",n.proxy(this.open,this)):this.$element.on("click.datepicker.amui",n.proxy(this.open,this)),this.minViewMode=this.options.minViewMode,"string"==typeof this.minViewMode)switch(this.minViewMode){case"months":this.minViewMode=1;break;case"years":this.minViewMode=2;break;default:this.minViewMode=0}if(this.viewMode=this.options.viewMode,"string"==typeof this.viewMode)switch(this.viewMode){case"months":this.viewMode=1;break;case"years":this.viewMode=2;break;default:this.viewMode=0}this.startViewMode=this.viewMode,this.weekStart=(this.options.weekStart||a.locales[this.language].weekStart||0)%7,this.weekEnd=(this.weekStart+6)%7,this.onRender=this.options.onRender,this.setTheme(),this.fillDow(),this.fillMonths(),this.update(),this.showMode()};a.DEFAULTS={locale:"zh_CN",format:"yyyy-mm-dd",weekStart:void 0,viewMode:0,minViewMode:0,date:"",theme:"",autoClose:1,onRender:function(){return""}},a.prototype.open=function(t){this.$picker.show(),this.height=this.component?this.component.outerHeight():this.$element.outerHeight(),this.place(),n(window).on("resize.datepicker.amui",n.proxy(this.place,this)),t&&(t.stopPropagation(),t.preventDefault());var e=this;s.on("mousedown.datapicker.amui touchstart.datepicker.amui",function(t){0===n(t.target).closest(".am-datepicker").length&&e.close()}),this.$element.trigger({type:"open.datepicker.amui",date:this.date})},a.prototype.close=function(){this.$picker.hide(),n(window).off("resize.datepicker.amui",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||n(document).off("mousedown.datapicker.amui touchstart.datepicker.amui",this.close),this.$element.trigger({type:"close.datepicker.amui",date:this.date})},a.prototype.set=function(){var t=r.formatDate(this.date,this.format);this.isInput?this.$element.prop("value",t):(this.component&&this.$element.find("input").prop("value",t),this.$element.data("date",t))},a.prototype.setValue=function(t){this.date="string"==typeof t?r.parseDate(t,this.format):new Date(t),this.set(),this.viewDate=new Date(this.date.getFullYear(),this.date.getMonth(),1,0,0,0,0),this.fill()},a.prototype.place=function(){var t=this.component?this.component.offset():this.$element.offset(),e=this.component?this.component.width():this.$element.width(),i=t.top+this.height,n=t.left,o=s.width()-t.left-e,a=this.isOutView();if(this.$picker.removeClass("am-datepicker-right"),this.$picker.removeClass("am-datepicker-up"),s.width()>640){if(a.outRight)return this.$picker.addClass("am-datepicker-right"),void this.$picker.css({top:i,left:"auto",right:o});a.outBottom&&(this.$picker.addClass("am-datepicker-up"),i=t.top-this.$picker.outerHeight(!0))}else n=0;this.$picker.css({top:i,left:n})},a.prototype.update=function(t){this.date=r.parseDate("string"==typeof t?t:this.isInput?this.$element.prop("value"):this.$element.data("date"),this.format),this.viewDate=new Date(this.date.getFullYear(),this.date.getMonth(),1,0,0,0,0),this.fill()},a.prototype.fillDow=function(){for(var t=this.weekStart,e="<tr>";t<this.weekStart+7;)e+='<th class="am-datepicker-dow">'+a.locales[this.language].daysMin[t++%7]+"</th>";e+="</tr>",this.$picker.find(".am-datepicker-days thead").append(e)},a.prototype.fillMonths=function(){for(var t="",e=0;12>e;)t+='<span class="am-datepicker-month">'+a.locales[this.language].monthsShort[e++]+"</span>";this.$picker.find(".am-datepicker-months td").append(t)},a.prototype.fill=function(){var t=new Date(this.viewDate),e=t.getFullYear(),i=t.getMonth(),n=this.date.valueOf(),o=new Date(e,i-1,28,0,0,0,0),s=r.getDaysInMonth(o.getFullYear(),o.getMonth()),l=this.$picker.find(".am-datepicker-days .am-datepicker-select");l.text("zh_CN"===this.language?e+a.locales[this.language].year[0]+" "+a.locales[this.language].months[i]:a.locales[this.language].months[i]+" "+e),o.setDate(s),o.setDate(s-(o.getDay()-this.weekStart+7)%7);var c=new Date(o);c.setDate(c.getDate()+42),c=c.valueOf();for(var u,d,h,p=[];o.valueOf()<c;)o.getDay()===this.weekStart&&p.push("<tr>"),u=this.onRender(o),d=o.getFullYear(),h=o.getMonth(),i>h&&d===e||e>d?u+=" am-datepicker-old":(h>i&&d===e||d>e)&&(u+=" am-datepicker-new"),o.valueOf()===n&&(u+=" am-active"),p.push('<td class="am-datepicker-day '+u+'">'+o.getDate()+"</td>"),o.getDay()===this.weekEnd&&p.push("</tr>"),o.setDate(o.getDate()+1);this.$picker.find(".am-datepicker-days tbody").empty().append(p.join(""));var f=this.date.getFullYear(),m=this.$picker.find(".am-datepicker-months").find(".am-datepicker-select").text(e);m=m.end().find("span").removeClass("am-active").removeClass("am-disabled");for(var v=0;12>v;)this.onRender(t.setFullYear(e,v))&&m.eq(v).addClass("am-disabled"),v++;f===e&&m.eq(this.date.getMonth()).removeClass("am-disabled").addClass("am-active"),p="",e=10*parseInt(e/10,10);var g,w=this.$picker.find(".am-datepicker-years").find(".am-datepicker-select").text(e+"-"+(e+9)).end().find("td");e-=1;for(var y=-1;11>y;y++)g=this.onRender(t.setFullYear(e)),p+='<span class="'+g+(-1===y||10===y?" am-datepicker-old":"")+(f===e?" am-active":"")+'">'+e+"</span>",e+=1;w.html(p)},a.prototype.click=function(t){t.stopPropagation(),t.preventDefault();var e,i,o=this.$picker.find(".am-datepicker-days").find(".am-active"),s=this.$picker.find(".am-datepicker-months"),a
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值