|
本帖最后由 carbinechun 于 2016-10-18 16:59 编辑
报错提示具体如图所示。在index页面已定义var ShellImpl = require('$UI/system/lib/portal/shellImpl');
在model里也作了相关配置
var shellImpl = new ShellImpl(this, {
"contentsXid" : "contents",
"pageMappings" : {
"userinfo" : {
url : require.toUrl('./userinfo.w')
},
"login" : {
url : require.toUrl('./login.w')
}
}
});
这个错误是什么原因呢??
我的页面布局是这样的:index页面在content2中有windowContainer,src指向./login.w,在./login.w里面进行登陆处理,成功后跳转userinfo,出错就出在跳转userinfo后,感觉整个index框架的功能都不行了。我在userinfo里加了debugger,并alert()了一下,确定在modelLoad里走到了最后,没有报错,但页面上直接出现如图的报错。并返回到了index页面的content1,我再点对应的content2会出现另个类似的错误提醒
附上我userinfo里的处理
Model.prototype.modelLoad = function(event){
if(!justep.Shell.userName.get()){
justep.Shell.showMainPage();
this.close();
}
else{
var userID = justep.Shell.userID.get();
var userPwd = justep.Shell.userPwd.get();
var userData = this.comp("userData");
userData.filters.setVar("FID",userID);
userData.filters.setVar("FPwd",userPwd);
userData.refreshData();
if(userData.getCount() != 1){
justep.Shell.showMainPage();
this.close();
}
alert("登陆成功了");
}
};
|
-
|