Model.prototype.modelLoad = function(event){
var a = localStorage.getItem("userId");
var b = localStorage.getItem("userMobile");
if(a!=null && b!=null){
this.comp('loginBtn').set({label:'退出'});
var span = $('span[xid="span17"]').html("是否退出登录");
}else{
this.comp('loginBtn').set({label:'登录'});
var span = $('span[xid="span17"]').html("请先登录");
}
};
复制代码