|
@@ -647,7 +647,11 @@
|
|
if (this.options.current == this.options.idx[s]) {
|
|
if (this.options.current == this.options.idx[s]) {
|
|
v += " current"
|
|
v += " current"
|
|
}
|
|
}
|
|
- t += '<li class="count' + v + '"><a><i class="' + this.options.icons[this.options.idx[s]] + '"></i><span>' + this.options.titles[this.options.idx[s]] + "</span></a></li>"
|
|
|
|
|
|
+ if(this.options.titles[this.options.idx[s]]=='门诊服务'){
|
|
|
|
+ t += '<li class="count' + v + '"><a><i class="' + this.options.icons[this.options.idx[s]] + '"></i><span>' + this.options.titles[this.options.idx[s]] + "</span></a></li>"
|
|
|
|
+ }else{
|
|
|
|
+ t += '<li class="count' + v + '"><a class="needlogin"><i class="' + this.options.icons[this.options.idx[s]] + '"></i><span>' + this.options.titles[this.options.idx[s]] + "</span></a></li>"
|
|
|
|
+ }
|
|
}
|
|
}
|
|
t += "</ul></div>";
|
|
t += "</ul></div>";
|
|
this.el.html(t);
|
|
this.el.html(t);
|
|
@@ -655,6 +659,13 @@
|
|
}, _addEvent: function () {
|
|
}, _addEvent: function () {
|
|
var s = this;
|
|
var s = this;
|
|
this.el.find(".listNav li").bind("tap", function () {
|
|
this.el.find(".listNav li").bind("tap", function () {
|
|
|
|
+ var token = window.hzAPI.getToken().token;//token
|
|
|
|
+ //判断token是否存在
|
|
|
|
+ if(!token){
|
|
|
|
+ window.location.href = 'login.html';
|
|
|
|
+ e.preventDefault();
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
var t = 0;
|
|
var t = 0;
|
|
if (h(this).find("i").hasClass("*.home")) {
|
|
if (h(this).find("i").hasClass("*.home")) {
|
|
t = 1
|
|
t = 1
|