|
楼主 |
发表于 2017-2-21 16:01:06
|
显示全部楼层
var Model = function(){
this.callParent();
var shellImpl = new ShellImpl(this, {
"contentsXid" : "pages",
"pageMappings" : {
"index":{
url : require.toUrl('./demo2.w')//手势验证
},
"login":{
url : require.toUrl('./index_main.w')//跳到首页
},
}
});
};
Model.prototype.modelLoad = function(event){
alert("hanfuzuimei!!!");
var me = this;
document.addEventListener("resume", function() {
alert("汉服最美!!!");
var ps = localStorage.getItem('password');
var uid = localStorage.getItem('uid');
if(uid != null && ps != null ){
justep.Shell.showPage("index");
//}
}, false);
var ps = localStorage.getItem('password');
var uid = localStorage.getItem('uid');
if(ps != null ){
justep.Shell.showPage("index");
return;
}else{
justep.Shell.showPage("login");
//me.comp("indexDialog").open();
}
};
按home键或者那个框框键,点金页面,按理应该先加载手势页面,但是每次只加载一次,后面的就不加载手势页面了
|
|