ppt.js 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180
  1. layui.use("layer", function() {});
  2. released = function(a) {
  3. layer.load();
  4. $.get("/html/released", {
  5. type: a
  6. }, function(a) {
  7. layer_ly(a, !1, !0, "560px", "auto")
  8. })
  9. };
  10. sign = function(a) {
  11. Aform("sign", "mode=" + (a || 0), function(a) {
  12. if (-2 == a.state) return layer_lp("签到", "sign"), !1;
  13. Rs(a)
  14. })
  15. };
  16. expost = function(a, b) {
  17. $.post("/html/expost", {
  18. mode: a,
  19. number: b || 0
  20. }, function(a) {
  21. layer_ly(a, !1, !1)
  22. })
  23. };
  24. layer_lp = function(a, b) {
  25. layer.confirm('亲,您需要先<font color="red">登录</font>才能<font color="#ff6600">' + a + "</font>哦!", {
  26. icon: 0,
  27. btn: ["去登录", "打酱油"]
  28. }, function() {
  29. layer.closeAll();
  30. layer_login("再" + a, b)
  31. }, function() {
  32. layer.msg("好吧,亲,那您就继续打酱油吧!")
  33. })
  34. };
  35. layer_login = function(a, b) {
  36. /*document.domain = "hmbwz.com";
  37. height = (title = (a = a || !1) ? ["亲!先登个录" + a, "border:none; background:#f2f2f2; color:#333;font-size:14px;"] : !1) ? 500 : 460;
  38. layer.open({
  39. type: 2,
  40. title: title,
  41. shadeClose: !1,
  42. shade: [.05, "#000"],
  43. area: ["400px", height + "px"],
  44. content: ["https://my.hmbwz.com/html/login?c=" + (b || ""), "no"]
  45. })*/
  46. window.location.href="/reg/";
  47. };
  48. function UCheck(a) {
  49. a = a || "ajax_login";
  50. 0 < $('input[name="ureturn"]').length ? (a = $.trim($('input[name="ureturn"]').val()), CheckHzurl(a) ? window.location.href = a : window.location.reload()) : ("ajax_login" == a || "ajax_logout" == a) && 0 < $(".top_box").length ? (Aform(a, "", function(a) {
  51. 1 == a.state ? $.each(a, function(a, b) {
  52. 0 < $("." + a).length && $("." + a).html(b)
  53. }) : Rs(a)
  54. }), 0 < $(".lay-login").length && $(".lay-login").remove(), 0 < $(".click-cite.curr").length && fixed_tool(2), 0 < $(".click-cite").length && $(".click-cite").data("rtime", 0)) : isNaN(a) || (a = layer.getChildFrame("body", a).find('input[name="uclick"]').val().split("|"), "click" == $.trim(a[0]) && $($.trim(a[1])).trigger("click"));
  55. layer.closeAll("iframe")
  56. }
  57. function deling(a) {
  58. uploader.removeFile(a);
  59. $("#file-" + a).remove();
  60. 0 >= $("#FileListing tr[id]").length && 0 >= $("#FileListing .dl").length ? $("#pluing").hide() : $("#pluing u").html(uploader.files.length)
  61. }
  62. function budget() {
  63. var a = $("input[name=money]").val(),
  64. b = $("input[name=role]:checked").val(),
  65. c = $("input[name=fees]:checked").val();
  66. b && a && c ? (b = .02 * a, $("#budget").show(), "buy" == c ? ($("#bm").html(1 * a + 1 * b), $("#sm").html(a)) : "sell" == c ? ($("#bm").html(a), $("#sm").html(a - b)) : ($("#bm").html(1 * a + .5 * b), $("#sm").html(a - .5 * b))) : $("#budget").hide()
  67. }
  68. function verify(a) {
  69. var b = $("input[name=vcode]").val();
  70. if ("phone" == a && 4 != b.length || "email" == a && 6 != b.length) return $("input[name=vcode]").val("").focus(),
  71. layer.tips("验证码错误,请重新输入", $("input[name=vcode]")), !1;
  72. "phone" != a && "email" != a || Aform("verify", $("form *[value!='']").serialize() + "&mode=" + a)
  73. }
  74. prompt_people = function(a, b, c, d) {
  75. c = c || 0;
  76. d = d || 0;
  77. var e = .7 * document.body.offsetWidth < $(a).offset().left ? "right" : "left",
  78. f = "right" == e ? $(a).offset().left + d - 332 : $(a).offset().left + $(a).width() + d + 5,
  79. g = $(a).offset().top + $(a).height() / 2 + c - 58,
  80. k = $('<div class="prompt_obj" style="width:' + $(a).width() + "px;height:" + $(a).height() + "px;top:" + ($(a).offset().top + c - 4) + "px;left:" + ($(a).offset().left + d - 4) + 'px;"></div><div class="prompt_people ' + e + '" style="top:' + g + "px;left:" + f + 'px;"><dl><dd><div id="wrap"><div id="subwrap"><div id="content">' + b + "</div></div></div></dd></dl></div>");
  81. k.appendTo("body");
  82. setTimeout(function() {
  83. k.fadeOut("fast", function() {
  84. k.remove()
  85. })
  86. }, 3E3)
  87. };
  88. sendbtn = function(a, b, c) {
  89. var d = $(a).attr("data");
  90. c = c || "";
  91. if (!judge($("input[name=" + d + "]").val(), d)) return layer.tips($("input[name=" + d + "]").attr("placeholder"), $("input[name=" + d + "]"), {
  92. tips: [3, "#f90"]
  93. }),
  94. $("input[name=" + d + "]").focus(), !1;
  95. $(a).attr("disabled", !0);
  96. Aform("sendinfo", $("form" + c).serialize(), function(c) {
  97. -1 == c.state ? sendtime(a, b) : $(a).attr("disabled", !1);
  98. Rs(c)
  99. })
  100. };
  101. sendtime = function(a, b) {
  102. function c(b) {
  103. return function() {
  104. if (b == d) $(a).removeClass("layui-btn-disabled"),
  105. $(a).val("发送验证码"),
  106. $(a).attr("disabled", !1);
  107. else {
  108. var c = d - b;
  109. $(a).val(c + "秒后可以重发")
  110. }
  111. }
  112. }
  113. var d = b || 60;
  114. $(a).attr("disabled", !0);
  115. $(a).val(d + "秒后可以重发").addClass("layui-btn-disabled");
  116. for (b = 1; b <= d; b++) setTimeout(c(b), 1E3 * b)
  117. };
  118. fixed_tool = function(a) {
  119. /*a = a || "";
  120. var b = $(".click-cite.curr"),
  121. c = Date.parse(new Date),
  122. d = parseInt(b.data("rtime")),
  123. e = b.data("click");
  124. if ("" != a || c >= d) {
  125. var f = $(".fixed-loading").show();
  126. $.ajax({
  127. type: "POST",
  128. url: "/apage/",
  129. async: !0,
  130. data: "list=fixed_tool&action=" + e + "&page=" + a,
  131. dataType: "json",
  132. success: function(c) {
  133. if (-2 == c.state) return fixed_login();
  134. c.jq ? $.ajax({
  135. url: c.jq,
  136. dataType: "script",
  137. cache: !0
  138. }).done(function() {
  139. fixed_result(e, c)
  140. }) : fixed_result(e, c);
  141. "" == a && b.data("rtime", Date.parse(new Date) + 3E4)
  142. },
  143. error: function() {
  144. f.hide();
  145. layer.msg("加载失败,请重试!");
  146. return !1
  147. }
  148. })
  149. } else $(".fixed-" + e + "-box").addClass("curr").siblings(".fixed-click-box").removeClass("curr")*/
  150. };
  151. fixed_result = function(a, b) {
  152. $.each(b, function(b, c) {
  153. b = "." == b.substr(0, 1) ? b : ".fixed-" + a + "-box #" + b;
  154. $(b).empty().html(c)
  155. });
  156. "cart" == a && ($(".form_render").click(), $(".fixed-" + a + "-box .more").off("click").on("click", function() {
  157. var a = $(this).closest("dl").find(".ly");
  158. a.hasClass("hide") ? a.removeClass("hide").animate({
  159. right: "0"
  160. }) : a.animate({
  161. right: "-100%"
  162. }, function() {
  163. a.addClass("hide")
  164. })
  165. }));
  166. var c = $(".fixed-" + a + "-box .tips");
  167. 0 < c.length && ($.isFunction($.fn.tipso) ? c.unbind().tipso() : $.ajax({
  168. url: "//statics.hmbwz.com/js/tipso.min.js",
  169. dataType: "script",
  170. cache: !0
  171. }).done(function() {
  172. c.unbind().tipso()
  173. }));
  174. $(".fixed-" + a + "-box").addClass("curr").siblings(".fixed-click-box").removeClass("curr");
  175. $(".fixed-loading").hide()
  176. };
  177. fixed_login = function() {
  178. 0 == $(".lay-login").length && $.get("/html/login?c=fixed-login", function(a) {
  179. $(".fixed-login").append(a)
  180. });
  181. $(".fixed-login-box").addClass("curr").siblings(".fixed-click-box").removeClass("curr");
  182. $(".fixed-loading").hide()
  183. };
  184. $(".pingfen_btn").live("hover", function(a) {
  185. "mouseenter" == a.type ? $(this).addClass("active") : $(this).removeClass("active")
  186. });
  187. $(".uim p,.uim a").live("click", function() {
  188. var a = $(this),
  189. b = a.closest("span"),
  190. c = a.parents(),
  191. d = b.data("info").split("|");
  192. layer.load();
  193. $.get("/template/uqq.php", {
  194. uqq: c.attr("i"),
  195. curr: c.attr("c"),
  196. type: c.attr("class")
  197. }, function(a) {
  198. layer_ly(a, '<img src="' + d[1] + '" style="width:20px;height:20px;margin-left:-10px;float:left;margin-top:10px;padding:1px;border: 1px solid #ddd;"><strong style="float:left;max-width:130px;overflow:hidden;color:#ff6600;padding:0 5px;">' + d[0] + '</strong> <span style="color:#666;float:left;">' + c.attr("title") + "</span>", !0, "330px")
  199. })
  200. });
  201. $(document).ready(function() {
  202. function a(a) {
  203. b && ($(a).hide(), $(".toggle_center").removeClass("mcur"))
  204. }
  205. layer_photos();
  206. $.isFunction($.fn.tipso) && $(".tips").tipso();
  207. $(".checkLen").each(function() {
  208. CheckLen(this, parseInt($(this).attr("d_len")))
  209. });
  210. updateEndTime();
  211. $(".tablelist:not(.noodd) tbody tr:odd,.imgtable tbody tr:odd").addClass("odd");
  212. $(".service-qq").click(function() {
  213. if (0 == $("#layer_cont").length) return !0;
  214. layer.confirm('<b style="font-size:15px;color:#ff6600">亲,您要联系【商家客服】还是【管理客服】?</b><br><span style="color:#666;">注:管理客服仅处理投诉、帐号等平台方面问题<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商品问题请联系咨询各店铺的商家客服人员</span> <div class="layui-layer-btn layui-layer-btn-" style="position: absolute;left:0;bottom: 0;padding:0;width:100%;"><a class="layui-layer-btn0">联系商家</a><a class="layui-layer-btn1" target="_blank" href="' + $(this).attr("href") + '">联系管理</a></div>', {
  215. icon: 3,
  216. area: ["450px", "210px"],
  217. btn: !1
  218. }, function(a) {
  219. layer.close(a);
  220. SellContact()
  221. }, function(a) {
  222. layer.close(a)
  223. });
  224. return !1
  225. });
  226. $(".fixed-right cite[hover]").hover(function() {
  227. $(this).addClass("curr").siblings("cite").removeClass("curr")
  228. }, function() {
  229. $(this).removeClass("curr")
  230. });
  231. $(".fixed-right cite[data-click]").click(function() {
  232. var a = $(this);
  233. if ($(".fixed-right").hasClass("curr")) {
  234. if ($(this).hasClass("curr")) return $(".fixed-right").stop(!0, !1).animate({
  235. right: 0
  236. }, 330, function() {
  237. $(this).removeClass("curr");
  238. a.removeClass("curr")
  239. }), !1
  240. } else $(".fixed-right").addClass("curr").stop(!0, !1).animate({
  241. right: 330
  242. }, 300);
  243. $(this).addClass("curr").siblings("cite").removeClass("curr");
  244. fixed_tool()
  245. });
  246. $(".fixed-right-bg").click(function() {
  247. $(".click-cite.curr").click()
  248. });
  249. $(".fixed-click .refresh").click(function() {
  250. var a = $(".click-cite.curr"),
  251. b = Date.parse(new Date);
  252. a = parseInt(a.data("rtime"));
  253. b >= a ? fixed_tool() : layer.alert("<b>请勿频繁刷新,等待" + (a - b) / 1E3 + "秒后再试!</b>", {
  254. icon: 5
  255. })
  256. });
  257. $(".fixed-stretch").click(function() {
  258. $(".fixed-right").toggleClass("simple");
  259. var a = $(".fixed-right").hasClass("simple") ? "top" : "bottom";
  260. $.cookie("fixed-right-mode", a, {
  261. expires: 365,
  262. path: "/",
  263. domain: "hmbwz.com"
  264. });
  265. "top" == a ? $(".simple-box").removeClass("fixed-tab-bottom").appendTo(".fixed-tab-" + a) : $(".simple-box").addClass("fixed-tab-" + a).appendTo(".fixed-tab")
  266. });
  267. $(".fixed-mg").click(function() {
  268. var a = $(this).closest("cite"),
  269. b = $(".aciton-nav");
  270. a.toggleClass("on");
  271. a.hasClass("on") ? b.addClass("curr") : b.removeClass("curr");
  272. $.cookie("fixed-mg", Number(a.hasClass("on")), {
  273. expires: 365,
  274. path: "/",
  275. domain: "hmbwz.com"
  276. })
  277. });
  278. $(".fixed-mg-box label").click(function() {
  279. var a = $(".aciton-nav label");
  280. $(this).hasClass("IChecked") ? a.removeClass("IChecked") : a.addClass("IChecked")
  281. });
  282. if (0 < $(".c_r_des").length) $(window).one("scroll", function() {
  283. //var index = layer.load(0, {time: 10*100});
  284. });
  285. else if (0 < $("input[name=selist]").length)
  286. if ("noscroll" == $("input[name=selist]").val()) selist();
  287. else $(window).one("scroll", function() {
  288. selist()
  289. });
  290. 0 < $(".lazyload img[lay-src]").length && (layui.use("flow", function() {
  291. layui.flow.lazyimg({
  292. elem: ".lazyload img"
  293. })
  294. }), layer_photos(".lazyload"));
  295. 0 < $("#layer_top").length && $("#layer_top").layer_top();
  296. 0 < $(".adsbygoogle").length && loadScript("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js");
  297. 0 < $(".scroll-box").length && ($(".scroll-box").vTicker({
  298. showItems: $(".scroll-box").attr("items"),
  299. pause: $(".scroll-box").attr("times")
  300. }), $(".scroll-action").click(function() {
  301. $(".scroll-box").vTicker($(this).attr("action"), {
  302. animate: !0
  303. })
  304. }));
  305. 0 < $(".gotop").length && ($(window).scroll(function(a) {
  306. h = $(window).height();
  307. t = $(document).scrollTop();
  308. t > h ? $(".gotop").show() : $(".gotop").hide()
  309. }), $(".gotop").click(function() {
  310. $("html,body").animate({
  311. scrollTop: 0
  312. }, 300)
  313. }));
  314. $(".share-a").click(function() {
  315. var a = encodeURIComponent($(this).data("title") ? $(this).attr("title") : $(document).attr("title")),
  316. b = $(this).data("link") ? $(this).data("link") : location.href,
  317. e = $(this).data("image") ? $(this).data("image") : 0 < $(".G-image").length ? $(".G-image")[0].src : "",
  318. f = encodeURIComponent($(this).data("desc") ? $(this).data("desc") : $("meta[name=description]").attr("content")),
  319. g = encodeURIComponent("互站网");
  320. switch ($(this).attr("data")) {
  321. case "sina":
  322. window.open("http://v.t.sina.com.cn/share/share.php?url=" + b + "&title=" + a + "&content=utf8&pic=" + e);
  323. break;
  324. case "qq":
  325. window.open("http://connect.qq.com/widget/shareqq/index.html?url=" + b + "&title=" + a + "&desc=" + f + "&pics=" + e + "&site=" + g);
  326. break;
  327. case "qzone":
  328. window.open("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + b + "&title=" + a + "&desc=" + f + "&pics=" + e + "&site=" + g);
  329. break;
  330. default:
  331. layer_iframe("/html/getqr.php?size=9&u=" + b, $(this).attr("title"), "330px", "370px")
  332. }
  333. });
  334. $(".searchtype cite").click(function() {
  335. $(".searchtype").toggleClass("curr")
  336. });
  337. $(".searchlist li").click(function() {
  338. $(".searchtype cite").html($(this).html());
  339. $(this).addClass("cur").siblings().removeClass("cur");
  340. $(".searchtype").removeClass("curr")
  341. });
  342. $(".searchbtn").click(function() {
  343. var a = $(".searchval");
  344. if ("" == a.val().replace(/\s/, "")) return layer.alert("请输入搜索关键词", {
  345. icon: 0
  346. }, function(b) {
  347. a.focus();
  348. layer.close(b)
  349. }), !1;
  350. //window.location.href = $(".searchlist .cur").data("link") + "key/" + a.val()
  351. document.topf1.action = "/search/index.php?admin="+$(".searchlist .cur").data("aid");
  352. document.topf1.submit();
  353. });
  354. $(".add_custom").click(function() {
  355. layer_iframe("/html/custom/", !1, "88%", "90%", !0)
  356. });
  357. $("#interactive").click(function() {
  358. if ($(this).hasClass("curr")) return !1;
  359. var a = $(this);
  360. Aform("interactive", {
  361. action: a.data("action"),
  362. obj: a.data("obj"),
  363. pro: a.data("pro")
  364. }, function(b) {
  365. if (-2 == b.state) return layer_lp(a.attr("title"), "interactive"), !1;
  366. Rs(b)
  367. })
  368. });
  369. var b = !1;
  370. $(".toggle_center").hover(function() {
  371. $(this).parent().next().show();
  372. $(this).addClass("mcur");
  373. b = !1
  374. }, function() {
  375. $this = $(this).parent().next();
  376. b = !0;
  377. window.clearTimeout(c);
  378. var c = window.setTimeout(function() {
  379. a($this)
  380. }, 300)
  381. });
  382. $(".toggle_pop,.rev_pop").hover(function() {
  383. b = !1
  384. }, function() {
  385. $this = $(this);
  386. b = !0;
  387. window.clearTimeout(c);
  388. var c = window.setTimeout(function() {
  389. a($this)
  390. }, 300)
  391. });
  392. $(".top_box li:not(.not)").live({
  393. mouseenter: function() {
  394. $(this).addClass("curr")
  395. },
  396. mouseleave: function() {
  397. $(this).removeClass("curr")
  398. }
  399. });
  400. $(".w_d_list .l2,.w_list .l2").hover(function() {
  401. var a = $(this);
  402. item1Timer = setTimeout(function() {
  403. $(a).children("span").show().animate({
  404. top: 0,
  405. height: "100%"
  406. }, 300)
  407. }, 100)
  408. }, function() {
  409. var a = $(this);
  410. clearTimeout(item1Timer);
  411. $(a).children("span").animate({
  412. top: "50%",
  413. height: 0
  414. }, 300, function() {
  415. $(a).children("span").hide()
  416. })
  417. })
  418. });
  419. $(".imfav").live("click", function() {
  420. if ($(this).hasClass("curr")) return !1;
  421. var id = $(this).attr("id");
  422. var that = $(this);
  423. $.get("../tem/favshopInto.php?id=" + id, function(response) {
  424. if(response=="err1"){return layer_lp("收藏", a), !1;}
  425. else if(response=="err2"){layer.alert("亲~不能收藏自己的店铺哦",{icon:5});return false;}
  426. else if(response=="ok"){
  427. layer.alert('成功收藏该店铺!',{icon:6});
  428. that.html('<i class="iconfont va-1">&#xe61c;</i>已收藏</a>');
  429. }else{alert("未知错误,请刷新重试");return false;}
  430. })
  431. });
  432. $(".imfav2").live("click", function() {
  433. if ($(this).hasClass("curr")) return !1;
  434. var id = $(this).attr("id");
  435. var that = $(this);
  436. $.get("../tem/favshopInto.php?id=" + id, function(response) {
  437. if(response=="err1"){return layer_lp("收藏", a), !1;}
  438. else if(response=="err2"){layer.alert("亲~不能收藏自己的店铺哦",{icon:5});return false;}
  439. else if(response=="ok"){
  440. layer.alert('成功收藏该店铺!',{icon:6});
  441. that.html('已收藏</a>');
  442. }else{alert("未知错误,请刷新重试");return false;}
  443. })
  444. });
  445. $(".Search-inp").live("keypress", function(a) {
  446. 13 == (a.keyCode ? a.keyCode : a.which ? a.which : a.charCode) && $(this).closest(".Search-box").find(".Search-btn").click()
  447. });
  448. $(".o_number").live("keyup", function() {
  449. var a = $(this).val();
  450. $(this).val(a.replace(/\D|^0/g, ""))
  451. });
  452. $(".checkLen").live("keyup", function() {
  453. CheckLen(this, parseInt($(this).attr("d_len")))
  454. });
  455. $(".installing").live("click", function() {
  456. $.get("../template/fujian/check.php?" + attArr(this), function(a) {
  457. layer_ly(a, "安装服务详情", !0, "600px")
  458. })
  459. });
  460. $(".preview").live("click", function() {
  461. var a = "undefined" == typeof $(this).attr("good") ? $("input[name=good]").val() : $(this).attr("good"),
  462. b = "undefined" == typeof $(this).attr("action") ? $("input[name=action]").val() : $(this).attr("action"),
  463. c = "undefined" == typeof $(this).attr("scroll") ? "no" : !0;
  464. layer_iframe("/html/preview/" + a + "/" + b, " ", "880px", "510px", c)
  465. });
  466. $(".serve_btn").live("click", function() {
  467. layer.load();
  468. var a = $(this),
  469. b = "undefined" == typeof $(this).attr("number") ? readmeta("Or-Number") : $(this).attr("number");
  470. $Me = $(".Edition a.cur");
  471. Aform("u", "", function(c) {
  472. if (-2 == c.state) return layer_login("购买", "." + a.attr("class")), !1;
  473. $.post("/deal/addserve", {
  474. number: b,
  475. money: parseInt($Me.attr("data")),
  476. edition: $Me.attr("title"),
  477. piece: $("#tkcnum").val()
  478. }, function(a) {
  479. layer_ly(a, "服务下单", !1, "700px")
  480. })
  481. })
  482. });
  483. $(".allmoney").live("click", function() {
  484. $.post("/html/allmoney", {
  485. number: $(this).attr("number")
  486. }, function(a) {
  487. layer_ly(a, !1, !0, "650px", "", "", !0)
  488. })
  489. });
  490. $(".Edition a").live("click", function() {
  491. var a = $(this).closest("div").find(".price_m"),
  492. b = $(this).closest("div").find(".Price_range");
  493. $(this).hasClass("cur") ? (a.html(b.html()), $(this).removeClass("cur")) : (a.html($(this).attr("data")), $(this).addClass("cur").siblings("a").removeClass("cur"))
  494. });
  495. $(".addred").live("click", function() {
  496. var a = $(this).siblings("#addred_num"),
  497. b = 1;
  498. "-" == $(this).val() && (b = -1);
  499. b = parseInt(a.val()) + b;
  500. if ("day" == a.attr("data")) {
  501. if (0 >= b || 60 < b) return layer.alert("交易周期,不能小于1天或大于60天", {
  502. icon: 2
  503. }), !1
  504. } else if ("piece" == a.attr("data")) {
  505. if (0 >= b) return layer.alert("购买数量不能小于1件", {
  506. icon: 2
  507. }), !1;
  508. $(".ly_total").html(toDecimal2(parseInt($(".ly_money").html()) * b))
  509. } else if ("use" == a.attr("data")) {
  510. if (0 >= b) return layer.alert("使用数量不能小于1件", {
  511. icon: 2
  512. }), !1;
  513. if (b > parseInt(a.attr("have"))) return layer.alert("使用数量不能大于拥有数量", {
  514. icon: 2
  515. }), !1
  516. }
  517. a.val(b)
  518. });
  519. $(".see_stats").live("click", function() {
  520. $.get("/html/stats", {
  521. number: $(this).attr("id"),
  522. type: $(this).attr("data"),
  523. order_id: $(this).attr("order_id")
  524. }, function(a) {
  525. layer_ly(a, "网站统计详情", !0, "652px")
  526. })
  527. });
  528. $(".login_click").live("click", function() {
  529. var a = $(this).attr("id");
  530. if ("qq" == a || "baidu" == a) var b = 720,
  531. c = 450;
  532. else "sina" == a ? (b = 770, c = 530) : "alipay" == a ? (b = .9 * $(window).width(), c = .96 * $(window).height()) : (b = 570, c = 530);
  533. document.domain = "hmbwz.com";
  534. layer_iframe("//my.hmbwz.com/oauth/login/" + a, $(this).attr("title"), b + "px", c + "px", "no", !1)
  535. });
  536. $(".Sw-share:not([ing])").live("click", function() {
  537. var a = $(".Sw-share-box .G-share"),
  538. b = $(this);
  539. b.attr("ing", 1);
  540. a.is(":visible") ? (b.removeClass("curr"), $(".Sw-share-box .G-share").animate({
  541. "margin-left": -104
  542. }, 500, function() {
  543. $(this).hide();
  544. b.removeAttr("ing")
  545. })) : (b.addClass("curr"), $(".Sw-share-box .G-share").css("margin-left", -104).show().animate({
  546. "margin-left": 0
  547. }, 500, function() {
  548. b.removeAttr("ing")
  549. }))
  550. });
  551. function openwindow(a, b, c, d) {
  552. window.open(a, b, "height=" + d + ",,innerHeight=" + d + ",width=" + c + ",innerWidth=" + c + ",top=" + (window.screen.availHeight - 30 - d) / 2 + ",left=" + (window.screen.availWidth - 10 - c) / 2 + ",toolbar=no,menubar=no,scrollbars=auto,resizable=yes,location=yes,status=no")
  553. }
  554. function replace_html(a) {
  555. a = a.replace(/<img[^>]*>/ig, "");
  556. a = a.replace(/<a[^>]*>/ig, "");
  557. return a = a.replace(/<\/a>/ig, "")
  558. }
  559. function CheckLen(a, b) {
  560. var c = $(a).val().replace(/[, ]/g, "");
  561. myinfo = getStrleng(c, b);
  562. myinfo[0] > 2 * b ? ($(a).val(c.substring(0, myinfo[1] - 1)), $count = 0) : $count = Math.floor((2 * b - myinfo[0]) / 2);
  563. $check_tisp = $(a).parent().siblings("#check_count");
  564. 0 >= $check_tisp.length && ($check_tisp = $(a).parent().parent().find("#check_count"));
  565. $check_tisp.html($count)
  566. }
  567. function getStrleng(a, b) {
  568. for (i = myLen = 0; i < a.length && myLen <= 2 * b; i++) 0 < a.charCodeAt(i) && 128 > a.charCodeAt(i) ? myLen++ : myLen += 2;
  569. return [myLen, i]
  570. }
  571. function judge(a, b) {
  572. return ("phone" == b ? /^0?1[3|4|5|6|7|8|9][0-9]\d{8}$/ : "tel" == b ? /^(?:(?:0\d{2,3})-)?(?:\d{7,8})(-(?:\d{3,}))?$/ : "domain" == b ? /^([\w-]+\.)+((com)|(cn)|(com\.cn)|(net)|(net\.cn)|(org)|(org\.cn)|(ac)|(ac\.cn)|(asia)|(audio)|(band)|(bid)|(bike)|(biz)|(blue)|(club)|(cab)|(camp)|(care)|(cash)|(cc)|(cheap)|(city)|(click)|(cloud)|(club)|(cn\.com)|(co)|(com\.hk)|(com\.tw)|(cool)|(date)|(design)|(download)|(email)|(engineer)|(eu)|(fail)|(farm)|(fish)|(flowers)|(fund)|(game)|(games)|(gift)|(gov\.cn)|(green)|(guide)|(guru)|(help)|(hiphop)|(hk)|(host)|(hosting)|(house)|(in)|(info)|(ink)|(io)|(it)|(jp)|(kim)|(la)|(land)|(lawyer)|(life)|(limo)|(link)|(live)|(loan)|(lol)|(ltd)|(ltd\.uk)|(market)|(me)|(me\.uk)|(media)|(mobi)|(mom)|(name)|(news)|(ninja)|(onLine)|(online)|(org\.uk)|(party)|(photo)|(pics)|(pink)|(plc\.uk)|(poker)|(press)|(pro)|(pub)|(pw)|(red)|(ren)|(rocks)|(science)|(sexy)|(sg)|(sh)|(shoes)|(shop)|(site)|(so)|(social)|(software)|(solar)|(space)|(store)|(studio)|(tax)|(tech)|(tips)|(tm)|(today)|(tools)|(top)|(town)|(toys)|(trade)|(travel)|(tv)|(tw)|(us)|(vc)|(video)|(vip)|(wang)|(watch)|(website)|(wiki)|(win)|(work)|(ws)|(xin)|(xyz)|(gg)|(zone)|(中国)|(信息)|(公司)|(在线)|(移动)|(网址)|(网店)|(网络))$/ : /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/).test(a) ? !0 : !1
  573. }
  574. function filterStr(a) {
  575. 100 < a.length && (a = a.substring(0, 100));
  576. for (var b = /[`~!@#$^&*()=|{}':;',\[\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?%+_]/, c = "", d = 0; d < a.length; d++) c += a.substr(d, 1).replace(b, "");
  577. return c
  578. }
  579. function readmeta(a) {
  580. return $("meta[name=" + a + "]").attr("content")
  581. }
  582. layer_photos = function(a) {
  583. a = a || ".bfiles";
  584. 0 < $(a).length && setTimeout(function() {
  585. layer.photos({
  586. photos: a,
  587. shift: 5
  588. })
  589. }, 100)
  590. };
  591. var acimg = function(a) {
  592. var b = $(".layui-layer-photos img"),
  593. c = $(".layui-layer-content"),
  594. d = $(".layui-layer-photos"),
  595. e = $(window).width(),
  596. f = $(window).height(),
  597. g = b.attr("ow"),
  598. k = b.attr("oh"),
  599. l = d.width(),
  600. m = d.height();
  601. g > l ? (f = (k - f) / 2 * -1, e = (g - e) / 2 * -1) : (f = (f - k) / 2, e = (e - g) / 2);
  602. d.css({
  603. height: k,
  604. width: g,
  605. top: f,
  606. left: e
  607. });
  608. b.attr({
  609. oh: m,
  610. ow: l
  611. });
  612. c.height(k);
  613. $(a).hide().siblings().show()
  614. };
  615. Aform = function(a, b, c, d) {
  616. $.ajax({
  617. type: "POST",
  618. url: "/aform/index/" + a,
  619. async: d || !1,
  620. data: b,
  621. dataType: "json",
  622. success: function(a) {
  623. c ? c(a) : Rs(a)
  624. },
  625. error: function() {
  626. layer.closeAll("loading");
  627. return !1
  628. }
  629. })
  630. };
  631. dform = function(a, b, c) {
  632. $.ajax({
  633. type: "POST",
  634. url: "/dform/" + b,
  635. async: !0,
  636. data: a,
  637. dataType: "json",
  638. success: function(a) {
  639. c ? c(a) : Rs(a)
  640. },
  641. error: function() {
  642. layer.closeAll("loading");
  643. return !1
  644. }
  645. })
  646. };
  647. Rs = function(a) {
  648. layer.closeAll("loading");
  649. switch (a.state) {
  650. case -1:
  651. layer.tips(a.info, a.element, {
  652. tips: [a.tips || 1, a.color || "#f90"],
  653. time: a.time || 4E3
  654. });
  655. $(a.element).val("").focus();
  656. a.fun && eval(a.fun);
  657. break;
  658. case -2:
  659. layer.confirm(a.info || "登录失效,请重新登录!", {
  660. icon: a.icon || 8,
  661. btn: [a.btn1 || "登录", a.btn2 || "取消"]
  662. }, function(b) {
  663. a.btn1fun ? eval(a.btn1fun) : a.url ? location.href = a.url : layer_login();
  664. layer.close(b)
  665. }, function(b) {
  666. a.btn2fun && eval(a.btn2fun);
  667. layer.close(b)
  668. });
  669. a.fun && eval(a.fun);
  670. break;
  671. case -3:
  672. a.fun && eval(a.fun);
  673. break;
  674. case 301:
  675. location.href = a.url;
  676. break;
  677. default:
  678. a.clear || layer.alert(a.info, {
  679. icon: a.state
  680. }, function(b) {
  681. a.fun ? eval(a.fun) + layer.close(b) : a.url ? 1 == a.url ? location.reload() : location.href = a.url : a.element ? $(a.element).val("").focus() + layer.close(b) : layer.close(b)
  682. })
  683. }
  684. };
  685. layer_ly = function(a, b, c, d, e) {
  686. layer.open({
  687. type: 1,
  688. title: b,
  689. closeBtn: 1,
  690. shade: [.05, "#000"],
  691. area: [d || "auto", e || "auto"],
  692. shadeClose: c || !1,
  693. content: a
  694. });
  695. layer.closeAll("loading")
  696. };
  697. layer_iframe = function(a, b, c, d, e, f) {
  698. d = d || "100px";
  699. layer.open({
  700. type: 2,
  701. title: b,
  702. shadeClose: f ? !0 : !1,
  703. shade: [.05, "#000"],
  704. area: [c, d],
  705. content: [a, e || "no"],
  706. success: function(a, b) {
  707. "100px" == d && window[a.find("iframe")[0].name].iframeautos(b)
  708. }
  709. })
  710. };
  711. function iframeautos(a) {
  712. $height = $(document).height() + 44;
  713. $height > $(window.parent.window).height() && ($height = parseInt(.9 * $(window.parent.window).height()));
  714. $top = ($(window.parent.window).height() - $height) / 2 + "px";
  715. parent.layer.iframeAuto(a);
  716. parent.layer.style(a, {
  717. height: $height + "px",
  718. top: $top
  719. })
  720. }
  721. Player_alert = function(a, b, c) {
  722. layer.closeAll();
  723. layer.alert(a, {
  724. icon: b
  725. }, function(a) {
  726. 1 == c ? location.reload() : 0 == c ? layer.close(a) : window.location.href = c
  727. })
  728. };
  729. function attArr(a) {
  730. a = a.attributes;
  731. for (var b = [], c = 0; c < a.length; c++) b.push(a[c].name + "=" + a[c].nodeValue.replace(/[~'!<>@#$%^&*()-+_=:]/g, ""));
  732. return b.join("&")
  733. }
  734. function loadScript(a) {
  735. var b = document.createElement("script");
  736. b.type = "text/javascript";
  737. b.src = a;
  738. document.body.appendChild(b)
  739. }
  740. list = function(a) {
  741. /*a = a || 0;
  742. var b = layer.load();
  743. 1 < a ? scTop(".mwz") : "R" == a && (a = parseInt($(".ohave").html()) || 0, a += "&Rf=1");
  744. $.ajax({
  745. type: "POST",
  746. url: "/apage/",
  747. async: !0,
  748. data: $("form:last *[value!='']").serialize() + "&page=" + a,
  749. dataType: "json",
  750. success: function(a) {
  751. if (-2 == a.state) return Rs(a), !1;
  752. $.each(a, function(a, b) {
  753. $("." + a).empty();
  754. $("." + a).html(b)
  755. });
  756. Cxchange();
  757. layer.close(b);
  758. 0 < $(".on-photo").length && layer_photos()
  759. },
  760. error: function() {
  761. layer.close(b);
  762. return !1
  763. }
  764. })*/
  765. };
  766. $(".message_a").live("click", function() {
  767. $(this).removeClass("message_a");
  768. bulk("batch=message_read&id=" + $(this).attr("data_id"))
  769. });
  770. function message_operate(a, b, c, d) {
  771. var e = getFormJson();
  772. e.action = $(a).attr("action");
  773. e.batch = c || e.batch;
  774. e.scene = d || 0;
  775. if (0 != b) {
  776. if (void 0 === e.C1) return layer.alert("至少选择一条操作对象", {
  777. icon: 5
  778. }), !1
  779. } else e.all = 1;
  780. bulk(e)
  781. }
  782. function bulk(a) {
  783. $.ajax({
  784. type: "POST",
  785. url: "/execute/routine/",
  786. async: !1,
  787. data: a,
  788. dataType: "json",
  789. success: function(a) {
  790. Rs(a);
  791. return !1
  792. },
  793. error: function() {
  794. return !1
  795. }
  796. })
  797. }
  798. $(".cart_delete").live("click", function() {
  799. var a = $(this),
  800. b = a.attr("number"),
  801. c = "undefined" == typeof $(this).attr("mode") ? 0 : 1;
  802. Aform("cart_delete", "&number=" + b + "&mode=" + c, function(b) {
  803. if (1 == b.clear) {
  804. var c = a.closest("dl");
  805. (1 < c.children("ul").length ? a.closest("ul") : c).slideUp(500, function() {
  806. $(this).remove();
  807. carmoney()
  808. });
  809. $.each(b, function(a, b) {
  810. 0 < $("." + a).length && $("." + a).empty().html(b)
  811. })
  812. }
  813. })
  814. });
  815. $(".cart_empty,.browse_empty,.message_empty").live("click", function() {
  816. var a = $(this),
  817. b = "undefined" == typeof a.attr("mode") ? 0 : 1,
  818. c = a.attr("class");
  819. layer.confirm("确定要<strong style='color:red'>" + $(this).attr("title") + "</strong>吗?", {
  820. icon: 3
  821. }, function(d) {
  822. Aform(c, "&mode=" + b, function(b) {
  823. 1 == b.state && ($.each(b, function(a, b) {
  824. 0 < $("." + a).length && $("." + a).empty().html(b)
  825. }), a.remove(), "cart_empty" == c && carmoney());
  826. layer.close(d)
  827. })
  828. })
  829. });
  830. function updateEndTime() {
  831. var a = (new Date).getTime();
  832. $(".ttime").each(function(b) {
  833. b = this.getAttribute("endTime");
  834. var c = (eval("new Date(" + b.replace(/\d+(?=-[^-]+$)/, function(a) {
  835. return parseInt(a, 10) - 1
  836. }).match(/\d+/g) + ")").getTime() - a) / 1E3;
  837. if (0 < c) {
  838. b = Math.floor(c % 60);
  839. var d = Math.floor(c / 60 % 60),
  840. e = Math.floor(c / 3600 % 24);
  841. c = Math.floor(c / 3600 / 24);
  842. $(this).html(c + "天" + e + "小时" + d + "分" + b + "秒")
  843. } else $(this).html("己结束")
  844. });
  845. setTimeout("updateEndTime()", 1E3)
  846. }
  847. function toDecimal2(a) {
  848. var b = parseFloat(a);
  849. if (isNaN(b)) return !1;
  850. b = Math.round(100 * a) / 100;
  851. a = b.toString();
  852. b = a.indexOf(".");
  853. 0 > b && (b = a.length, a += ".");
  854. for (; a.length <= b + 2;) a += "0";
  855. return a
  856. }
  857. function ifstr(a, b) {
  858. return rs = -1 != a.indexOf(b) ? !0 : !1
  859. }
  860. function CheckHzurl(a) {
  861. var b = RegExp();
  862. b.compile("^(http|https)://[A-Za-z0-9]{1,8}.hmbwz.com?[A-Za-z0-9-_%&?/.=]+$");
  863. return b.test(a) ? !0 : !1
  864. }
  865. function getFormJson(a) {
  866. var b = {};
  867. a = $(a || "form *[value!='']").serializeArray();
  868. $.each(a, function() {
  869. void 0 !== b[this.name] ? (b[this.name].push || (b[this.name] = [b[this.name]]), b[this.name].push(this.value || "")) : b[this.name] = this.value || ""
  870. });
  871. return b
  872. }
  873. function usize(a) {
  874. a = a.toLowerCase(); - 1 == a.indexOf("b") && (a += "b");
  875. /[0-9]*[a-z]b/.test(a) || -1 == a.indexOf("b") || (a = a.substring(0, a.indexOf("b")), a = Math.ceil(a / 1024) + "kb"); - 1 != a.indexOf("kb") && 5 < a.length && (a = a.substring(0, a.indexOf("kb")), a = Math.ceil(a / 1024) + "mb"); - 1 != a.indexOf("mb") && 5 < a.length && (a = a.substring(0, a.indexOf("mb")), a = Math.ceil(a / 1024) + "gb"); - 1 != a.indexOf("gb") && 5 < a.length && (a = a.substring(0, a.indexOf("gb")), a = Math.ceil(a / 1024) + "tb");
  876. return a
  877. }
  878. progress = function(a) {
  879. layer.closeAll("loading");
  880. $("form").keypress(function(a) {
  881. if (13 == a.which) return !1
  882. });
  883. 0 == $("#progress").length && $("body").append('<div id="progress"><span id="progress-bar" ><span id="progress-in" style="width:1%"></span></span><br><span id=\'progress-tisp\'>正在上传数据(<span id="progress-upload">1</span>/<span id="progress-uploaded">0</span>),请稍等…</span><ul><strong>回执信息:</strong></ul></div>');
  884. layer.open({
  885. type: 1,
  886. shade: [.02, "#000"],
  887. title: !1,
  888. closeBtn: 0,
  889. content: $("#progress")
  890. });
  891. if (a) return $("#progress-tisp").html("数据正在提交中,请稍等…"),
  892. $("#progress-in").width("100%"), !1
  893. };
  894. function SellContact(a, b) {
  895. scTop(a || "#layer_cont:first", 450);
  896. setTimeout(function() {
  897. prompt_people("#layer_cont", "商家的联系方式在这哦~", 2, 0)
  898. }, 800)
  899. }
  900. function scTop(a, b) {
  901. b || (b = 0);
  902. $("html, body").animate({
  903. scrollTop: $(a).offset().top - b
  904. }, 800)
  905. }
  906. function Cxchange() {
  907. 0 < $(":checkbox[name=C1]:not(:disabled):not(:checked)").length || 0 >= $(":checkbox[name=C1]:not(:disabled)").length ? Cchange($(":checkbox[name=xuan]"), !1) : Cchange($(":checkbox[name=xuan]"), !0)
  908. }
  909. function Cchange(a, b) {
  910. a.attr("checked", b);
  911. "undefined" !== typeof form && form.render("checkbox")
  912. }
  913. jQuery.cookie = function(a, b, c) {
  914. if ("undefined" != typeof b) {
  915. c = c || {};
  916. null === b && (b = "", c = $.extend({}, c), c.expires = -1);
  917. var d = "";
  918. c.expires && ("number" == typeof c.expires || c.expires.toUTCString) && ("number" == typeof c.expires ? (d = new Date, d.setTime(d.getTime() + 864E5 * c.expires)) : d = c.expires, d = "; expires=" + d.toUTCString());
  919. var e = c.path ? "; path=" + c.path : "",
  920. f = c.domain ? "; domain=" + c.domain : "";
  921. c = c.secure ? "; secure" : "";
  922. document.cookie = [a, "=", encodeURIComponent(b), d, e, f, c].join("")
  923. } else {
  924. b = null;
  925. if (document.cookie && "" != document.cookie)
  926. for (c =
  927. document.cookie.split(";"), d = 0; d < c.length; d++)
  928. if (e = jQuery.trim(c[d]), e.substring(0, a.length + 1) == a + "=") {
  929. b = decodeURIComponent(e.substring(a.length + 1));
  930. break
  931. }
  932. return b
  933. }
  934. };
  935. (function(d) {
  936. var g, c, f;
  937. g = {
  938. speed: 700,
  939. pause: 4E3,
  940. showItems: 1,
  941. mousePause: !0,
  942. height: 0,
  943. animate: !0,
  944. margin: 0,
  945. padding: 0,
  946. startPaused: !1,
  947. autoAppend: !0
  948. };
  949. c = {
  950. moveUp: function(a, b) {
  951. return c.showNextItem(a, b, "up")
  952. },
  953. moveDown: function(a, b) {
  954. return c.showNextItem(a, b, "down")
  955. },
  956. nextItemState: function(a, b) {
  957. var e, c;
  958. c = a.element.children("ul");
  959. e = a.itemHeight;
  960. 0 < a.options.height && (e = c.children("li:first").height());
  961. e += a.options.margin + 2 * a.options.padding;
  962. return {
  963. height: e,
  964. options: a.options,
  965. el: a.element,
  966. obj: c,
  967. selector: "up" === b ? "li:first" : "li:last",
  968. dir: b
  969. }
  970. },
  971. showNextItem: function(a, b, e) {
  972. var d;
  973. d = c.nextItemState(a, e);
  974. d.el.trigger("vticker.beforeTick");
  975. e = d.obj.children(d.selector).clone(!0);
  976. "down" === d.dir && d.obj.css("top", "-" + d.height + "px").prepend(e);
  977. b && b.animate ? a.animating || c.animateNextItem(d, a) : c.nonAnimatedNextItem(d);
  978. "up" === d.dir && a.options.autoAppend && e.appendTo(d.obj);
  979. return d.el.trigger("vticker.afterTick")
  980. },
  981. animateNextItem: function(a, b) {
  982. b.animating = !0;
  983. return a.obj.animate("up" === a.dir ? {
  984. top: "-=" + a.height + "px"
  985. } : {
  986. top: 0
  987. }, b.options.speed, function() {
  988. d(a.obj).children(a.selector).remove();
  989. d(a.obj).css("top", "0px");
  990. return b.animating = !1
  991. })
  992. },
  993. nonAnimatedNextItem: function(a) {
  994. a.obj.children(a.selector).remove();
  995. return a.obj.css("top", "0px")
  996. },
  997. nextUsePause: function() {
  998. var a, b;
  999. b = d(this).data("state");
  1000. a = b.options;
  1001. if (!b.isPaused && !c.hasSingleItem(b)) return f.next.call(this, {
  1002. animate: a.animate
  1003. })
  1004. },
  1005. startInterval: function() {
  1006. var a, b;
  1007. b = d(this).data("state");
  1008. a = b.options;
  1009. return b.intervalId = setInterval(function(a) {
  1010. return function() {
  1011. return c.nextUsePause.call(a)
  1012. }
  1013. }(this), a.pause)
  1014. },
  1015. stopInterval: function() {
  1016. var a;
  1017. if (a = d(this).data("state")) return a.intervalId && clearInterval(a.intervalId),
  1018. a.intervalId = void 0
  1019. },
  1020. restartInterval: function() {
  1021. c.stopInterval.call(this);
  1022. return c.startInterval.call(this)
  1023. },
  1024. getState: function(a, b) {
  1025. var c;
  1026. if (!(c = d(b).data("state"))) throw Error("vTicker: No state available from " + a);
  1027. return c
  1028. },
  1029. isAnimatingOrSingleItem: function(a) {
  1030. return a.animating || this.hasSingleItem(a)
  1031. },
  1032. hasMultipleItems: function(a) {
  1033. return 1 < a.itemCount
  1034. },
  1035. hasSingleItem: function(a) {
  1036. return !c.hasMultipleItems(a)
  1037. },
  1038. bindMousePausing: function(a) {
  1039. return function(a, e) {
  1040. return a.bind("mouseenter", function() {
  1041. if (!e.isPaused) return e.pausedByCode = !0,
  1042. c.stopInterval.call(this),
  1043. f.pause.call(this, !0)
  1044. }).bind("mouseleave", function() {
  1045. if (!e.isPaused || e.pausedByCode) return e.pausedByCode = !1,
  1046. f.pause.call(this, !1),
  1047. c.startInterval.call(this)
  1048. })
  1049. }
  1050. }(this),
  1051. setItemLayout: function(a, b, c) {
  1052. var f;
  1053. a.css({
  1054. overflow: "hidden",
  1055. position: "relative"
  1056. }).children("ul").css({
  1057. position: "absolute",
  1058. margin: 0,
  1059. padding: 0
  1060. }).children("li").css({
  1061. margin: c.margin,
  1062. padding: c.padding
  1063. });
  1064. return isNaN(c.height) || 0 === c.height ? (a.children("ul").children("li").each(function() {
  1065. if (d(this).height() > b.itemHeight) return b.itemHeight = d(this).height()
  1066. }), a.children("ul").children("li").each(function() {
  1067. return d(this).height(b.itemHeight)
  1068. }), f = c.margin + 2 * c.padding, a.height((b.itemHeight + f) * c.showItems + c.margin)) : a.height(c.height)
  1069. },
  1070. defaultStateAttribs: function(a, b) {
  1071. return {
  1072. itemCount: a.children("ul").children("li").length,
  1073. itemHeight: 0,
  1074. itemMargin: 0,
  1075. element: a,
  1076. animating: !1,
  1077. options: b,
  1078. isPaused: b.startPaused,
  1079. pausedByCode: !1
  1080. }
  1081. }
  1082. };
  1083. f = {
  1084. init: function(a) {
  1085. var b, e;
  1086. d(this).data("state") && f.stop.call(this);
  1087. b = jQuery.extend({}, g);
  1088. a = d.extend(b, a);
  1089. b = d(this);
  1090. e = c.defaultStateAttribs(b, a);
  1091. d(this).data("state", e);
  1092. c.setItemLayout(b, e, a);
  1093. a.startPaused || c.startInterval.call(this);
  1094. if (a.mousePause) return c.bindMousePausing(b, e)
  1095. },
  1096. pause: function(a) {
  1097. var b;
  1098. b = c.getState("pause", this);
  1099. if (!c.hasMultipleItems(b)) return !1;
  1100. b.isPaused = a;
  1101. b = b.element;
  1102. if (a) return d(this).addClass("paused"),
  1103. b.trigger("vticker.pause");
  1104. d(this).removeClass("paused");
  1105. return b.trigger("vticker.resume")
  1106. },
  1107. next: function(a) {
  1108. var b;
  1109. b = c.getState("next", this);
  1110. if (c.isAnimatingOrSingleItem(b)) return !1;
  1111. c.restartInterval.call(this);
  1112. return c.moveUp(b, a)
  1113. },
  1114. prev: function(a) {
  1115. var b;
  1116. b = c.getState("prev", this);
  1117. if (c.isAnimatingOrSingleItem(b)) return !1;
  1118. c.restartInterval.call(this);
  1119. return c.moveDown(b, a)
  1120. },
  1121. stop: function() {
  1122. c.getState("stop", this);
  1123. return c.stopInterval.call(this)
  1124. },
  1125. remove: function() {
  1126. var a;
  1127. a = c.getState("remove", this);
  1128. c.stopInterval.call(this);
  1129. a = a.element;
  1130. a.unbind();
  1131. return a.remove()
  1132. }
  1133. };
  1134. return d.fn.vTicker = function(a) {
  1135. return f[a] ? f[a].apply(this, Array.prototype.slice.call(arguments, 1)) : "object" !== typeof a && a ? d.error("Method " + a + " does not exist on jQuery.vTicker") : f.init.apply(this, arguments)
  1136. };
  1137. })(jQuery);
  1138. //寮瑰嚭鐧诲綍绐楀彛A
  1139. function logins() {
  1140. layer.open({
  1141. type: 2,
  1142. area: ['400px', '500px'],
  1143. title: ["浜诧紒鍏堢櫥涓�綍锛?", "border:none; background:#f2f2f2; color:#333;font-size:14px;"],
  1144. skin: 'layui-layer-nobg', //鏃犺竟妗?
  1145. content: ['../tem/openw.php', 'no']
  1146. });
  1147. }