index22db22.js 85 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202
  1. define("biz_web/lib/spin.js", [], function(e, t, n) {
  2. try {
  3. var r = +(new Date), i = function() {
  4. function e(e, t) {
  5. var n = ~~((e[a] - 1) / 2);
  6. for (var r = 1; r <= n; r++) t(e[r * 2 - 1], e[r * 2]);
  7. }
  8. function t(t) {
  9. var n = document.createElement(t || "div");
  10. return e(arguments, function(e, t) {
  11. n[e] = t;
  12. }), n;
  13. }
  14. function n(e, t, r) {
  15. return r && !r[x] && n(e, r), e.insertBefore(t, r || null), e;
  16. }
  17. function r(e, t) {
  18. var n = [ p, t, ~~(e * 100) ].join("-"), r = "{" + p + ":" + e + "}", i;
  19. if (!H[n]) {
  20. for (i = 0; i < P[a]; i++) try {
  21. j.insertRule("@" + (P[i] && "-" + P[i].toLowerCase() + "-" || "") + "keyframes " + n + "{0%{" + p + ":1}" + t + "%" + r + "to" + r + "}", j.cssRules[a]);
  22. } catch (s) {}
  23. H[n] = 1;
  24. }
  25. return n;
  26. }
  27. function i(e, t) {
  28. var n = e[m], r, i;
  29. if (n[t] !== undefined) return t;
  30. t = t.charAt(0).toUpperCase() + t.slice(1);
  31. for (i = 0; i < P[a]; i++) {
  32. r = P[i] + t;
  33. if (n[r] !== undefined) return r;
  34. }
  35. }
  36. function s(t) {
  37. return e(arguments, function(e, n) {
  38. t[m][i(t, e) || e] = n;
  39. }), t;
  40. }
  41. function o(t) {
  42. return e(arguments, function(e, n) {
  43. t[e] === undefined && (t[e] = n);
  44. }), t;
  45. }
  46. var u = "width", a = "length", f = "radius", l = "lines", c = "trail", h = "color", p = "opacity", d = "speed", v = "shadow", m = "style", g = "height", y = "left", b = "top", w = "px", E = "childNodes", S = "firstChild", x = "parentNode", T = "position", N = "relative", C = "absolute", k = "animation", L = "transform", A = "Origin", O = "Timeout", M = "coord", _ = "#000", D = m + "Sheets", P = "webkit0Moz0ms0O".split(0), H = {}, B;
  47. n(document.getElementsByTagName("head")[0], t(m));
  48. var j = document[D][document[D][a] - 1], F = function(e) {
  49. this.opts = o(e || {}, l, 12, c, 100, a, 7, u, 5, f, 10, h, _, p, .25, d, 1);
  50. }, I = F.prototype = {
  51. spin: function(e) {
  52. var t = this, r = t.el = t[l](t.opts);
  53. e && n(e, s(r, y, ~~(e.offsetWidth / 2) + w, b, ~~(e.offsetHeight / 2) + w), e[S]);
  54. if (!B) {
  55. var i = t.opts, o = 0, u = 20 / i[d], a = (1 - i[p]) / (u * i[c] / 100), f = u / i[l];
  56. (function h() {
  57. o++;
  58. for (var e = i[l]; e; e--) {
  59. var n = Math.max(1 - (o + e * f) % u * a, i[p]);
  60. t[p](r, i[l] - e, n, i);
  61. }
  62. t[O] = t.el && window["set" + O](h, 50);
  63. })();
  64. }
  65. return t;
  66. },
  67. stop: function() {
  68. var e = this, t = e.el;
  69. return window["clear" + O](e[O]), t && t[x] && t[x].removeChild(t), e.el = undefined, e;
  70. }
  71. };
  72. I[l] = function(e) {
  73. function i(n, r) {
  74. return s(t(), T, C, u, e[a] + e[u] + w, g, e[u] + w, "background", n, "boxShadow", r, L + A, y, L, "rotate(" + ~~(360 / e[l] * E) + "deg) translate(" + e[f] + w + ",0)", "borderRadius", "100em");
  75. }
  76. var o = s(t(), T, N), m = r(e[p], e[c]), E = 0, S;
  77. for (; E < e[l]; E++) S = s(t(), T, C, b, 1 + ~(e[u] / 2) + w, L, "translate3d(0,0,0)", k, m + " " + 1 / e[d] + "s linear infinite " + (1 / e[l] / e[d] * E - 1 / e[d]) + "s"), e[v] && n(S, s(i(_, "0 0 4px " + _), b, 2 + w)), n(o, n(S, i(e[h], "0 0 1px rgba(0,0,0,.1)")));
  78. return o;
  79. }, I[p] = function(e, t, n) {
  80. e[E][t][m][p] = n;
  81. };
  82. var q = "behavior", R = "url(#default#VML)", U = "group0roundrect0fill0stroke".split(0);
  83. return function() {
  84. var e = s(t(U[0]), q, R), r;
  85. if (!i(e, L) && e.adj) {
  86. for (r = 0; r < U[a]; r++) j.addRule(U[r], q + ":" + R);
  87. I[l] = function() {
  88. function e() {
  89. return s(t(U[0], M + "size", c + " " + c, M + A, -o + " " + -o), u, c, g, c);
  90. }
  91. function r(r, a, c) {
  92. n(d, n(s(e(), "rotation", 360 / i[l] * r + "deg", y, ~~a), n(s(t(U[1], "arcsize", 1), u, o, g, i[u], y, i[f], b, -i[u] / 2, "filter", c), t(U[2], h, i[h], p, i[p]), t(U[3], p, 0))));
  93. }
  94. var i = this.opts, o = i[a] + i[u], c = 2 * o, d = e(), m = ~(i[a] + i[f] + i[u]) + w, E;
  95. if (i[v]) for (E = 1; E <= i[l]; E++) r(E, -2, "progid:DXImage" + L + ".Microsoft.Blur(pixel" + f + "=2,make" + v + "=1," + v + p + "=.3)");
  96. for (E = 1; E <= i[l]; E++) r(E);
  97. return n(s(t(), "margin", m + " 0 0 " + m, T, N), d);
  98. }, I[p] = function(e, t, n, r) {
  99. r = r[v] && r[l] || 0, e[S][E][t + r][S][S][p] = n;
  100. };
  101. } else B = i(e, k);
  102. }(), F;
  103. }();
  104. $.fn.spin = function(e, t) {
  105. return this.each(function() {
  106. var n = $(this), r = n.data();
  107. r.spinner && (r.spinner.stop(), delete r.spinner), e !== !1 && (e = $.extend({
  108. color: t || n.css("color")
  109. }, $.fn.spin.presets[e] || e), r.spinner = (new i(e)).spin(this));
  110. });
  111. }, $.fn.spin.presets = {
  112. tiny: {
  113. lines: 8,
  114. length: 2,
  115. width: 2,
  116. radius: 3
  117. },
  118. small: {
  119. lines: 8,
  120. length: 4,
  121. width: 3,
  122. radius: 5
  123. },
  124. large: {
  125. lines: 10,
  126. length: 8,
  127. width: 4,
  128. radius: 8
  129. }
  130. };
  131. } catch (s) {
  132. wx.jslog({
  133. src: "biz_web/lib/spin.js"
  134. }, s);
  135. }
  136. });define("tpl/pagebar.html.js", [], function(e, t, n) {
  137. return '<div class="pagination">\n <span class="page_nav_area">\n <a href="javascript:void(0);" class="btn page_first">{firstButtonText}</a>\n <a href="javascript:void(0);" class="btn page_prev"><i class="arrow"></i></a>\n {if isSimple}\n <span class="page_num">\n <label>{initShowPage}</label>\n <span class="num_gap">/</span>\n <label>{endPage}</label>\n </span>\n {else}\n {each startRange as pageIndex index}\n <a href="javascript:void(0);" class="btn page_nav">{pageIndex}</a>\n {/each}\n <span class="gap_prev">...</span>\n {each midRange as pageIndex index}\n <a href="javascript:void(0);" class="btn page_nav js_mid">{pageIndex}</a>\n {/each}\n <span class="gap_next">...</span>\n {each endRange as pageIndex index}\n <a href="javascript:void(0);" class="btn page_nav">{pageIndex}</a>\n {/each}\n {/if}\n <a href="javascript:void(0);" class="btn page_next"><i class="arrow"></i></a>\n <a href="javascript:void(0);" class="btn page_last">{lastButtonText}</a> \n </span>\n {if (endPage>1)}\n <span class="goto_area">\n <input type="text">\n <a href="javascript:void(0);" class="btn page_go">跳转</a>\n </span>\n {/if}\n</div>\n';
  138. });define("tpl/dialog.html.js", [], function(e, t, n) {
  139. return '<div class="dialog_wrp {className}" style="{if width}width:{width}px;{/if}{if height}height:{height}px;{/if};display:none;">\n <div class="dialog" id="{id}">\n <div class="dialog_hd">\n <h3>{title}</h3>\n {if !hideClose}\n <a href="javascript:;" class="pop_closed">关闭</a>\n {/if}\n </div>\n <div class="dialog_bd">\n <div class="page_msg large simple default {msg.msgClass}">\n <div class="inner group">\n <span class="msg_icon_wrapper"><i class="icon_msg {icon} "></i></span>\n <div class="msg_content ">\n {if msg.title}<h4>{=msg.title}</h4>{/if}\n {if msg.text}<p>{=msg.text}</p>{/if}\n </div>\n </div>\n </div>\n </div> \n <div class="dialog_ft">\n {if !hideClose}\n {each buttons as bt index}\n <a href="javascript:;" class="btn {bt.type} js_btn">{bt.text}</a>\n {/each}\n {/if}\n </div>\n </div>\n</div>\n{if mask}<div class="mask"></div>{/if}\n\n';
  140. });define("biz_common/jquery.ui/jquery.ui.draggable.js", [], function(e, t, n) {
  141. try {
  142. var r = +(new Date);
  143. (function(e, t) {
  144. function n(t, n) {
  145. var i, s, o, u = t.nodeName.toLowerCase();
  146. return "area" === u ? (i = t.parentNode, s = i.name, !t.href || !s || i.nodeName.toLowerCase() !== "map" ? !1 : (o = e("img[usemap=#" + s + "]")[0], !!o && r(o))) : (/input|select|textarea|button|object/.test(u) ? !t.disabled : "a" === u ? t.href || n : n) && r(t);
  147. }
  148. function r(t) {
  149. return e.expr.filters.visible(t) && !e(t).parents().addBack().filter(function() {
  150. return e.css(this, "visibility") === "hidden";
  151. }).length;
  152. }
  153. var i = 0, s = /^ui-id-\d+$/;
  154. e.ui = e.ui || {}, e.extend(e.ui, {
  155. version: "1.10.3"
  156. }), e.fn.extend({
  157. focus: function(t) {
  158. return function(n, r) {
  159. return typeof n == "number" ? this.each(function() {
  160. var t = this;
  161. setTimeout(function() {
  162. e(t).focus(), r && r.call(t);
  163. }, n);
  164. }) : t.apply(this, arguments);
  165. };
  166. }(e.fn.focus),
  167. scrollParent: function() {
  168. var t;
  169. return e.ui.ie && /(static|relative)/.test(this.css("position")) || /absolute/.test(this.css("position")) ? t = this.parents().filter(function() {
  170. return /(relative|absolute|fixed)/.test(e.css(this, "position")) && /(auto|scroll)/.test(e.css(this, "overflow") + e.css(this, "overflow-y") + e.css(this, "overflow-x"));
  171. }).eq(0) : t = this.parents().filter(function() {
  172. return /(auto|scroll)/.test(e.css(this, "overflow") + e.css(this, "overflow-y") + e.css(this, "overflow-x"));
  173. }).eq(0), /fixed/.test(this.css("position")) || !t.length ? e(document) : t;
  174. },
  175. zIndex: function(n) {
  176. if (n !== t) return this.css("zIndex", n);
  177. if (this.length) {
  178. var r = e(this[0]), i, s;
  179. while (r.length && r[0] !== document) {
  180. i = r.css("position");
  181. if (i === "absolute" || i === "relative" || i === "fixed") {
  182. s = parseInt(r.css("zIndex"), 10);
  183. if (!isNaN(s) && s !== 0) return s;
  184. }
  185. r = r.parent();
  186. }
  187. }
  188. return 0;
  189. },
  190. uniqueId: function() {
  191. return this.each(function() {
  192. this.id || (this.id = "ui-id-" + ++i);
  193. });
  194. },
  195. removeUniqueId: function() {
  196. return this.each(function() {
  197. s.test(this.id) && e(this).removeAttr("id");
  198. });
  199. }
  200. }), e.extend(e.expr[":"], {
  201. data: e.expr.createPseudo ? e.expr.createPseudo(function(t) {
  202. return function(n) {
  203. return !!e.data(n, t);
  204. };
  205. }) : function(t, n, r) {
  206. return !!e.data(t, r[3]);
  207. },
  208. focusable: function(t) {
  209. return n(t, !isNaN(e.attr(t, "tabindex")));
  210. },
  211. tabbable: function(t) {
  212. var r = e.attr(t, "tabindex"), i = isNaN(r);
  213. return (i || r >= 0) && n(t, !i);
  214. }
  215. }), e.extend(e.ui, {
  216. plugin: {
  217. add: function(t, n, r) {
  218. var i, s = e.ui[t].prototype;
  219. for (i in r) s.plugins[i] = s.plugins[i] || [], s.plugins[i].push([ n, r[i] ]);
  220. },
  221. call: function(e, t, n) {
  222. var r, i = e.plugins[t];
  223. if (!i || !e.element[0].parentNode || e.element[0].parentNode.nodeType === 11) return;
  224. for (r = 0; r < i.length; r++) e.options[i[r][0]] && i[r][1].apply(e.element, n);
  225. }
  226. },
  227. hasScroll: function(t, n) {
  228. if (e(t).css("overflow") === "hidden") return !1;
  229. var r = n && n === "left" ? "scrollLeft" : "scrollTop", i = !1;
  230. return t[r] > 0 ? !0 : (t[r] = 1, i = t[r] > 0, t[r] = 0, i);
  231. }
  232. });
  233. })(jQuery), function(e, t) {
  234. var n = 0, r = Array.prototype.slice, i = e.cleanData;
  235. e.cleanData = function(t) {
  236. for (var n = 0, r; (r = t[n]) != null; n++) try {
  237. e(r).triggerHandler("remove");
  238. } catch (s) {}
  239. i(t);
  240. }, e.widget = function(t, n, r) {
  241. var i, s, o, u, a = {}, f = t.split(".")[0];
  242. t = t.split(".")[1], i = f + "-" + t, r || (r = n, n = e.Widget), e.expr[":"][i.toLowerCase()] = function(t) {
  243. return !!e.data(t, i);
  244. }, e[f] = e[f] || {}, s = e[f][t], o = e[f][t] = function(e, t) {
  245. if (!this._createWidget) return new o(e, t);
  246. arguments.length && this._createWidget(e, t);
  247. }, e.extend(o, s, {
  248. version: r.version,
  249. _proto: e.extend({}, r),
  250. _childConstructors: []
  251. }), u = new n, u.options = e.widget.extend({}, u.options), e.each(r, function(t, r) {
  252. if (!e.isFunction(r)) {
  253. a[t] = r;
  254. return;
  255. }
  256. a[t] = function() {
  257. var e = function() {
  258. return n.prototype[t].apply(this, arguments);
  259. }, i = function(e) {
  260. return n.prototype[t].apply(this, e);
  261. };
  262. return function() {
  263. var t = this._super, n = this._superApply, s;
  264. return this._super = e, this._superApply = i, s = r.apply(this, arguments), this._super = t, this._superApply = n, s;
  265. };
  266. }();
  267. }), o.prototype = e.widget.extend(u, {
  268. widgetEventPrefix: s ? u.widgetEventPrefix : t
  269. }, a, {
  270. constructor: o,
  271. namespace: f,
  272. widgetName: t,
  273. widgetFullName: i
  274. }), s ? (e.each(s._childConstructors, function(t, n) {
  275. var r = n.prototype;
  276. e.widget(r.namespace + "." + r.widgetName, o, n._proto);
  277. }), delete s._childConstructors) : n._childConstructors.push(o), e.widget.bridge(t, o);
  278. }, e.widget.extend = function(n) {
  279. var i = r.call(arguments, 1), s = 0, o = i.length, u, a;
  280. for (; s < o; s++) for (u in i[s]) a = i[s][u], i[s].hasOwnProperty(u) && a !== t && (e.isPlainObject(a) ? n[u] = e.isPlainObject(n[u]) ? e.widget.extend({}, n[u], a) : e.widget.extend({}, a) : n[u] = a);
  281. return n;
  282. }, e.widget.bridge = function(n, i) {
  283. var s = i.prototype.widgetFullName || n;
  284. e.fn[n] = function(o) {
  285. var u = typeof o == "string", a = r.call(arguments, 1), f = this;
  286. return o = !u && a.length ? e.widget.extend.apply(null, [ o ].concat(a)) : o, u ? this.each(function() {
  287. var r, i = e.data(this, s);
  288. if (!i) return e.error("cannot call methods on " + n + " prior to initialization; " + "attempted to call method '" + o + "'");
  289. if (!e.isFunction(i[o]) || o.charAt(0) === "_") return e.error("no such method '" + o + "' for " + n + " widget instance");
  290. r = i[o].apply(i, a);
  291. if (r !== i && r !== t) return f = r && r.jquery ? f.pushStack(r.get()) : r, !1;
  292. }) : this.each(function() {
  293. var t = e.data(this, s);
  294. t ? t.option(o || {})._init() : e.data(this, s, new i(o, this));
  295. }), f;
  296. };
  297. }, e.Widget = function() {}, e.Widget._childConstructors = [], e.Widget.prototype = {
  298. widgetName: "widget",
  299. widgetEventPrefix: "",
  300. defaultElement: "<div>",
  301. options: {
  302. disabled: !1,
  303. create: null
  304. },
  305. _createWidget: function(t, r) {
  306. r = e(r || this.defaultElement || this)[0], this.element = e(r), this.uuid = n++, this.eventNamespace = "." + this.widgetName + this.uuid, this.options = e.widget.extend({}, this.options, this._getCreateOptions(), t), this.bindings = e(), this.hoverable = e(), this.focusable = e(), r !== this && (e.data(r, this.widgetFullName, this), this._on(!0, this.element, {
  307. remove: function(e) {
  308. e.target === r && this.destroy();
  309. }
  310. }), this.document = e(r.style ? r.ownerDocument : r.document || r), this.window = e(this.document[0].defaultView || this.document[0].parentWindow)), this._create(), this._trigger("create", null, this._getCreateEventData()), this._init();
  311. },
  312. _getCreateOptions: e.noop,
  313. _getCreateEventData: e.noop,
  314. _create: e.noop,
  315. _init: e.noop,
  316. destroy: function() {
  317. this._destroy(), this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)), this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName + "-disabled " + "ui-state-disabled"), this.bindings.unbind(this.eventNamespace), this.hoverable.removeClass("ui-state-hover"), this.focusable.removeClass("ui-state-focus");
  318. },
  319. _destroy: e.noop,
  320. widget: function() {
  321. return this.element;
  322. },
  323. option: function(n, r) {
  324. var i = n, s, o, u;
  325. if (arguments.length === 0) return e.widget.extend({}, this.options);
  326. if (typeof n == "string") {
  327. i = {}, s = n.split("."), n = s.shift();
  328. if (s.length) {
  329. o = i[n] = e.widget.extend({}, this.options[n]);
  330. for (u = 0; u < s.length - 1; u++) o[s[u]] = o[s[u]] || {}, o = o[s[u]];
  331. n = s.pop();
  332. if (r === t) return o[n] === t ? null : o[n];
  333. o[n] = r;
  334. } else {
  335. if (r === t) return this.options[n] === t ? null : this.options[n];
  336. i[n] = r;
  337. }
  338. }
  339. return this._setOptions(i), this;
  340. },
  341. _setOptions: function(e) {
  342. var t;
  343. for (t in e) this._setOption(t, e[t]);
  344. return this;
  345. },
  346. _setOption: function(e, t) {
  347. return this.options[e] = t, e === "disabled" && (this.widget().toggleClass(this.widgetFullName + "-disabled ui-state-disabled", !!t).attr("aria-disabled", t), this.hoverable.removeClass("ui-state-hover"), this.focusable.removeClass("ui-state-focus")), this;
  348. },
  349. enable: function() {
  350. return this._setOption("disabled", !1);
  351. },
  352. disable: function() {
  353. return this._setOption("disabled", !0);
  354. },
  355. _on: function(t, n, r) {
  356. var i, s = this;
  357. typeof t != "boolean" && (r = n, n = t, t = !1), r ? (n = i = e(n), this.bindings = this.bindings.add(n)) : (r = n, n = this.element, i = this.widget()), e.each(r, function(r, o) {
  358. function u() {
  359. if (!t && (s.options.disabled === !0 || e(this).hasClass("ui-state-disabled"))) return;
  360. return (typeof o == "string" ? s[o] : o).apply(s, arguments);
  361. }
  362. typeof o != "string" && (u.guid = o.guid = o.guid || u.guid || e.guid++);
  363. var a = r.match(/^(\w+)\s*(.*)$/), f = a[1] + s.eventNamespace, l = a[2];
  364. l ? i.delegate(l, f, u) : n.bind(f, u);
  365. });
  366. },
  367. _off: function(e, t) {
  368. t = (t || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace, e.unbind(t).undelegate(t);
  369. },
  370. _delay: function(e, t) {
  371. function n() {
  372. return (typeof e == "string" ? r[e] : e).apply(r, arguments);
  373. }
  374. var r = this;
  375. return setTimeout(n, t || 0);
  376. },
  377. _hoverable: function(t) {
  378. this.hoverable = this.hoverable.add(t), this._on(t, {
  379. mouseenter: function(t) {
  380. e(t.currentTarget).addClass("ui-state-hover");
  381. },
  382. mouseleave: function(t) {
  383. e(t.currentTarget).removeClass("ui-state-hover");
  384. }
  385. });
  386. },
  387. _focusable: function(t) {
  388. this.focusable = this.focusable.add(t), this._on(t, {
  389. focusin: function(t) {
  390. e(t.currentTarget).addClass("ui-state-focus");
  391. },
  392. focusout: function(t) {
  393. e(t.currentTarget).removeClass("ui-state-focus");
  394. }
  395. });
  396. },
  397. _trigger: function(t, n, r) {
  398. var i, s, o = this.options[t];
  399. r = r || {}, n = e.Event(n), n.type = (t === this.widgetEventPrefix ? t : this.widgetEventPrefix + t).toLowerCase(), n.target = this.element[0], s = n.originalEvent;
  400. if (s) for (i in s) i in n || (n[i] = s[i]);
  401. return this.element.trigger(n, r), !(e.isFunction(o) && o.apply(this.element[0], [ n ].concat(r)) === !1 || n.isDefaultPrevented());
  402. }
  403. }, e.each({
  404. show: "fadeIn",
  405. hide: "fadeOut"
  406. }, function(t, n) {
  407. e.Widget.prototype["_" + t] = function(r, i, s) {
  408. typeof i == "string" && (i = {
  409. effect: i
  410. });
  411. var o, u = i ? i === !0 || typeof i == "number" ? n : i.effect || n : t;
  412. i = i || {}, typeof i == "number" && (i = {
  413. duration: i
  414. }), o = !e.isEmptyObject(i), i.complete = s, i.delay && r.delay(i.delay), o && e.effects && e.effects.effect[u] ? r[t](i) : u !== t && r[u] ? r[u](i.duration, i.easing, s) : r.queue(function(n) {
  415. e(this)[t](), s && s.call(r[0]), n();
  416. });
  417. };
  418. });
  419. }(jQuery), function(e, t) {
  420. var n = !1;
  421. e(document).mouseup(function() {
  422. n = !1;
  423. }), e.widget("ui.mouse", {
  424. version: "1.10.3",
  425. options: {
  426. cancel: "input,textarea,button,select,option",
  427. distance: 1,
  428. delay: 0
  429. },
  430. _mouseInit: function() {
  431. var t = this;
  432. this.element.bind("mousedown." + this.widgetName, function(e) {
  433. return t._mouseDown(e);
  434. }).bind("click." + this.widgetName, function(n) {
  435. if (!0 === e.data(n.target, t.widgetName + ".preventClickEvent")) return e.removeData(n.target, t.widgetName + ".preventClickEvent"), n.stopImmediatePropagation(), !1;
  436. }), this.started = !1;
  437. },
  438. _mouseDestroy: function() {
  439. this.element.unbind("." + this.widgetName), this._mouseMoveDelegate && e(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate);
  440. },
  441. _mouseDown: function(t) {
  442. if (n) return;
  443. this._mouseStarted && this._mouseUp(t), this._mouseDownEvent = t;
  444. var r = this, i = t.which === 1, s = typeof this.options.cancel == "string" && t.target.nodeName ? e(t.target).closest(this.options.cancel).length : !1;
  445. if (!i || s || !this._mouseCapture(t)) return !0;
  446. this.mouseDelayMet = !this.options.delay, this.mouseDelayMet || (this._mouseDelayTimer = setTimeout(function() {
  447. r.mouseDelayMet = !0;
  448. }, this.options.delay));
  449. if (this._mouseDistanceMet(t) && this._mouseDelayMet(t)) {
  450. this._mouseStarted = this._mouseStart(t) !== !1;
  451. if (!this._mouseStarted) return t.preventDefault(), !0;
  452. }
  453. return !0 === e.data(t.target, this.widgetName + ".preventClickEvent") && e.removeData(t.target, this.widgetName + ".preventClickEvent"), this._mouseMoveDelegate = function(e) {
  454. return r._mouseMove(e);
  455. }, this._mouseUpDelegate = function(e) {
  456. return r._mouseUp(e);
  457. }, e(document).bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate), t.preventDefault(), n = !0, !0;
  458. },
  459. _mouseMove: function(t) {
  460. return e.ui.ie && (!document.documentMode || document.documentMode < 9) && !t.button ? this._mouseUp(t) : this._mouseStarted ? (this._mouseDrag(t), t.preventDefault()) : (this._mouseDistanceMet(t) && this._mouseDelayMet(t) && (this._mouseStarted = this._mouseStart(this._mouseDownEvent, t) !== !1, this._mouseStarted ? this._mouseDrag(t) : this._mouseUp(t)), !this._mouseStarted);
  461. },
  462. _mouseUp: function(t) {
  463. return e(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate), this._mouseStarted && (this._mouseStarted = !1, t.target === this._mouseDownEvent.target && e.data(t.target, this.widgetName + ".preventClickEvent", !0), this._mouseStop(t)), !1;
  464. },
  465. _mouseDistanceMet: function(e) {
  466. return Math.max(Math.abs(this._mouseDownEvent.pageX - e.pageX), Math.abs(this._mouseDownEvent.pageY - e.pageY)) >= this.options.distance;
  467. },
  468. _mouseDelayMet: function() {
  469. return this.mouseDelayMet;
  470. },
  471. _mouseStart: function() {},
  472. _mouseDrag: function() {},
  473. _mouseStop: function() {},
  474. _mouseCapture: function() {
  475. return !0;
  476. }
  477. });
  478. }(jQuery), function(e, t) {
  479. e.widget("ui.draggable", e.ui.mouse, {
  480. version: "1.10.3",
  481. widgetEventPrefix: "drag",
  482. options: {
  483. addClasses: !0,
  484. appendTo: "parent",
  485. axis: !1,
  486. connectToSortable: !1,
  487. containment: !1,
  488. cursor: "auto",
  489. cursorAt: !1,
  490. grid: !1,
  491. handle: !1,
  492. helper: "original",
  493. iframeFix: !1,
  494. opacity: !1,
  495. refreshPositions: !1,
  496. revert: !1,
  497. revertDuration: 500,
  498. scope: "default",
  499. scroll: !0,
  500. scrollSensitivity: 20,
  501. scrollSpeed: 20,
  502. snap: !1,
  503. snapMode: "both",
  504. snapTolerance: 20,
  505. stack: !1,
  506. zIndex: !1,
  507. drag: null,
  508. start: null,
  509. stop: null
  510. },
  511. _create: function() {
  512. this.options.helper === "original" && !/^(?:r|a|f)/.test(this.element.css("position")) && (this.element[0].style.position = "relative"), this.options.addClasses && this.element.addClass("ui-draggable"), this.options.disabled && this.element.addClass("ui-draggable-disabled"), this._mouseInit();
  513. },
  514. _destroy: function() {
  515. this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"), this._mouseDestroy();
  516. },
  517. _mouseCapture: function(t) {
  518. var n = this.options;
  519. return this.helper || n.disabled || e(t.target).closest(".ui-resizable-handle").length > 0 ? !1 : (this.handle = this._getHandle(t), this.handle ? (e(n.iframeFix === !0 ? "iframe" : n.iframeFix).each(function() {
  520. e("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({
  521. width: this.offsetWidth + "px",
  522. height: this.offsetHeight + "px",
  523. position: "absolute",
  524. opacity: "0.001",
  525. zIndex: 1e3
  526. }).css(e(this).offset()).appendTo("body");
  527. }), !0) : !1);
  528. },
  529. _mouseStart: function(t) {
  530. var n = this.options;
  531. return this.helper = this._createHelper(t), this.helper.addClass("ui-draggable-dragging"), this._cacheHelperProportions(), e.ui.ddmanager && (e.ui.ddmanager.current = this), this._cacheMargins(), this.cssPosition = this.helper.css("position"), this.scrollParent = this.helper.scrollParent(), this.offsetParent = this.helper.offsetParent(), this.offsetParentCssPosition = this.offsetParent.css("position"), this.offset = this.positionAbs = this.element.offset(), this.offset = {
  532. top: this.offset.top - this.margins.top,
  533. left: this.offset.left - this.margins.left
  534. }, this.offset.scroll = !1, e.extend(this.offset, {
  535. click: {
  536. left: t.pageX - this.offset.left,
  537. top: t.pageY - this.offset.top
  538. },
  539. parent: this._getParentOffset(),
  540. relative: this._getRelativeOffset()
  541. }), this.originalPosition = this.position = this._generatePosition(t), this.originalPageX = t.pageX, this.originalPageY = t.pageY, n.cursorAt && this._adjustOffsetFromHelper(n.cursorAt), this._setContainment(), this._trigger("start", t) === !1 ? (this._clear(), !1) : (this._cacheHelperProportions(), e.ui.ddmanager && !n.dropBehaviour && e.ui.ddmanager.prepareOffsets(this, t), this._mouseDrag(t, !0), e.ui.ddmanager && e.ui.ddmanager.dragStart(this, t), !0);
  542. },
  543. _mouseDrag: function(t, n) {
  544. this.offsetParentCssPosition === "fixed" && (this.offset.parent = this._getParentOffset()), this.position = this._generatePosition(t), this.positionAbs = this._convertPositionTo("absolute");
  545. if (!n) {
  546. var r = this._uiHash();
  547. if (this._trigger("drag", t, r) === !1) return this._mouseUp({}), !1;
  548. this.position = r.position;
  549. }
  550. if (!this.options.axis || this.options.axis !== "y") this.helper[0].style.left = this.position.left + "px";
  551. if (!this.options.axis || this.options.axis !== "x") this.helper[0].style.top = this.position.top + "px";
  552. return e.ui.ddmanager && e.ui.ddmanager.drag(this, t), !1;
  553. },
  554. _mouseStop: function(t) {
  555. var n = this, r = !1;
  556. return e.ui.ddmanager && !this.options.dropBehaviour && (r = e.ui.ddmanager.drop(this, t)), this.dropped && (r = this.dropped, this.dropped = !1), this.options.helper === "original" && !e.contains(this.element[0].ownerDocument, this.element[0]) ? !1 : (this.options.revert === "invalid" && !r || this.options.revert === "valid" && r || this.options.revert === !0 || e.isFunction(this.options.revert) && this.options.revert.call(this.element, r) ? e(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
  557. n._trigger("stop", t) !== !1 && n._clear();
  558. }) : this._trigger("stop", t) !== !1 && this._clear(), !1);
  559. },
  560. _mouseUp: function(t) {
  561. return e("div.ui-draggable-iframeFix").each(function() {
  562. this.parentNode.removeChild(this);
  563. }), e.ui.ddmanager && e.ui.ddmanager.dragStop(this, t), e.ui.mouse.prototype._mouseUp.call(this, t);
  564. },
  565. cancel: function() {
  566. return this.helper.is(".ui-draggable-dragging") ? this._mouseUp({}) : this._clear(), this;
  567. },
  568. _getHandle: function(t) {
  569. return this.options.handle ? !!e(t.target).closest(this.element.find(this.options.handle)).length : !0;
  570. },
  571. _createHelper: function(t) {
  572. var n = this.options, r = e.isFunction(n.helper) ? e(n.helper.apply(this.element[0], [ t ])) : n.helper === "clone" ? this.element.clone().removeAttr("id") : this.element;
  573. return r.parents("body").length || r.appendTo(n.appendTo === "parent" ? this.element[0].parentNode : n.appendTo), r[0] !== this.element[0] && !/(fixed|absolute)/.test(r.css("position")) && r.css("position", "absolute"), r;
  574. },
  575. _adjustOffsetFromHelper: function(t) {
  576. typeof t == "string" && (t = t.split(" ")), e.isArray(t) && (t = {
  577. left: +t[0],
  578. top: +t[1] || 0
  579. }), "left" in t && (this.offset.click.left = t.left + this.margins.left), "right" in t && (this.offset.click.left = this.helperProportions.width - t.right + this.margins.left), "top" in t && (this.offset.click.top = t.top + this.margins.top), "bottom" in t && (this.offset.click.top = this.helperProportions.height - t.bottom + this.margins.top);
  580. },
  581. _getParentOffset: function() {
  582. var t = this.offsetParent.offset();
  583. this.cssPosition === "absolute" && this.scrollParent[0] !== document && e.contains(this.scrollParent[0], this.offsetParent[0]) && (t.left += this.scrollParent.scrollLeft(), t.top += this.scrollParent.scrollTop());
  584. if (this.offsetParent[0] === document.body || this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() === "html" && e.ui.ie) t = {
  585. top: 0,
  586. left: 0
  587. };
  588. return {
  589. top: t.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
  590. left: t.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
  591. };
  592. },
  593. _getRelativeOffset: function() {
  594. if (this.cssPosition === "relative") {
  595. var e = this.element.position();
  596. return {
  597. top: e.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(),
  598. left: e.left - (parseInt(this.helper.css("left"), 10) || 0) + this.scrollParent.scrollLeft()
  599. };
  600. }
  601. return {
  602. top: 0,
  603. left: 0
  604. };
  605. },
  606. _cacheMargins: function() {
  607. this.margins = {
  608. left: parseInt(this.element.css("marginLeft"), 10) || 0,
  609. top: parseInt(this.element.css("marginTop"), 10) || 0,
  610. right: parseInt(this.element.css("marginRight"), 10) || 0,
  611. bottom: parseInt(this.element.css("marginBottom"), 10) || 0
  612. };
  613. },
  614. _cacheHelperProportions: function() {
  615. this.helperProportions = {
  616. width: this.helper.outerWidth(),
  617. height: this.helper.outerHeight()
  618. };
  619. },
  620. _setContainment: function() {
  621. var t, n, r, i = this.options;
  622. if (!i.containment) {
  623. this.containment = null;
  624. return;
  625. }
  626. if (i.containment === "window") {
  627. this.containment = [ e(window).scrollLeft() - this.offset.relative.left - this.offset.parent.left, e(window).scrollTop() - this.offset.relative.top - this.offset.parent.top, e(window).scrollLeft() + e(window).width() - this.helperProportions.width - this.margins.left, e(window).scrollTop() + (e(window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top ];
  628. return;
  629. }
  630. if (i.containment === "document") {
  631. this.containment = [ 0, 0, e(document).width() - this.helperProportions.width - this.margins.left, (e(document).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top ];
  632. return;
  633. }
  634. if (i.containment.constructor === Array) {
  635. this.containment = i.containment;
  636. return;
  637. }
  638. i.containment === "parent" && (i.containment = this.helper[0].parentNode), n = e(i.containment), r = n[0];
  639. if (!r) return;
  640. t = n.css("overflow") !== "hidden", this.containment = [ (parseInt(n.css("borderLeftWidth"), 10) || 0) + (parseInt(n.css("paddingLeft"), 10) || 0), (parseInt(n.css("borderTopWidth"), 10) || 0) + (parseInt(n.css("paddingTop"), 10) || 0), (t ? Math.max(r.scrollWidth, r.offsetWidth) : r.offsetWidth) - (parseInt(n.css("borderRightWidth"), 10) || 0) - (parseInt(n.css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left - this.margins.right, (t ? Math.max(r.scrollHeight, r.offsetHeight) : r.offsetHeight) - (parseInt(n.css("borderBottomWidth"), 10) || 0) - (parseInt(n.css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top - this.margins.bottom ], this.relative_container = n;
  641. },
  642. _convertPositionTo: function(t, n) {
  643. n || (n = this.position);
  644. var r = t === "absolute" ? 1 : -1, i = this.cssPosition !== "absolute" || this.scrollParent[0] !== document && !!e.contains(this.scrollParent[0], this.offsetParent[0]) ? this.scrollParent : this.offsetParent;
  645. return this.offset.scroll || (this.offset.scroll = {
  646. top: i.scrollTop(),
  647. left: i.scrollLeft()
  648. }), {
  649. top: n.top + this.offset.relative.top * r + this.offset.parent.top * r - (this.cssPosition === "fixed" ? -this.scrollParent.scrollTop() : this.offset.scroll.top) * r,
  650. left: n.left + this.offset.relative.left * r + this.offset.parent.left * r - (this.cssPosition === "fixed" ? -this.scrollParent.scrollLeft() : this.offset.scroll.left) * r
  651. };
  652. },
  653. _generatePosition: function(t) {
  654. var n, r, i, s, o = this.options, u = this.cssPosition !== "absolute" || this.scrollParent[0] !== document && !!e.contains(this.scrollParent[0], this.offsetParent[0]) ? this.scrollParent : this.offsetParent, a = t.pageX, f = t.pageY;
  655. return this.offset.scroll || (this.offset.scroll = {
  656. top: u.scrollTop(),
  657. left: u.scrollLeft()
  658. }), this.originalPosition && (this.containment && (this.relative_container ? (r = this.relative_container.offset(), n = [ this.containment[0] + r.left, this.containment[1] + r.top, this.containment[2] + r.left, this.containment[3] + r.top ]) : n = this.containment, t.pageX - this.offset.click.left < n[0] && (a = n[0] + this.offset.click.left), t.pageY - this.offset.click.top < n[1] && (f = n[1] + this.offset.click.top), t.pageX - this.offset.click.left > n[2] && (a = n[2] + this.offset.click.left), t.pageY - this.offset.click.top > n[3] && (f = n[3] + this.offset.click.top)), o.grid && (i = o.grid[1] ? this.originalPageY + Math.round((f - this.originalPageY) / o.grid[1]) * o.grid[1] : this.originalPageY, f = n ? i - this.offset.click.top >= n[1] || i - this.offset.click.top > n[3] ? i : i - this.offset.click.top >= n[1] ? i - o.grid[1] : i + o.grid[1] : i, s = o.grid[0] ? this.originalPageX + Math.round((a - this.originalPageX) / o.grid[0]) * o.grid[0] : this.originalPageX, a = n ? s - this.offset.click.left >= n[0] || s - this.offset.click.left > n[2] ? s : s - this.offset.click.left >= n[0] ? s - o.grid[0] : s + o.grid[0] : s)), {
  659. top: f - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + (this.cssPosition === "fixed" ? -this.scrollParent.scrollTop() : this.offset.scroll.top),
  660. left: a - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + (this.cssPosition === "fixed" ? -this.scrollParent.scrollLeft() : this.offset.scroll.left)
  661. };
  662. },
  663. _clear: function() {
  664. this.helper.removeClass("ui-draggable-dragging"), this.helper[0] !== this.element[0] && !this.cancelHelperRemoval && this.helper.remove(), this.helper = null, this.cancelHelperRemoval = !1;
  665. },
  666. _trigger: function(t, n, r) {
  667. return r = r || this._uiHash(), e.ui.plugin.call(this, t, [ n, r ]), t === "drag" && (this.positionAbs = this._convertPositionTo("absolute")), e.Widget.prototype._trigger.call(this, t, n, r);
  668. },
  669. plugins: {},
  670. _uiHash: function() {
  671. return {
  672. helper: this.helper,
  673. position: this.position,
  674. originalPosition: this.originalPosition,
  675. offset: this.positionAbs
  676. };
  677. }
  678. }), e.ui.plugin.add("draggable", "connectToSortable", {
  679. start: function(t, n) {
  680. var r = e(this).data("ui-draggable"), i = r.options, s = e.extend({}, n, {
  681. item: r.element
  682. });
  683. r.sortables = [], e(i.connectToSortable).each(function() {
  684. var n = e.data(this, "ui-sortable");
  685. n && !n.options.disabled && (r.sortables.push({
  686. instance: n,
  687. shouldRevert: n.options.revert
  688. }), n.refreshPositions(), n._trigger("activate", t, s));
  689. });
  690. },
  691. stop: function(t, n) {
  692. var r = e(this).data("ui-draggable"), i = e.extend({}, n, {
  693. item: r.element
  694. });
  695. e.each(r.sortables, function() {
  696. this.instance.isOver ? (this.instance.isOver = 0, r.cancelHelperRemoval = !0, this.instance.cancelHelperRemoval = !1, this.shouldRevert && (this.instance.options.revert = this.shouldRevert), this.instance._mouseStop(t), this.instance.options.helper = this.instance.options._helper, r.options.helper === "original" && this.instance.currentItem.css({
  697. top: "auto",
  698. left: "auto"
  699. })) : (this.instance.cancelHelperRemoval = !1, this.instance._trigger("deactivate", t, i));
  700. });
  701. },
  702. drag: function(t, n) {
  703. var r = e(this).data("ui-draggable"), i = this;
  704. e.each(r.sortables, function() {
  705. var s = !1, o = this;
  706. this.instance.positionAbs = r.positionAbs, this.instance.helperProportions = r.helperProportions, this.instance.offset.click = r.offset.click, this.instance._intersectsWith(this.instance.containerCache) && (s = !0, e.each(r.sortables, function() {
  707. return this.instance.positionAbs = r.positionAbs, this.instance.helperProportions = r.helperProportions, this.instance.offset.click = r.offset.click, this !== o && this.instance._intersectsWith(this.instance.containerCache) && e.contains(o.instance.element[0], this.instance.element[0]) && (s = !1), s;
  708. })), s ? (this.instance.isOver || (this.instance.isOver = 1, this.instance.currentItem = e(i).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item", !0), this.instance.options._helper = this.instance.options.helper, this.instance.options.helper = function() {
  709. return n.helper[0];
  710. }, t.target = this.instance.currentItem[0], this.instance._mouseCapture(t, !0), this.instance._mouseStart(t, !0, !0), this.instance.offset.click.top = r.offset.click.top, this.instance.offset.click.left = r.offset.click.left, this.instance.offset.parent.left -= r.offset.parent.left - this.instance.offset.parent.left, this.instance.offset.parent.top -= r.offset.parent.top - this.instance.offset.parent.top, r._trigger("toSortable", t), r.dropped = this.instance.element, r.currentItem = r.element, this.instance.fromOutside = r), this.instance.currentItem && this.instance._mouseDrag(t)) : this.instance.isOver && (this.instance.isOver = 0, this.instance.cancelHelperRemoval = !0, this.instance.options.revert = !1, this.instance._trigger("out", t, this.instance._uiHash(this.instance)), this.instance._mouseStop(t, !0), this.instance.options.helper = this.instance.options._helper, this.instance.currentItem.remove(), this.instance.placeholder && this.instance.placeholder.remove(), r._trigger("fromSortable", t), r.dropped = !1);
  711. });
  712. }
  713. }), e.ui.plugin.add("draggable", "cursor", {
  714. start: function() {
  715. var t = e("body"), n = e(this).data("ui-draggable").options;
  716. t.css("cursor") && (n._cursor = t.css("cursor")), t.css("cursor", n.cursor);
  717. },
  718. stop: function() {
  719. var t = e(this).data("ui-draggable").options;
  720. t._cursor && e("body").css("cursor", t._cursor);
  721. }
  722. }), e.ui.plugin.add("draggable", "opacity", {
  723. start: function(t, n) {
  724. var r = e(n.helper), i = e(this).data("ui-draggable").options;
  725. r.css("opacity") && (i._opacity = r.css("opacity")), r.css("opacity", i.opacity);
  726. },
  727. stop: function(t, n) {
  728. var r = e(this).data("ui-draggable").options;
  729. r._opacity && e(n.helper).css("opacity", r._opacity);
  730. }
  731. }), e.ui.plugin.add("draggable", "scroll", {
  732. start: function() {
  733. var t = e(this).data("ui-draggable");
  734. t.scrollParent[0] !== document && t.scrollParent[0].tagName !== "HTML" && (t.overflowOffset = t.scrollParent.offset());
  735. },
  736. drag: function(t) {
  737. var n = e(this).data("ui-draggable"), r = n.options, i = !1;
  738. if (n.scrollParent[0] !== document && n.scrollParent[0].tagName !== "HTML") {
  739. if (!r.axis || r.axis !== "x") n.overflowOffset.top + n.scrollParent[0].offsetHeight - t.pageY < r.scrollSensitivity ? n.scrollParent[0].scrollTop = i = n.scrollParent[0].scrollTop + r.scrollSpeed : t.pageY - n.overflowOffset.top < r.scrollSensitivity && (n.scrollParent[0].scrollTop = i = n.scrollParent[0].scrollTop - r.scrollSpeed);
  740. if (!r.axis || r.axis !== "y") n.overflowOffset.left + n.scrollParent[0].offsetWidth - t.pageX < r.scrollSensitivity ? n.scrollParent[0].scrollLeft = i = n.scrollParent[0].scrollLeft + r.scrollSpeed : t.pageX - n.overflowOffset.left < r.scrollSensitivity && (n.scrollParent[0].scrollLeft = i = n.scrollParent[0].scrollLeft - r.scrollSpeed);
  741. } else {
  742. if (!r.axis || r.axis !== "x") t.pageY - e(document).scrollTop() < r.scrollSensitivity ? i = e(document).scrollTop(e(document).scrollTop() - r.scrollSpeed) : e(window).height() - (t.pageY - e(document).scrollTop()) < r.scrollSensitivity && (i = e(document).scrollTop(e(document).scrollTop() + r.scrollSpeed));
  743. if (!r.axis || r.axis !== "y") t.pageX - e(document).scrollLeft() < r.scrollSensitivity ? i = e(document).scrollLeft(e(document).scrollLeft() - r.scrollSpeed) : e(window).width() - (t.pageX - e(document).scrollLeft()) < r.scrollSensitivity && (i = e(document).scrollLeft(e(document).scrollLeft() + r.scrollSpeed));
  744. }
  745. i !== !1 && e.ui.ddmanager && !r.dropBehaviour && e.ui.ddmanager.prepareOffsets(n, t);
  746. }
  747. }), e.ui.plugin.add("draggable", "snap", {
  748. start: function() {
  749. var t = e(this).data("ui-draggable"), n = t.options;
  750. t.snapElements = [], e(n.snap.constructor !== String ? n.snap.items || ":data(ui-draggable)" : n.snap).each(function() {
  751. var n = e(this), r = n.offset();
  752. this !== t.element[0] && t.snapElements.push({
  753. item: this,
  754. width: n.outerWidth(),
  755. height: n.outerHeight(),
  756. top: r.top,
  757. left: r.left
  758. });
  759. });
  760. },
  761. drag: function(t, n) {
  762. var r, i, s, o, u, a, f, l, c, h, p = e(this).data("ui-draggable"), d = p.options, v = d.snapTolerance, m = n.offset.left, g = m + p.helperProportions.width, y = n.offset.top, b = y + p.helperProportions.height;
  763. for (c = p.snapElements.length - 1; c >= 0; c--) {
  764. u = p.snapElements[c].left, a = u + p.snapElements[c].width, f = p.snapElements[c].top, l = f + p.snapElements[c].height;
  765. if (g < u - v || m > a + v || b < f - v || y > l + v || !e.contains(p.snapElements[c].item.ownerDocument, p.snapElements[c].item)) {
  766. p.snapElements[c].snapping && p.options.snap.release && p.options.snap.release.call(p.element, t, e.extend(p._uiHash(), {
  767. snapItem: p.snapElements[c].item
  768. })), p.snapElements[c].snapping = !1;
  769. continue;
  770. }
  771. d.snapMode !== "inner" && (r = Math.abs(f - b) <= v, i = Math.abs(l - y) <= v, s = Math.abs(u - g) <= v, o = Math.abs(a - m) <= v, r && (n.position.top = p._convertPositionTo("relative", {
  772. top: f - p.helperProportions.height,
  773. left: 0
  774. }).top - p.margins.top), i && (n.position.top = p._convertPositionTo("relative", {
  775. top: l,
  776. left: 0
  777. }).top - p.margins.top), s && (n.position.left = p._convertPositionTo("relative", {
  778. top: 0,
  779. left: u - p.helperProportions.width
  780. }).left - p.margins.left), o && (n.position.left = p._convertPositionTo("relative", {
  781. top: 0,
  782. left: a
  783. }).left - p.margins.left)), h = r || i || s || o, d.snapMode !== "outer" && (r = Math.abs(f - y) <= v, i = Math.abs(l - b) <= v, s = Math.abs(u - m) <= v, o = Math.abs(a - g) <= v, r && (n.position.top = p._convertPositionTo("relative", {
  784. top: f,
  785. left: 0
  786. }).top - p.margins.top), i && (n.position.top = p._convertPositionTo("relative", {
  787. top: l - p.helperProportions.height,
  788. left: 0
  789. }).top - p.margins.top), s && (n.position.left = p._convertPositionTo("relative", {
  790. top: 0,
  791. left: u
  792. }).left - p.margins.left), o && (n.position.left = p._convertPositionTo("relative", {
  793. top: 0,
  794. left: a - p.helperProportions.width
  795. }).left - p.margins.left)), !p.snapElements[c].snapping && (r || i || s || o || h) && p.options.snap.snap && p.options.snap.snap.call(p.element, t, e.extend(p._uiHash(), {
  796. snapItem: p.snapElements[c].item
  797. })), p.snapElements[c].snapping = r || i || s || o || h;
  798. }
  799. }
  800. }), e.ui.plugin.add("draggable", "stack", {
  801. start: function() {
  802. var t, n = this.data("ui-draggable").options, r = e.makeArray(e(n.stack)).sort(function(t, n) {
  803. return (parseInt(e(t).css("zIndex"), 10) || 0) - (parseInt(e(n).css("zIndex"), 10) || 0);
  804. });
  805. if (!r.length) return;
  806. t = parseInt(e(r[0]).css("zIndex"), 10) || 0, e(r).each(function(n) {
  807. e(this).css("zIndex", t + n);
  808. }), this.css("zIndex", t + r.length);
  809. }
  810. }), e.ui.plugin.add("draggable", "zIndex", {
  811. start: function(t, n) {
  812. var r = e(n.helper), i = e(this).data("ui-draggable").options;
  813. r.css("zIndex") && (i._zIndex = r.css("zIndex")), r.css("zIndex", i.zIndex);
  814. },
  815. stop: function(t, n) {
  816. var r = e(this).data("ui-draggable").options;
  817. r._zIndex && e(n.helper).css("zIndex", r._zIndex);
  818. }
  819. });
  820. }(jQuery);
  821. } catch (i) {
  822. wx.jslog({
  823. src: "biz_common/jquery.ui/jquery.ui.draggable.js"
  824. }, i);
  825. }
  826. });define("common/qq/events.js", [], function(e, t, n) {
  827. try {
  828. var r = +(new Date);
  829. "use strict";
  830. function i(e) {
  831. e === !0 ? this.data = window.wx.events || {} : this.data = {};
  832. }
  833. i.prototype = {
  834. on: function(e, t) {
  835. return this.data[e] = this.data[e] || [], this.data[e].push(t), this;
  836. },
  837. off: function(e, t) {
  838. this.data[e] && this.data[e].length > 0 && (t && typeof t == "function" ? $.each(this.data[e], function(n, r) {
  839. r === t && this.data[e].splice(n, 1);
  840. }) : this.data[e] = []);
  841. },
  842. trigger: function(e) {
  843. var t = arguments;
  844. this.data[e] && this.data[e].length > 0 && $.each(this.data[e], function(e, n) {
  845. var r = n.apply(this, Array.prototype.slice.call(t, 1));
  846. if (r === !1) return !1;
  847. });
  848. }
  849. }, n.exports = function(e) {
  850. return new i(e);
  851. };
  852. } catch (s) {
  853. wx.jslog({
  854. src: "common/qq/events.js"
  855. }, s);
  856. }
  857. });define("common/lib/MockJax.js", [], function(e, t, n) {
  858. try {
  859. var r = +(new Date);
  860. (function(e) {
  861. function t(t) {
  862. window.DOMParser == undefined && window.ActiveXObject && (DOMParser = function() {}, DOMParser.prototype.parseFromString = function(e) {
  863. var t = new ActiveXObject("Microsoft.XMLDOM");
  864. return t.async = "false", t.loadXML(e), t;
  865. });
  866. try {
  867. var n = (new DOMParser).parseFromString(t, "text/xml");
  868. if (!e.isXMLDoc(n)) throw "Unable to parse XML";
  869. var r = e("parsererror", n);
  870. if (r.length == 1) throw "Error: " + e(n).text();
  871. return n;
  872. } catch (i) {
  873. var s = i.name == undefined ? i : i.name + ": " + i.message;
  874. return e(document).trigger("xmlParseError", [ s ]), undefined;
  875. }
  876. }
  877. function n(t, n, r) {
  878. (t.context ? e(t.context) : e.event).trigger(n, r);
  879. }
  880. function r(t, n) {
  881. var i = !0;
  882. return typeof n == "string" ? e.isFunction(t.test) ? t.test(n) : t == n : (e.each(t, function(s) {
  883. if (n[s] === undefined) return i = !1, i;
  884. typeof n[s] == "object" ? i = i && r(t[s], n[s]) : e.isFunction(t[s].test) ? i = i && t[s].test(n[s]) : i = i && t[s] == n[s];
  885. }), i);
  886. }
  887. function i(t, n) {
  888. if (e.isFunction(t)) return t(n);
  889. if (e.isFunction(t.url.test)) {
  890. if (!t.url.test(n.url)) return null;
  891. } else {
  892. var i = t.url.indexOf("*");
  893. if (t.url !== n.url && i === -1 || !(new RegExp(t.url.replace(/[-[\]{}()+?.,\\^$|#\s]/g, "\\$&").replace(/\*/g, ".+"))).test(n.url)) return null;
  894. }
  895. return t.data && n.data && !r(t.data, n.data) ? null : t && t.type && t.type.toLowerCase() != n.type.toLowerCase() ? null : t;
  896. }
  897. function s(n, r, i) {
  898. var s = function(s) {
  899. return function() {
  900. return function() {
  901. var s;
  902. this.status = n.status, this.statusText = n.statusText, this.readyState = 4, e.isFunction(n.response) && n.response(i), r.dataType == "json" && typeof n.responseText == "object" ? this.responseText = JSON.stringify(n.responseText) : r.dataType == "xml" ? typeof n.responseXML == "string" ? (this.responseXML = t(n.responseXML), this.responseText = n.responseXML) : this.responseXML = n.responseXML : this.responseText = n.responseText;
  903. if (typeof n.status == "number" || typeof n.status == "string") this.status = n.status;
  904. typeof n.statusText == "string" && (this.statusText = n.statusText), s = this.onreadystatechange || this.onload, e.isFunction(s) ? (n.isTimeout && (this.status = -1), s.call(this, n.isTimeout ? "timeout" : undefined)) : n.isTimeout && (this.status = -1);
  905. }.apply(s);
  906. };
  907. }(this);
  908. n.proxy ? v({
  909. global: !1,
  910. url: n.proxy,
  911. type: n.proxyType,
  912. data: n.data,
  913. dataType: r.dataType === "script" ? "text/plain" : r.dataType,
  914. complete: function(e) {
  915. n.responseXML = e.responseXML, n.responseText = e.responseText, n.status = e.status, n.statusText = e.statusText, this.responseTimer = setTimeout(s, n.responseTime || 0);
  916. }
  917. }) : r.async === !1 ? s() : this.responseTimer = setTimeout(s, n.responseTime || 50);
  918. }
  919. function o(t, n, r, i) {
  920. return t = e.extend(!0, {}, e.mockjaxSettings, t), typeof t.headers == "undefined" && (t.headers = {}), t.contentType && (t.headers["content-type"] = t.contentType), {
  921. status: t.status,
  922. statusText: t.statusText,
  923. readyState: 1,
  924. open: function() {},
  925. send: function() {
  926. i.fired = !0, s.call(this, t, n, r);
  927. },
  928. abort: function() {
  929. clearTimeout(this.responseTimer);
  930. },
  931. setRequestHeader: function(e, n) {
  932. t.headers[e] = n;
  933. },
  934. getResponseHeader: function(e) {
  935. if (t.headers && t.headers[e]) return t.headers[e];
  936. if (e.toLowerCase() == "last-modified") return t.lastModified || (new Date).toString();
  937. if (e.toLowerCase() == "etag") return t.etag || "";
  938. if (e.toLowerCase() == "content-type") return t.contentType || "text/plain";
  939. },
  940. getAllResponseHeaders: function() {
  941. var n = "";
  942. return e.each(t.headers, function(e, t) {
  943. n += e + ": " + t + "\n";
  944. }), n;
  945. }
  946. };
  947. }
  948. function u(e, t, n) {
  949. a(e), e.dataType = "json";
  950. if (e.data && y.test(e.data) || y.test(e.url)) {
  951. l(e, t, n);
  952. var r = /^(\w+:)?\/\/([^\/?#]+)/, i = r.exec(e.url), s = i && (i[1] && i[1] !== location.protocol || i[2] !== location.host);
  953. e.dataType = "script";
  954. if (e.type.toUpperCase() === "GET" && s) {
  955. var o = f(e, t, n);
  956. return o ? o : !0;
  957. }
  958. }
  959. return null;
  960. }
  961. function a(e) {
  962. if (e.type.toUpperCase() === "GET") y.test(e.url) || (e.url += (/\?/.test(e.url) ? "&" : "?") + (e.jsonp || "callback") + "=?"); else if (!e.data || !y.test(e.data)) e.data = (e.data ? e.data + "&" : "") + (e.jsonp || "callback") + "=?";
  963. }
  964. function f(t, n, r) {
  965. var i = r && r.context || t, s = null;
  966. return n.response && e.isFunction(n.response) ? n.response(r) : typeof n.responseText == "object" ? e.globalEval("(" + JSON.stringify(n.responseText) + ")") : e.globalEval("(" + n.responseText + ")"), c(t, i, n), h(t, i, n), e.Deferred && (s = new e.Deferred, typeof n.responseText == "object" ? s.resolveWith(i, [ n.responseText ]) : s.resolveWith(i, [ e.parseJSON(n.responseText) ])), s;
  967. }
  968. function l(e, t, n) {
  969. var r = n && n.context || e, i = e.jsonpCallback || "jsonp" + b++;
  970. e.data && (e.data = (e.data + "").replace(y, "=" + i + "$1")), e.url = e.url.replace(y, "=" + i + "$1"), window[i] = window[i] || function(n) {
  971. data = n, c(e, r, t), h(e, r, t), window[i] = undefined;
  972. try {
  973. delete window[i];
  974. } catch (s) {}
  975. head && head.removeChild(script);
  976. };
  977. }
  978. function c(e, t, r) {
  979. e.success && e.success.call(t, r.responseText || "", status, {}), e.global && n(e, "ajaxSuccess", [ {}, e ]);
  980. }
  981. function h(t, r) {
  982. t.complete && t.complete.call(r, {}, status), t.global && n("ajaxComplete", [ {}, t ]), t.global && !--e.active && e.event.trigger("ajaxStop");
  983. }
  984. function p(t, n) {
  985. var r, s, a;
  986. typeof t == "object" ? (n = t, t = undefined) : n.url = t, s = e.extend(!0, {}, e.ajaxSettings, n);
  987. for (var f = 0; f < m.length; f++) {
  988. if (!m[f]) continue;
  989. a = i(m[f], s);
  990. if (!a) continue;
  991. g.push(s), e.mockjaxSettings.log(a, s);
  992. if (s.dataType === "jsonp") if (r = u(s, a, n)) return r;
  993. return a.cache = s.cache, a.timeout = s.timeout, a.global = s.global, d(a, n), function(t, n, i, s) {
  994. r = v.call(e, e.extend(!0, {}, i, {
  995. xhr: function() {
  996. return o(t, n, i, s);
  997. }
  998. }));
  999. }(a, s, n, m[f]), r;
  1000. }
  1001. return v.apply(e, [ n ]);
  1002. }
  1003. function d(e, t) {
  1004. if (!(e.url instanceof RegExp)) return;
  1005. if (!e.hasOwnProperty("urlParams")) return;
  1006. var n = e.url.exec(t.url);
  1007. if (n.length === 1) return;
  1008. n.shift();
  1009. var r = 0, i = n.length, s = e.urlParams.length, o = Math.min(i, s), u = {};
  1010. for (r; r < o; r++) {
  1011. var a = e.urlParams[r];
  1012. u[a] = n[r];
  1013. }
  1014. t.urlParams = u;
  1015. }
  1016. var v = e.ajax, m = [], g = [], y = /=\?(&|$)/, b = (new Date).getTime();
  1017. e.extend({
  1018. ajax: p
  1019. }), e.mockjaxSettings = {
  1020. log: function(t, n) {
  1021. if (t.logging === !1 || typeof t.logging == "undefined" && e.mockjaxSettings.logging === !1) return;
  1022. if (window.console && console.log) {
  1023. var r = "MOCK " + n.type.toUpperCase() + ": " + n.url, i = e.extend({}, n);
  1024. if (typeof console.log == "function") console.log(r, i); else try {
  1025. console.log(r + " " + JSON.stringify(i));
  1026. } catch (s) {
  1027. console.log(r);
  1028. }
  1029. }
  1030. },
  1031. logging: !0,
  1032. status: 200,
  1033. statusText: "OK",
  1034. responseTime: 500,
  1035. isTimeout: !1,
  1036. contentType: "text/plain",
  1037. response: "",
  1038. responseText: "",
  1039. responseXML: "",
  1040. proxy: "",
  1041. proxyType: "GET",
  1042. lastModified: null,
  1043. etag: "",
  1044. headers: {
  1045. etag: "IJF@H#@923uf8023hFO@I#H#",
  1046. "content-type": "text/plain"
  1047. }
  1048. }, e.mockjax = function(e) {
  1049. var t = m.length;
  1050. return m[t] = e, t;
  1051. }, e.mockjaxClear = function(e) {
  1052. arguments.length == 1 ? m[e] = null : m = [], g = [];
  1053. }, e.mockjax.handler = function(e) {
  1054. if (arguments.length == 1) return m[e];
  1055. }, e.mockjax.mockedAjaxCalls = function() {
  1056. return g;
  1057. };
  1058. })(jQuery);
  1059. } catch (i) {
  1060. wx.jslog({
  1061. src: "common/lib/MockJax.js"
  1062. }, i);
  1063. }
  1064. });define("common/wx/cgiReport.js", [ "common/wx/Tips.js" ], function(e, t, n) {
  1065. try {
  1066. var r = +(new Date);
  1067. "use strict";
  1068. var i = e("common/wx/Tips.js");
  1069. t.error = function(e, t) {
  1070. var n = 11;
  1071. switch (e) {
  1072. case "timeout":
  1073. n = 7;
  1074. break;
  1075. case "error":
  1076. n = 8;
  1077. break;
  1078. case "notmodified":
  1079. n = 9;
  1080. break;
  1081. case "parsererror":
  1082. n = 10;
  1083. }
  1084. t.data.lang && delete t.data.lang, t.data.random && delete t.data.random, t.data.f && delete t.data.f, t.data.ajax && delete t.data.ajax, t.data.token && delete t.data.token, $.ajax({
  1085. url: "/misc/jslog?1=1",
  1086. data: {
  1087. content: "[fakeid={uin}] [xhr] [url={url}] [param={param}] [info={info}] [useragent={userAgent}] [page={page}]".format({
  1088. uin: wx.data.uin,
  1089. useragent: window.navigator.userAgent,
  1090. page: location.href,
  1091. url: t.url,
  1092. param: $.param(t.data).substr(0, 50),
  1093. info: e
  1094. }),
  1095. id: n,
  1096. level: "error"
  1097. },
  1098. type: "POST"
  1099. }), $.ajax({
  1100. url: "/misc/jslog?1=1",
  1101. data: {
  1102. content: "[fakeid={uin}] [xhr] [url={url}] [param={param}] [info={info}] [useragent={userAgent}] [page={page}]".format({
  1103. uin: wx.data.uin,
  1104. useragent: window.navigator.userAgent,
  1105. page: location.href,
  1106. url: t.url,
  1107. param: $.param(t.data).substr(0, 50),
  1108. info: e
  1109. }),
  1110. id: 6,
  1111. level: "error"
  1112. },
  1113. type: "POST"
  1114. }), e == "timeout" && i.err("你的网络环境较差,请稍后重试");
  1115. };
  1116. } catch (s) {
  1117. wx.jslog({
  1118. src: "common/wx/cgiReport.js"
  1119. }, s);
  1120. }
  1121. });define("common/qq/mask.js", [ "biz_web/lib/spin.js" ], function(e, t, n) {
  1122. try {
  1123. var r = +(new Date);
  1124. "use strict", e("biz_web/lib/spin.js");
  1125. var i = 0, s = '<div class="mask"></div>';
  1126. function o(e) {
  1127. if (this.mask) this.mask.show(); else {
  1128. var t = "body";
  1129. e && !!e.parent && (t = $(e.parent)), this.mask = $(s).appendTo(t), this.mask.id = "wxMask_" + ++i, this.mask.spin("flower");
  1130. }
  1131. if (e) {
  1132. if (e.spin === !1) return this;
  1133. this.mask.spin(e.spin || "flower");
  1134. }
  1135. return this;
  1136. }
  1137. o.prototype = {
  1138. show: function() {
  1139. this.mask.show();
  1140. },
  1141. hide: function() {
  1142. this.mask.hide();
  1143. },
  1144. remove: function() {
  1145. this.mask.remove();
  1146. }
  1147. }, t.show = function(e) {
  1148. return new o(e);
  1149. }, t.hide = function() {
  1150. $(".mask").hide();
  1151. }, t.remove = function() {
  1152. $(".mask").remove();
  1153. };
  1154. } catch (u) {
  1155. wx.jslog({
  1156. src: "common/qq/mask.js"
  1157. }, u);
  1158. }
  1159. });define("tpl/popup.html.js", [], function(e, t, n) {
  1160. return '<div class="dialog_wrp {className}" style="{if width}width:{width}px;{/if}{if height}height:{height}px;{/if}">\n <div class="dialog">\n <div class="dialog_hd">\n <h3>{title}</h3>\n <a href="javascript:;" onclick="return false" class="icon16_opr closed pop_closed">关闭</a>\n </div>\n <div class="dialog_bd">{=content}</div>\n {if buttons && buttons.length}\n <div class="dialog_ft">\n {each buttons as bt index}\n <span class="btn {bt.type} btn_input js_btn_p"><button type="button" class="js_btn" data-index="{index}">{bt.text}</button></span>\n {/each}\n </div>\n {/if}\n </div>\n</div>{if mask}<div class="mask"><iframe frameborder="0" style="filter:progid:DXImageTransform.Microsoft.Alpha(opacity:0);position:absolute;top:0px;left:0px;width:100%;height:100%;" src="about:blank"></iframe></div>{/if}\n';
  1161. });define("common/wx/widgetBridge.js", [], function(e, t, n) {
  1162. try {
  1163. var r = +(new Date);
  1164. "use strict", $.widgetBridge || ($.widgetBridge = function(e, t) {
  1165. var n = e, r = n.split("."), e = r.length > 1 ? r[1] : r[0];
  1166. $.fn[e] = function(r) {
  1167. var i = typeof r == "string", s = [].slice.call(arguments, 1), o = this;
  1168. r = r || {};
  1169. if (i) {
  1170. var u;
  1171. return r.indexOf("_") !== 0 && this.each(function() {
  1172. var t = $.data(this, n);
  1173. if (!t) return $.error("cannot call methods on " + e + " prior to initialization; " + "attempted to call method '" + r + "'");
  1174. if (r === "instance") return u = t, !1;
  1175. if (r === "option") return u = t.options, !1;
  1176. u || (u = (t[r] || jQuery.noop).apply(t, s)), r === "destroy" && (t.elements = null);
  1177. }), u;
  1178. }
  1179. var a = this;
  1180. return this.each(function() {
  1181. var e = this, i = $.data(this, n);
  1182. if (!i) {
  1183. i = $.extend(!0, {}, t), i.destroy || (i.destroy = function() {
  1184. $.removeData(e, n);
  1185. }), i.options = $.extend(!0, i.options || {}, r), i.element = $(this), i.elements = a, i._create && (o = i._create.call(i, r));
  1186. var s = o && o.length && o.get(0) || this;
  1187. $.data(s, n, i);
  1188. }
  1189. }), o;
  1190. };
  1191. });
  1192. } catch (i) {
  1193. wx.jslog({
  1194. src: "common/wx/widgetBridge.js"
  1195. }, i);
  1196. }
  1197. });define("common/wx/pagebar.js", [ "widget/pagination.css", "tpl/pagebar.html.js", "common/qq/Class.js", "common/wx/Tips.js" ], function(e, t, n) {
  1198. try {
  1199. var r = +(new Date);
  1200. "use strict";
  1201. var i, s, o, u, a, f, l, c = e("widget/pagination.css"), h = e("tpl/pagebar.html.js"), p = e("common/qq/Class.js"), d = e("common/wx/Tips.js");
  1202. l = template.compile(h), i = t, s = {
  1203. first: "首页",
  1204. last: "末页",
  1205. prev: "上页",
  1206. next: "下页",
  1207. startPage: 1,
  1208. initShowPage: 1,
  1209. perPage: 10,
  1210. startRange: 1,
  1211. midRange: 3,
  1212. endRange: 1,
  1213. totalItemsNum: 0,
  1214. container: "",
  1215. callback: null,
  1216. isNavHide: !1,
  1217. isSimple: !0
  1218. };
  1219. var v = function(e, t, n) {
  1220. var r;
  1221. return r = e + (t - 1), r = r > n ? n : r, r;
  1222. }, m = function(e, t, n) {
  1223. var r;
  1224. return n % 2 === 0 ? r = t - (n / 2 - 1) : r = t - (n - 1) / 2, r = r < e ? e : r, r;
  1225. }, g = function(e, t, n) {
  1226. var r;
  1227. return t % 2 === 0 ? r = parseInt(e) + t / 2 : r = parseInt(e) + (t - 1) / 2, r = r > n ? n : r, r;
  1228. }, y = function(e, t, n) {
  1229. var r;
  1230. return r = t - (n - 1), r = r < e ? e : r, r;
  1231. }, b = function(e, t) {
  1232. if (t[e] && isNaN(t[e])) throw new Error("Invalid arguments: " + e + " should be a number");
  1233. }, w = function(e) {
  1234. b("perPage", e), b("totalItemsNum", e), b("startPage", e), b("startRange", e), b("midRange", e), b("endRange", e), b("initShowPage", e);
  1235. if (e.callback !== undefined && e.callback !== null && !$.isFunction(e.callback)) throw new Error("Invalid arguments: callback should be a function");
  1236. }, E = function(e, t, n) {
  1237. var r = e.container.find(".page_" + n);
  1238. if (typeof t == "string") {
  1239. var i = $(t);
  1240. i.length !== 0 && (r = i);
  1241. } else {
  1242. if (t !== !1) throw new Error("Invalid Paramter: '" + n + "' should be a string or false");
  1243. r.hide();
  1244. }
  1245. return r;
  1246. }, S = p.declare({
  1247. init: function(e) {
  1248. if (!e.totalItemsNum) return;
  1249. var t;
  1250. w(e), t = $.extend(!0, {}, s, e), this._init(t);
  1251. if (t.initShowPage < t.startPage) throw new Error("Invalid arguments: initShowPage should be larger than startPage");
  1252. if (t.initShowPage > t.endPage) throw new Error("Invalid arguments: initShowPage should be smaller than endPage");
  1253. this.paginate();
  1254. },
  1255. _init: function(e) {
  1256. var t, n, r, i, o, u;
  1257. this.currentPage = e.initShowPage, this._isNextButtonShow = !0, this._isPrevButtonShow = !0, this.uid = "wxPagebar_" + +(new Date), this.initEventCenter(), this.optionsForTemplate = {}, $.extend(this, e), this.container = $(e.container), this.optionsForTemplate.isSimple = e.isSimple, this.optionsForTemplate.firstButtonText = $(e.first).length === 0 ? e.first : s.first, this.optionsForTemplate.lastButtonText = $(e.last).length === 0 ? e.last : s.last, this.optionsForTemplate.nextButtonText = $(e.next).length === 0 ? e.next : s.next, this.optionsForTemplate.prevButtonText = $(e.prev).length === 0 ? e.prev : s.prev, this.optionsForTemplate.isNavHide = e.isNavHide, this.generatePages(parseInt(this.totalItemsNum)), this.gapForStartRange = this.container.find(".gap_prev"), this.gapForEndRange = this.container.find(".gap_next"), this.firstButton = E(this, e.first, "first"), this.lastButton = E(this, e.last, "last"), this.prevButton = E(this, e.prev, "prev"), this.nextButton = E(this, e.next, "next"), this.bindEvent();
  1258. },
  1259. initEventCenter: function() {
  1260. this.eventCenter = {
  1261. eventList: [],
  1262. bind: function(e, t) {
  1263. this.eventList[e] || (this.eventList[e] = []), this.eventList[e].push(t);
  1264. },
  1265. trigger: function(e) {
  1266. var t, n, r;
  1267. this.eventList[e] || (this.eventList[e] = []), t = this.eventList[e];
  1268. for (var i = 0; i < t.length; i++) {
  1269. r = Array.prototype.slice.call(arguments, 1);
  1270. if (t[i].apply(this, r) === !1) return !1;
  1271. }
  1272. },
  1273. unbind: function(e, t) {
  1274. if (!this.eventList) throw new Error("The eventList was undefined");
  1275. if (!this.eventList[e]) throw new Error("The event type " + e + " was not found");
  1276. if (t === undefined) this.eventList[e] = []; else {
  1277. var n = this.eventList[e], r = n.length;
  1278. for (var i = 0; i < r; i++) if (n[i] === t) {
  1279. n.splice(i, 1);
  1280. break;
  1281. }
  1282. }
  1283. }
  1284. };
  1285. },
  1286. generatePages: function(e) {
  1287. var t, n, r, i, s, o, u;
  1288. this.pageNum = Math.ceil(e / this.perPage), this.endPage = this.startPage + this.pageNum - 1, this.gapForStartRange = null, this.gapForEndRange = null, this.optionsForTemplate.startRange = [], this.optionsForTemplate.midRange = [], this.optionsForTemplate.endRange = [], n = v(this.startPage, this.startRange, this.endPage), r = m(this.startPage, this.currentPage, this.midRange), i = g(this.currentPage, this.midRange, this.endPage), s = y(this.startPage, this.endPage, this.endRange), n >= s && (s = n + 1);
  1289. for (t = this.startPage; t <= n; t += 1) this.optionsForTemplate.startRange.push(t);
  1290. for (var a = 0, t = r; a < this.midRange; a += 1, t += 1) this.optionsForTemplate.midRange.push(t);
  1291. for (t = s; t <= this.endPage; t += 1) this.optionsForTemplate.endRange.push(t);
  1292. this.optionsForTemplate.endPage = this.endPage, this.optionsForTemplate.initShowPage = this.initShowPage, o = l(this.optionsForTemplate), this.container.html(o), this.pageNum == 1 ? this.container.hide() : this.container.show(), this.pages = this.container.find(".page_nav"), this.midPages = this.container.find(".js_mid"), this.labels = this.container.find(".page_num label"), this.container.find(".pagination").attr("id", this.uid);
  1293. },
  1294. paginate: function() {
  1295. var e, t, n, r, i, s, o, u, a, f, l;
  1296. if (this.isSimple === !0) for (var c = 0, h = this.labels.length; c < h; c++) c % 2 === 0 && $(this.labels[c]).html(this.currentPage); else {
  1297. n = v(this.startPage, this.startRange, this.endPage), o = m(this.startPage, this.currentPage, this.midRange), u = g(this.currentPage, this.midRange, this.endPage), a = y(this.startPage, this.endPage, this.endRange), n >= a && (a = n + 1), n >= o && (o = n + 1), u >= a && (u = a - 1), this.pages.show(), this.pages.removeClass("current"), l = parseInt(this.midPages.length / this.midRange);
  1298. for (var c = 0, h = l; c < h; c++) {
  1299. s = 0;
  1300. for (e = o; e <= u; e += 1) i = this.midRange * c + (e - o), f = $(this.midPages[i]), f.html(e), s += 1, e == this.currentPage && f.addClass("current");
  1301. i = this.midRange * c + s;
  1302. for (; s < this.midRange; s += 1) f = $(this.midPages[i]), f.hide(), f.removeClass("current"), i += 1;
  1303. }
  1304. for (var c = 0, h = this.pages.length; c <= h; c++) r = $(this.pages[c]), e = parseInt(r.html()), e === parseInt(this.currentPage) && r.addClass("current");
  1305. n + 1 < o ? this.gapForStartRange.show() : this.gapForStartRange.hide(), u + 1 < a ? this.gapForEndRange.show() : this.gapForEndRange.hide();
  1306. if (this.isNavHide) {
  1307. for (var c = this.startPage; c <= this.endPage; c += 1) this.pages.hide();
  1308. this.gapForStartRange.hide(), this.gapForEndRange.hide();
  1309. }
  1310. }
  1311. this.checkButtonShown();
  1312. },
  1313. destroy: function() {
  1314. this.container.off("click", "#" + this.uid + " a.page_nav"), this.container.off("click", "#" + this.uid + " a.page_go"), this.container.off("keydown", "#" + this.uid + " .goto_area input"), this.nextButton.off("click"), this.prevButton.off("click"), this.firstButton.off("click"), this.lastButton.off("click");
  1315. },
  1316. bindEvent: function() {
  1317. this.container.on("click", "#" + this.uid + " a.page_nav", this.proxy(function(e) {
  1318. var t = $(e.target);
  1319. return t.hasClass("current") ? !1 : (this.clickPage(parseInt(t.html())), !1);
  1320. }, this)), this.nextButton.on("click", this.proxy(function(e) {
  1321. var t = $(e.target);
  1322. return this.nextPage(), !1;
  1323. }, this)), this.prevButton.on("click", this.proxy(function(e) {
  1324. var t = $(e.target);
  1325. return this.prevPage(), !1;
  1326. }, this)), this.firstButton.on("click", this.proxy(function(e) {
  1327. var t = $(e.target);
  1328. return this.goFirstPage(), !1;
  1329. }, this)), this.lastButton.on("click", this.proxy(function(e) {
  1330. var t = $(e.target);
  1331. return this.goLastPage(), !1;
  1332. }, this)), this.container.on("click", "#" + this.uid + " a.page_go", this.proxy(function(e) {
  1333. var t = $(e.target).prev();
  1334. return this.goPage(t.val()), !1;
  1335. }, this)), this.container.on("keydown", "#" + this.uid + " .goto_area input", this.proxy(function(e) {
  1336. wx.isHotkey(e, "enter") && this.container.find("a.page_go").click();
  1337. }, this));
  1338. },
  1339. on: function(e, t) {
  1340. this.eventCenter.bind(e, this.proxy(t, this));
  1341. },
  1342. callbackFunc: function(e) {
  1343. var t = {
  1344. currentPage: this.currentPage,
  1345. perPage: this.perPage,
  1346. count: this.pageNum
  1347. };
  1348. if ($.isFunction(this.callback) && this.callback(t) === !1) return !1;
  1349. if (this.eventCenter.trigger(e, t) === !1) return !1;
  1350. this.paginate();
  1351. },
  1352. proxy: function(e, t) {
  1353. return function() {
  1354. var n = Array.prototype.slice.call(arguments, 0);
  1355. return e.apply(t, n);
  1356. };
  1357. },
  1358. nextPage: function() {
  1359. this.currentPage !== this.endPage && (this.currentPage++, this.callbackFunc("next") === !1 && this.currentPage--);
  1360. },
  1361. prevPage: function() {
  1362. this.currentPage !== this.startPage && (this.currentPage--, this.callbackFunc("prev") === !1 && this.currentPage++);
  1363. },
  1364. goFirstPage: function() {
  1365. var e = this.currentPage;
  1366. this.currentPage = this.startPage, this.callbackFunc("goFirst") === !1 && (this.currentPage = e);
  1367. },
  1368. goLastPage: function() {
  1369. var e = this.currentPage;
  1370. this.currentPage = this.endPage, this.callbackFunc("goLast") === !1 && (this.currentPage = e);
  1371. },
  1372. checkButtonShown: function() {
  1373. +this.currentPage === +this.startPage ? this.hidePrevButton() : this.showPrevButton(), +this.currentPage === +this.endPage ? this.hideNextButton() : this.showNextButton();
  1374. },
  1375. goPage: function(e) {
  1376. var t = this.currentPage;
  1377. if (e === this.currentPage) return !1;
  1378. if (isNaN(e)) return d.err("请输入正确的页码"), !1;
  1379. if (e === "") return !1;
  1380. if (e < this.startPage) return d.err("请输入正确的页码"), !1;
  1381. if (e > this.endPage) return d.err("请输入正确的页码"), !1;
  1382. this.currentPage = e, this.callbackFunc("go") === !1 && (this.currentPage = t);
  1383. },
  1384. clickPage: function(e) {
  1385. var t = this.currentPage;
  1386. isNaN(e) && (e = this.startPage), e < this.startPage ? this.currentPage = this.startPage : e > this.endPage ? this.currentPage = this.endPage : this.currentPage = e, this.callbackFunc("click") === !1 && (this.currentPage = t);
  1387. },
  1388. showNextButton: function() {
  1389. this.nextButton && this._isNextButtonShow === !1 && (this.nextButton.show(), this._isNextButtonShow = !0);
  1390. },
  1391. showPrevButton: function() {
  1392. this.prevButton && this._isPrevButtonShow === !1 && (this.prevButton.show(), this._isPrevButtonShow = !0);
  1393. },
  1394. hideNextButton: function() {
  1395. this.nextButton && this._isNextButtonShow === !0 && (this.nextButton.hide(), this._isNextButtonShow = !1);
  1396. },
  1397. hidePrevButton: function() {
  1398. this.prevButton && this._isPrevButtonShow === !0 && (this.prevButton.hide(), this._isPrevButtonShow = !1);
  1399. }
  1400. });
  1401. return t = S;
  1402. } catch (x) {
  1403. wx.jslog({
  1404. src: "common/wx/pagebar.js"
  1405. }, x);
  1406. }
  1407. });define("biz_common/cookie.js", [], function(e, t, n) {
  1408. var r = {};
  1409. return r.set = function(e, t, n, r) {
  1410. n = n || 30;
  1411. var i = new Date;
  1412. i.setTime(i.getTime() + n * 24 * 60 * 60 * 1e3);
  1413. if (!r) r = ""; else {
  1414. var s = [];
  1415. $.each(r, function(e, t) {
  1416. s.push(";" + e + "=" + t);
  1417. }), r = s.join("");
  1418. }
  1419. document.cookie = e + "=" + escape(t) + ";expires=" + i.toGMTString() + r;
  1420. }, r.get = function(e) {
  1421. var t = new RegExp([ "(^|;|\\s+)", e.replace(/([\^\.\[\$\(\)\|\*\+\?\{\\])/ig, "\\$1"), "=([^;]*);?" ].join(""));
  1422. if (t.test(document.cookie)) try {
  1423. return decodeURIComponent(RegExp.$2);
  1424. } catch (n) {
  1425. return RegExp.$2;
  1426. }
  1427. }, r;
  1428. });// moment.js
  1429. define("biz_common/moment.js", [], function(e, t, n) {
  1430. try {
  1431. var r = +(new Date), i, s = "2.0.0", o = Math.round, u, a = {}, f = typeof n != "undefined" && n.exports, l = /^\/?Date\((\-?\d+)/i, c = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|X|zz?|ZZ?|.)/g, h = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g, p = /([0-9a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)/gi, d = /\d\d?/, v = /\d{1,3}/, m = /\d{3}/, g = /\d{1,4}/, y = /[+\-]?\d{1,6}/, b = /[0-9]*[a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF]+\s*?[\u0600-\u06FF]+/i, w = /Z|[\+\-]\d\d:?\d\d/i, E = /T/i, S = /[\+\-]?\d+(\.\d{1,3})?/, x = /^\s*\d{4}-\d\d-\d\d((T| )(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?/, T = "YYYY-MM-DDTHH:mm:ssZ", N = [ [ "HH:mm:ss.S", /(T| )\d\d:\d\d:\d\d\.\d{1,3}/ ], [ "HH:mm:ss", /(T| )\d\d:\d\d:\d\d/ ], [ "HH:mm", /(T| )\d\d:\d\d/ ], [ "HH", /(T| )\d\d/ ] ], C = /([\+\-]|\d\d)/gi, k = "Month|Date|Hours|Minutes|Seconds|Milliseconds".split("|"), L = {
  1432. Milliseconds: 1,
  1433. Seconds: 1e3,
  1434. Minutes: 6e4,
  1435. Hours: 36e5,
  1436. Days: 864e5,
  1437. Months: 2592e6,
  1438. Years: 31536e6
  1439. }, A = {}, O = "DDD w W M D d".split(" "), M = "M D H h m s w W".split(" "), _ = {
  1440. M: function() {
  1441. return this.month() + 1;
  1442. },
  1443. MMM: function(e) {
  1444. return this.lang().monthsShort(this, e);
  1445. },
  1446. MMMM: function(e) {
  1447. return this.lang().months(this, e);
  1448. },
  1449. D: function() {
  1450. return this.date();
  1451. },
  1452. DDD: function() {
  1453. return this.dayOfYear();
  1454. },
  1455. d: function() {
  1456. return this.day();
  1457. },
  1458. dd: function(e) {
  1459. return this.lang().weekdaysMin(this, e);
  1460. },
  1461. ddd: function(e) {
  1462. return this.lang().weekdaysShort(this, e);
  1463. },
  1464. dddd: function(e) {
  1465. return this.lang().weekdays(this, e);
  1466. },
  1467. w: function() {
  1468. return this.week();
  1469. },
  1470. W: function() {
  1471. return this.isoWeek();
  1472. },
  1473. YY: function() {
  1474. return q(this.year() % 100, 2);
  1475. },
  1476. YYYY: function() {
  1477. return q(this.year(), 4);
  1478. },
  1479. YYYYY: function() {
  1480. return q(this.year(), 5);
  1481. },
  1482. a: function() {
  1483. return this.lang().meridiem(this.hours(), this.minutes(), !0);
  1484. },
  1485. A: function() {
  1486. return this.lang().meridiem(this.hours(), this.minutes(), !1);
  1487. },
  1488. H: function() {
  1489. return this.hours();
  1490. },
  1491. h: function() {
  1492. return this.hours() % 12 || 12;
  1493. },
  1494. m: function() {
  1495. return this.minutes();
  1496. },
  1497. s: function() {
  1498. return this.seconds();
  1499. },
  1500. S: function() {
  1501. return ~~(this.milliseconds() / 100);
  1502. },
  1503. SS: function() {
  1504. return q(~~(this.milliseconds() / 10), 2);
  1505. },
  1506. SSS: function() {
  1507. return q(this.milliseconds(), 3);
  1508. },
  1509. Z: function() {
  1510. var e = -this.zone(), t = "+";
  1511. return e < 0 && (e = -e, t = "-"), t + q(~~(e / 60), 2) + ":" + q(~~e % 60, 2);
  1512. },
  1513. ZZ: function() {
  1514. var e = -this.zone(), t = "+";
  1515. return e < 0 && (e = -e, t = "-"), t + q(~~(10 * e / 6), 4);
  1516. },
  1517. X: function() {
  1518. return this.unix();
  1519. }
  1520. };
  1521. function D(e, t) {
  1522. return function(n) {
  1523. return q(e.call(this, n), t);
  1524. };
  1525. }
  1526. function P(e) {
  1527. return function(t) {
  1528. return this.lang().ordinal(e.call(this, t));
  1529. };
  1530. }
  1531. while (O.length) u = O.pop(), _[u + "o"] = P(_[u]);
  1532. while (M.length) u = M.pop(), _[u + u] = D(_[u], 2);
  1533. _.DDDD = D(_.DDD, 3);
  1534. function H() {}
  1535. function B(e) {
  1536. F(this, e);
  1537. }
  1538. function j(e) {
  1539. var t = this._data = {}, n = e.years || e.year || e.y || 0, r = e.months || e.month || e.M || 0, i = e.weeks || e.week || e.w || 0, s = e.days || e.day || e.d || 0, o = e.hours || e.hour || e.h || 0, u = e.minutes || e.minute || e.m || 0, a = e.seconds || e.second || e.s || 0, f = e.milliseconds || e.millisecond || e.ms || 0;
  1540. this._milliseconds = f + a * 1e3 + u * 6e4 + o * 36e5, this._days = s + i * 7, this._months = r + n * 12, t.milliseconds = f % 1e3, a += I(f / 1e3), t.seconds = a % 60, u += I(a / 60), t.minutes = u % 60, o += I(u / 60), t.hours = o % 24, s += I(o / 24), s += i * 7, t.days = s % 30, r += I(s / 30), t.months = r % 12, n += I(r / 12), t.years = n;
  1541. }
  1542. function F(e, t) {
  1543. for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
  1544. return e;
  1545. }
  1546. function I(e) {
  1547. return e < 0 ? Math.ceil(e) : Math.floor(e);
  1548. }
  1549. function q(e, t) {
  1550. var n = e + "";
  1551. while (n.length < t) n = "0" + n;
  1552. return n;
  1553. }
  1554. function R(e, t, n) {
  1555. var r = t._milliseconds, i = t._days, s = t._months, o;
  1556. r && e._d.setTime(+e + r * n), i && e.date(e.date() + i * n), s && (o = e.date(), e.date(1).month(e.month() + s * n).date(Math.min(o, e.daysInMonth())));
  1557. }
  1558. function U(e) {
  1559. return Object.prototype.toString.call(e) === "[object Array]";
  1560. }
  1561. function z(e, t) {
  1562. var n = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), i = 0, s;
  1563. for (s = 0; s < n; s++) ~~e[s] !== ~~t[s] && i++;
  1564. return i + r;
  1565. }
  1566. H.prototype = {
  1567. set: function(e) {
  1568. var t, n;
  1569. for (n in e) t = e[n], typeof t == "function" ? this[n] = t : this["_" + n] = t;
  1570. },
  1571. _months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
  1572. months: function(e) {
  1573. return this._months[e.month()];
  1574. },
  1575. _monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  1576. monthsShort: function(e) {
  1577. return this._monthsShort[e.month()];
  1578. },
  1579. monthsParse: function(e) {
  1580. var t, n, r, s;
  1581. this._monthsParse || (this._monthsParse = []);
  1582. for (t = 0; t < 12; t++) {
  1583. this._monthsParse[t] || (n = i([ 2e3, t ]), r = "^" + this.months(n, "") + "|^" + this.monthsShort(n, ""), this._monthsParse[t] = new RegExp(r.replace(".", ""), "i"));
  1584. if (this._monthsParse[t].test(e)) return t;
  1585. }
  1586. },
  1587. _weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  1588. weekdays: function(e) {
  1589. return this._weekdays[e.day()];
  1590. },
  1591. _weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  1592. weekdaysShort: function(e) {
  1593. return this._weekdaysShort[e.day()];
  1594. },
  1595. _weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  1596. weekdaysMin: function(e) {
  1597. return this._weekdaysMin[e.day()];
  1598. },
  1599. _longDateFormat: {
  1600. LT: "h:mm A",
  1601. L: "MM/DD/YYYY",
  1602. LL: "MMMM D YYYY",
  1603. LLL: "MMMM D YYYY LT",
  1604. LLLL: "dddd, MMMM D YYYY LT"
  1605. },
  1606. longDateFormat: function(e) {
  1607. var t = this._longDateFormat[e];
  1608. return !t && this._longDateFormat[e.toUpperCase()] && (t = this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function(e) {
  1609. return e.slice(1);
  1610. }), this._longDateFormat[e] = t), t;
  1611. },
  1612. meridiem: function(e, t, n) {
  1613. return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM";
  1614. },
  1615. _calendar: {
  1616. sameDay: "[Today at] LT",
  1617. nextDay: "[Tomorrow at] LT",
  1618. nextWeek: "dddd [at] LT",
  1619. lastDay: "[Yesterday at] LT",
  1620. lastWeek: "[last] dddd [at] LT",
  1621. sameElse: "L"
  1622. },
  1623. calendar: function(e, t) {
  1624. var n = this._calendar[e];
  1625. return typeof n == "function" ? n.apply(t) : n;
  1626. },
  1627. _relativeTime: {
  1628. future: "in %s",
  1629. past: "%s ago",
  1630. s: "a few seconds",
  1631. m: "a minute",
  1632. mm: "%d minutes",
  1633. h: "an hour",
  1634. hh: "%d hours",
  1635. d: "a day",
  1636. dd: "%d days",
  1637. M: "a month",
  1638. MM: "%d months",
  1639. y: "a year",
  1640. yy: "%d years"
  1641. },
  1642. relativeTime: function(e, t, n, r) {
  1643. var i = this._relativeTime[n];
  1644. return typeof i == "function" ? i(e, t, n, r) : i.replace(/%d/i, e);
  1645. },
  1646. pastFuture: function(e, t) {
  1647. var n = this._relativeTime[e > 0 ? "future" : "past"];
  1648. return typeof n == "function" ? n(t) : n.replace(/%s/i, t);
  1649. },
  1650. ordinal: function(e) {
  1651. return this._ordinal.replace("%d", e);
  1652. },
  1653. _ordinal: "%d",
  1654. preparse: function(e) {
  1655. return e;
  1656. },
  1657. postformat: function(e) {
  1658. return e;
  1659. },
  1660. week: function(e) {
  1661. return it(e, this._week.dow, this._week.doy);
  1662. },
  1663. _week: {
  1664. dow: 0,
  1665. doy: 6
  1666. }
  1667. };
  1668. function W(e, t) {
  1669. return t.abbr = e, a[e] || (a[e] = new H), a[e].set(t), a[e];
  1670. }
  1671. function X(t) {
  1672. return t ? (!a[t] && f && e("./lang/" + t), a[t]) : i.fn._lang;
  1673. }
  1674. function V(e) {
  1675. return e.match(/\[.*\]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
  1676. }
  1677. function $(e) {
  1678. var t = e.match(c), n, r;
  1679. for (n = 0, r = t.length; n < r; n++) _[t[n]] ? t[n] = _[t[n]] : t[n] = V(t[n]);
  1680. return function(i) {
  1681. var s = "";
  1682. for (n = 0; n < r; n++) s += typeof t[n].call == "function" ? t[n].call(i, e) : t[n];
  1683. return s;
  1684. };
  1685. }
  1686. function J(e, t) {
  1687. function n(t) {
  1688. return e.lang().longDateFormat(t) || t;
  1689. }
  1690. var r = 5;
  1691. while (r-- && h.test(t)) t = t.replace(h, n);
  1692. return A[t] || (A[t] = $(t)), A[t](e);
  1693. }
  1694. function K(e) {
  1695. switch (e) {
  1696. case "DDDD":
  1697. return m;
  1698. case "YYYY":
  1699. return g;
  1700. case "YYYYY":
  1701. return y;
  1702. case "S":
  1703. case "SS":
  1704. case "SSS":
  1705. case "DDD":
  1706. return v;
  1707. case "MMM":
  1708. case "MMMM":
  1709. case "dd":
  1710. case "ddd":
  1711. case "dddd":
  1712. case "a":
  1713. case "A":
  1714. return b;
  1715. case "X":
  1716. return S;
  1717. case "Z":
  1718. case "ZZ":
  1719. return w;
  1720. case "T":
  1721. return E;
  1722. case "MM":
  1723. case "DD":
  1724. case "YY":
  1725. case "HH":
  1726. case "hh":
  1727. case "mm":
  1728. case "ss":
  1729. case "M":
  1730. case "D":
  1731. case "d":
  1732. case "H":
  1733. case "h":
  1734. case "m":
  1735. case "s":
  1736. return d;
  1737. default:
  1738. return new RegExp(e.replace("\\", ""));
  1739. }
  1740. }
  1741. function Q(e, t, n) {
  1742. var r, i, s = n._a;
  1743. switch (e) {
  1744. case "M":
  1745. case "MM":
  1746. s[1] = t == null ? 0 : ~~t - 1;
  1747. break;
  1748. case "MMM":
  1749. case "MMMM":
  1750. r = X(n._l).monthsParse(t), r != null ? s[1] = r : n._isValid = !1;
  1751. break;
  1752. case "D":
  1753. case "DD":
  1754. case "DDD":
  1755. case "DDDD":
  1756. t != null && (s[2] = ~~t);
  1757. break;
  1758. case "YY":
  1759. s[0] = ~~t + (~~t > 68 ? 1900 : 2e3);
  1760. break;
  1761. case "YYYY":
  1762. case "YYYYY":
  1763. s[0] = ~~t;
  1764. break;
  1765. case "a":
  1766. case "A":
  1767. n._isPm = (t + "").toLowerCase() === "pm";
  1768. break;
  1769. case "H":
  1770. case "HH":
  1771. case "h":
  1772. case "hh":
  1773. s[3] = ~~t;
  1774. break;
  1775. case "m":
  1776. case "mm":
  1777. s[4] = ~~t;
  1778. break;
  1779. case "s":
  1780. case "ss":
  1781. s[5] = ~~t;
  1782. break;
  1783. case "S":
  1784. case "SS":
  1785. case "SSS":
  1786. s[6] = ~~(("0." + t) * 1e3);
  1787. break;
  1788. case "X":
  1789. n._d = new Date(parseFloat(t) * 1e3);
  1790. break;
  1791. case "Z":
  1792. case "ZZ":
  1793. n._useUTC = !0, r = (t + "").match(C), r && r[1] && (n._tzh = ~~r[1]), r && r[2] && (n._tzm = ~~r[2]), r && r[0] === "+" && (n._tzh = -n._tzh, n._tzm = -n._tzm);
  1794. }
  1795. t == null && (n._isValid = !1);
  1796. }
  1797. function G(e) {
  1798. var t, n, r = [];
  1799. if (e._d) return;
  1800. for (t = 0; t < 7; t++) e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
  1801. r[3] += e._tzh || 0, r[4] += e._tzm || 0, n = new Date(0), e._useUTC ? (n.setUTCFullYear(r[0], r[1], r[2]), n.setUTCHours(r[3], r[4], r[5], r[6])) : (n.setFullYear(r[0], r[1], r[2]), n.setHours(r[3], r[4], r[5], r[6])), e._d = n;
  1802. }
  1803. function Y(e) {
  1804. var t = e._f.match(c), n = e._i, r, i;
  1805. e._a = [];
  1806. for (r = 0; r < t.length; r++) i = (K(t[r]).exec(n) || [])[0], i && (n = n.slice(n.indexOf(i) + i.length)), _[t[r]] && Q(t[r], i, e);
  1807. e._isPm && e._a[3] < 12 && (e._a[3] += 12), e._isPm === !1 && e._a[3] === 12 && (e._a[3] = 0), G(e);
  1808. }
  1809. function Z(e) {
  1810. var t, n, r, i = 99, s, o, u;
  1811. while (e._f.length) {
  1812. t = F({}, e), t._f = e._f.pop(), Y(t), n = new B(t);
  1813. if (n.isValid()) {
  1814. r = n;
  1815. break;
  1816. }
  1817. u = z(t._a, n.toArray()), u < i && (i = u, r = n);
  1818. }
  1819. F(e, r);
  1820. }
  1821. function et(e) {
  1822. var t, n = e._i;
  1823. if (x.exec(n)) {
  1824. e._f = "YYYY-MM-DDT";
  1825. for (t = 0; t < 4; t++) if (N[t][1].exec(n)) {
  1826. e._f += N[t][0];
  1827. break;
  1828. }
  1829. w.exec(n) && (e._f += " Z"), Y(e);
  1830. } else e._d = new Date(n);
  1831. }
  1832. function tt(e) {
  1833. var t = e._i, n = l.exec(t);
  1834. t === undefined ? e._d = new Date : n ? e._d = new Date(+n[1]) : typeof t == "string" ? et(e) : U(t) ? (e._a = t.slice(0), G(e)) : e._d = t instanceof Date ? new Date(+t) : new Date(t);
  1835. }
  1836. function nt(e, t, n, r, i) {
  1837. return i.relativeTime(t || 1, !!n, e, r);
  1838. }
  1839. function rt(e, t, n) {
  1840. var r = o(Math.abs(e) / 1e3), i = o(r / 60), s = o(i / 60), u = o(s / 24), a = o(u / 365), f = r < 45 && [ "s", r ] || i === 1 && [ "m" ] || i < 45 && [ "mm", i ] || s === 1 && [ "h" ] || s < 22 && [ "hh", s ] || u === 1 && [ "d" ] || u <= 25 && [ "dd", u ] || u <= 45 && [ "M" ] || u < 345 && [ "MM", o(u / 30) ] || a === 1 && [ "y" ] || [ "yy", a ];
  1841. return f[2] = t, f[3] = e > 0, f[4] = n, nt.apply({}, f);
  1842. }
  1843. function it(e, t, n) {
  1844. var r = n - t, s = n - e.day();
  1845. return s > r && (s -= 7), s < r - 7 && (s += 7), Math.ceil(i(e).add("d", s).dayOfYear() / 7);
  1846. }
  1847. function st(e) {
  1848. var t = e._i, n = e._f;
  1849. return t === null || t === "" ? null : (typeof t == "string" && (e._i = t = X().preparse(t)), i.isMoment(t) ? (e = F({}, t), e._d = new Date(+t._d)) : n ? U(n) ? Z(e) : Y(e) : tt(e), new B(e));
  1850. }
  1851. i = function(e, t, n) {
  1852. return st({
  1853. _i: e,
  1854. _f: t,
  1855. _l: n,
  1856. _isUTC: !1
  1857. });
  1858. }, i.utc = function(e, t, n) {
  1859. return st({
  1860. _useUTC: !0,
  1861. _isUTC: !0,
  1862. _l: n,
  1863. _i: e,
  1864. _f: t
  1865. });
  1866. }, i.unix = function(e) {
  1867. return i(e * 1e3);
  1868. }, i.duration = function(e, t) {
  1869. var n = i.isDuration(e), r = typeof e == "number", s = n ? e._data : r ? {} : e, o;
  1870. return r && (t ? s[t] = e : s.milliseconds = e), o = new j(s), n && e.hasOwnProperty("_lang") && (o._lang = e._lang), o;
  1871. }, i.version = s, i.defaultFormat = T, i.lang = function(e, t) {
  1872. var n;
  1873. if (!e) return i.fn._lang._abbr;
  1874. t ? W(e, t) : a[e] || X(e), i.duration.fn._lang = i.fn._lang = X(e);
  1875. }, i.langData = function(e) {
  1876. return e && e._lang && e._lang._abbr && (e = e._lang._abbr), X(e);
  1877. }, i.isMoment = function(e) {
  1878. return e instanceof B;
  1879. }, i.isDuration = function(e) {
  1880. return e instanceof j;
  1881. }, i.fn = B.prototype = {
  1882. clone: function() {
  1883. return i(this);
  1884. },
  1885. valueOf: function() {
  1886. return +this._d;
  1887. },
  1888. unix: function() {
  1889. return Math.floor(+this._d / 1e3);
  1890. },
  1891. toString: function() {
  1892. return this.format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
  1893. },
  1894. toDate: function() {
  1895. return this._d;
  1896. },
  1897. toJSON: function() {
  1898. return i.utc(this).format("YYYY-MM-DD[T]HH:mm:ss.SSS[Z]");
  1899. },
  1900. toArray: function() {
  1901. var e = this;
  1902. return [ e.year(), e.month(), e.date(), e.hours(), e.minutes(), e.seconds(), e.milliseconds() ];
  1903. },
  1904. isValid: function() {
  1905. return this._isValid == null && (this._a ? this._isValid = !z(this._a, (this._isUTC ? i.utc(this._a) : i(this._a)).toArray()) : this._isValid = !isNaN(this._d.getTime())), !!this._isValid;
  1906. },
  1907. utc: function() {
  1908. return this._isUTC = !0, this;
  1909. },
  1910. local: function() {
  1911. return this._isUTC = !1, this;
  1912. },
  1913. format: function(e) {
  1914. var t = J(this, e || i.defaultFormat);
  1915. return this.lang().postformat(t);
  1916. },
  1917. add: function(e, t) {
  1918. var n;
  1919. return typeof e == "string" ? n = i.duration(+t, e) : n = i.duration(e, t), R(this, n, 1), this;
  1920. },
  1921. subtract: function(e, t) {
  1922. var n;
  1923. return typeof e == "string" ? n = i.duration(+t, e) : n = i.duration(e, t), R(this, n, -1), this;
  1924. },
  1925. diff: function(e, t, n) {
  1926. var r = this._isUTC ? i(e).utc() : i(e).local(), s = (this.zone() - r.zone()) * 6e4, o, u;
  1927. return t && (t = t.replace(/s$/, "")), t === "year" || t === "month" ? (o = (this.daysInMonth() + r.daysInMonth()) * 432e5, u = (this.year() - r.year()) * 12 + (this.month() - r.month()), u += (this - i(this).startOf("month") - (r - i(r).startOf("month"))) / o, t === "year" && (u /= 12)) : (o = this - r - s, u = t === "second" ? o / 1e3 : t === "minute" ? o / 6e4 : t === "hour" ? o / 36e5 : t === "day" ? o / 864e5 : t === "week" ? o / 6048e5 : o), n ? u : I(u);
  1928. },
  1929. from: function(e, t) {
  1930. return i.duration(this.diff(e)).lang(this.lang()._abbr).humanize(!t);
  1931. },
  1932. fromNow: function(e) {
  1933. return this.from(i(), e);
  1934. },
  1935. calendar: function() {
  1936. var e = this.diff(i().startOf("day"), "days", !0), t = e < -6 ? "sameElse" : e < -1 ? "lastWeek" : e < 0 ? "lastDay" : e < 1 ? "sameDay" : e < 2 ? "nextDay" : e < 7 ? "nextWeek" : "sameElse";
  1937. return this.format(this.lang().calendar(t, this));
  1938. },
  1939. isLeapYear: function() {
  1940. var e = this.year();
  1941. return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
  1942. },
  1943. isDST: function() {
  1944. return this.zone() < i([ this.year() ]).zone() || this.zone() < i([ this.year(), 5 ]).zone();
  1945. },
  1946. day: function(e) {
  1947. var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1948. return e == null ? t : this.add({
  1949. d: e - t
  1950. });
  1951. },
  1952. startOf: function(e) {
  1953. e = e.replace(/s$/, "");
  1954. switch (e) {
  1955. case "year":
  1956. this.month(0);
  1957. case "month":
  1958. this.date(1);
  1959. case "week":
  1960. case "day":
  1961. this.hours(0);
  1962. case "hour":
  1963. this.minutes(0);
  1964. case "minute":
  1965. this.seconds(0);
  1966. case "second":
  1967. this.milliseconds(0);
  1968. }
  1969. return e === "week" && this.day(0), this;
  1970. },
  1971. endOf: function(e) {
  1972. return this.startOf(e).add(e.replace(/s?$/, "s"), 1).subtract("ms", 1);
  1973. },
  1974. isAfter: function(e, t) {
  1975. return t = typeof t != "undefined" ? t : "millisecond", +this.clone().startOf(t) > +i(e).startOf(t);
  1976. },
  1977. isBefore: function(e, t) {
  1978. return t = typeof t != "undefined" ? t : "millisecond", +this.clone().startOf(t) < +i(e).startOf(t);
  1979. },
  1980. isSame: function(e, t) {
  1981. return t = typeof t != "undefined" ? t : "millisecond", +this.clone().startOf(t) === +i(e).startOf(t);
  1982. },
  1983. zone: function() {
  1984. return this._isUTC ? 0 : this._d.getTimezoneOffset();
  1985. },
  1986. daysInMonth: function() {
  1987. return i.utc([ this.year(), this.month() + 1, 0 ]).date();
  1988. },
  1989. dayOfYear: function(e) {
  1990. var t = o((i(this).startOf("day") - i(this).startOf("year")) / 864e5) + 1;
  1991. return e == null ? t : this.add("d", e - t);
  1992. },
  1993. isoWeek: function(e) {
  1994. var t = it(this, 1, 4);
  1995. return e == null ? t : this.add("d", (e - t) * 7);
  1996. },
  1997. week: function(e) {
  1998. var t = this.lang().week(this);
  1999. return e == null ? t : this.add("d", (e - t) * 7);
  2000. },
  2001. lang: function(e) {
  2002. return e === undefined ? this._lang : (this._lang = X(e), this);
  2003. }
  2004. };
  2005. function ot(e, t) {
  2006. i.fn[e] = i.fn[e + "s"] = function(e) {
  2007. var n = this._isUTC ? "UTC" : "";
  2008. return e != null ? (this._d["set" + n + t](e), this) : this._d["get" + n + t]();
  2009. };
  2010. }
  2011. for (u = 0; u < k.length; u++) ot(k[u].toLowerCase().replace(/s$/, ""), k[u]);
  2012. ot("year", "FullYear"), i.fn.days = i.fn.day, i.fn.weeks = i.fn.week, i.fn.isoWeeks = i.fn.isoWeek, i.duration.fn = j.prototype = {
  2013. weeks: function() {
  2014. return I(this.days() / 7);
  2015. },
  2016. valueOf: function() {
  2017. return this._milliseconds + this._days * 864e5 + this._months * 2592e6;
  2018. },
  2019. humanize: function(e) {
  2020. var t = +this, n = rt(t, !e, this.lang());
  2021. return e && (n = this.lang().pastFuture(t, n)), this.lang().postformat(n);
  2022. },
  2023. lang: i.fn.lang
  2024. };
  2025. function ut(e) {
  2026. i.duration.fn[e] = function() {
  2027. return this._data[e];
  2028. };
  2029. }
  2030. function at(e, t) {
  2031. i.duration.fn["as" + e] = function() {
  2032. return +this / t;
  2033. };
  2034. }
  2035. for (u in L) L.hasOwnProperty(u) && (at(u, L[u]), ut(u.toLowerCase()));
  2036. return at("Weeks", 6048e5), i.lang("zh-cn", {
  2037. months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
  2038. monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
  2039. weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
  2040. weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"),
  2041. weekdaysMin: "日_一_二_三_四_五_六".split("_"),
  2042. longDateFormat: {
  2043. LT: "Ah点mm",
  2044. L: "YYYY年MMMD日",
  2045. LL: "YYYY年MMMD日",
  2046. LLL: "YYYY年MMMD日LT",
  2047. LLLL: "YYYY年MMMD日ddddLT",
  2048. l: "YYYY年MMMD日",
  2049. ll: "YYYY年MMMD日",
  2050. lll: "YYYY年MMMD日LT",
  2051. llll: "YYYY年MMMD日ddddLT"
  2052. },
  2053. meridiem: function(e, t, n) {
  2054. return e < 9 ? "早上" : e < 11 && t < 30 ? "上午" : e < 13 && t < 30 ? "中午" : e < 18 ? "下午" : "晚上";
  2055. },
  2056. calendar: {
  2057. sameDay: "[今天]LT",
  2058. nextDay: "[明天]LT",
  2059. nextWeek: "[下]ddddLT",
  2060. lastDay: "[昨天]LT",
  2061. lastWeek: "[上]ddddLT",
  2062. sameElse: "L"
  2063. },
  2064. ordinal: function(e, t) {
  2065. switch (t) {
  2066. case "d":
  2067. case "D":
  2068. case "DDD":
  2069. return e + "日";
  2070. case "M":
  2071. return e + "月";
  2072. case "w":
  2073. case "W":
  2074. return e + "周";
  2075. default:
  2076. return e;
  2077. }
  2078. },
  2079. relativeTime: {
  2080. future: "%s内",
  2081. past: "%s前",
  2082. s: "几秒",
  2083. m: "1分钟",
  2084. mm: "%d分钟",
  2085. h: "1小时",
  2086. hh: "%d小时",
  2087. d: "1天",
  2088. dd: "%d天",
  2089. M: "1个月",
  2090. MM: "%d个月",
  2091. y: "1年",
  2092. yy: "%d年"
  2093. }
  2094. }), i;
  2095. } catch (ft) {
  2096. wx.jslog({
  2097. src: "biz_common/moment.js"
  2098. }, ft);
  2099. }
  2100. });define("home/index.js",["common/wx/popup.js","common/wx/Cgi.js","common/wx/dialog.js","biz_common/moment.js","biz_common/cookie.js","common/wx/pagebar.js"],function(e){
  2101. "use strict";
  2102. e("common/wx/popup.js");
  2103. var n=(template.render,e("common/wx/Cgi.js")),o=e("common/wx/dialog.js"),i=e("biz_common/moment.js"),t=e("biz_common/cookie.js"),a=e("common/wx/pagebar.js"),c=wx.cgiData;
  2104. !function(){
  2105. var e=t.get("annual_review_dialog");
  2106. if(1==c.wxverify_annual_review&&!e){
  2107. t.set("annual_review_dialog",1,1,{
  2108. domain:"mp.weixin.qq.com"
  2109. });
  2110. var n;
  2111. n=1e3*c.wxverify_expired_time>+new Date?"你的微信认证即将到期,请尽快进行年审|你好,你的微信认证将于%s到期,请尽快进行认证年审,否则将失去认证标识和相关接口权限——订阅号将无法使用自定义菜单,服务号的高级接口、多客服接口及微信支付接口将被停用。".sprintf("<span class='mini_tips warn'>"+i.unix(c.wxverify_expired_time).format("YYYY年MM月DD日")+"</span>"):"你的微信认证即将到期,请尽快进行年审|你好,请尽快进行认证年审,否则将失去认证标识和相关接口权限——订阅号将无法使用自定义菜单,服务号的高级接口、多客服接口及微信支付接口将被停用。";
  2112. {
  2113. o.show({
  2114. type:"info",
  2115. title:"微信认证提示",
  2116. msg:n,
  2117. buttons:[{
  2118. text:"去认证",
  2119. click:function(){
  2120. location.href=wx.url("/acct/wxverify?action=step&t=wxverify/index&step=proto");
  2121. }
  2122. },{
  2123. text:"取消",
  2124. type:"normal",
  2125. click:function(){
  2126. this.hide();
  2127. }
  2128. }]
  2129. });
  2130. }
  2131. }
  2132. }(),function(){
  2133. var e="hasNotice";
  2134. seajs.use("biz_web/lib/store.js",function(o){
  2135. o.get(e)||n.get({
  2136. mask:!1,
  2137. url:wx.url("/cgi-bin/sysnotify?f=json&begin=0&count=5")
  2138. },function(n){
  2139. if(n&&n.base_resp&&0==n.base_resp.ret&&n.Count){
  2140. for(var i=[],t=n.List,a=n.Count,c=function(e,n){
  2141. var o={
  2142. 1:"你的群发",
  2143. 2:"你的开发者申请",
  2144. 3:"你的头像更改",
  2145. 4:"你的昵称修改",
  2146. 5:"你的功能介绍更改",
  2147. 6:"你的信息登记",
  2148. 7:"你的信息登记",
  2149. 8:"你的信息登记",
  2150. 9:"你的信息登记",
  2151. 10:"你的信息登记",
  2152. 11:"你的自定义菜单申请",
  2153. 12:"你的商户功能权限申请",
  2154. 14:"微信支付",
  2155. 15:"微信支付",
  2156. 16:"微信支付",
  2157. 18:"微信认证",
  2158. 19:"微信认证",
  2159. 22:"商户功能初审",
  2160. 23:"模板消息申请",
  2161. 24:"商品购买测试链接",
  2162. 26:"修改商户功能设置"
  2163. },i="";
  2164. return 3==n?i="已经通过审核":2==n&&(i="审核不通过"),"undefined"!=typeof o[e]?o[e]+i:"";
  2165. },s=0;a>s;++s){
  2166. var r=t[s];
  2167. i.push({
  2168. text:1==r.NotifyMsgType?c(r.CheckType,r.CheckStatus):r.Title,
  2169. url:wx.url("/cgi-bin/frame?t=notification/index_frame&selectid="+r.Id)
  2170. });
  2171. }
  2172. seajs.use("common/wx/noticeBox",function(n){
  2173. new n({
  2174. container:"#accountArea",
  2175. list:i
  2176. }),$("#accountArea .btn_inbox_closed").click(function(){
  2177. o.set(e,1),$("#accountArea").unbind("mouseover").removeClass("on").find(".account_message_box").remove();
  2178. });
  2179. });
  2180. }
  2181. });
  2182. });
  2183. }(),function(){
  2184. {
  2185. var e=wx.cgiData.total_count,n=wx.cgiData.count,o=wx.cgiData.begin;
  2186. new a({
  2187. container:".pageNavigator",
  2188. perPage:n,
  2189. first:!1,
  2190. last:!1,
  2191. isSimple:!0,
  2192. initShowPage:o,
  2193. totalItemsNum:e,
  2194. callback:function(e){
  2195. var n=e.currentPage;
  2196. if(n!=o)return n--,location.href=wx.url("/cgi-bin/home?t=home/index&start="+(n+1)),
  2197. !1;
  2198. }
  2199. });
  2200. }
  2201. }();
  2202. });