|
@@ -5,6 +5,12 @@
|
|
|
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();
|
|
|
+ }
|
|
|
if (c("#container").hasClass("push") == false) {
|
|
|
if (a == 0) {
|
|
|
c("#container,#user,#header,#nav_bottom").addClass("pull");
|
|
@@ -38,5 +44,13 @@
|
|
|
c(".reset_input").removeClass("ton").hide()
|
|
|
}
|
|
|
}
|
|
|
+ });
|
|
|
+ c("a").on("click",function (e) {
|
|
|
+ var token = window.hzAPI.getToken().token;//token
|
|
|
+ //判断token是否存在
|
|
|
+ if(!token){
|
|
|
+ window.location.href = 'login.html';
|
|
|
+ e.preventDefault();
|
|
|
+ }
|
|
|
})
|
|
|
})(Zepto);
|