(function (c) { config.init(); var a = 0; // var b = {idx: [1, 6, 7, 8], count: 4, current: 1}; var b = {idx: [1, 6, 7, 8], count: 2, current: 1}; icoNavFx.doing(c("#nav_bottom"), b); c(".login_open").on("touchend", function (d) { var token = window.hzAPI.getToken().token;//token //判断token是否存在 if(!token){ window.location.href = 'login.html'; e.preventDefault(); }else{ window.location.href = 'loginOut.html'; } // if (c("#container").hasClass("push") == false) { // if (a == 0) { // c("#container,#user,#header,#nav_bottom").addClass("pull"); // a = 1; // c(window).on("touchmove", function (f) { // f.preventDefault(); // f.stopImmediatePropagation() // }); // c("#us_panel").addClass("hide") // } else { // c("#container,#user,#header,#nav_bottom").removeClass("pull"); // a = 0; // c(window).unbind("touchmove") // } // } return false }); c(".search_input").on("input", function () { if (c(".search_input").val().length > 0) { c(".reset_input").show() } else { c(".reset_input").hide() } }); c(".reset_input").on("touchstart touchend", function (d) { if (d.type == "touchstart") { c(".search_input").val(""); c(".reset_input").addClass("ton") } else { if (d.type == "touchend") { c(".reset_input").removeClass("ton").hide() } } }); c("a.needlogin").on("click",function (e) { var token = window.hzAPI.getToken().token;//token //判断token是否存在 if(!token){ window.location.href = 'login.html'; e.preventDefault(); } }) })(Zepto);