|
发表于 2016-1-14 14:50:33
|
显示全部楼层
define(function(require){
var $ = require("jquery");
var justep = require("$UI/system/lib/justep");
var ShellImpl = require('$UI/system/lib/portal/shellImpl');
var Model = function(){
this.callParent();
var shellImpl = new ShellImpl(this, {
"contentsXid" : "pages",
"pageMappings" : {
"main":{
url : '$UI/demo/tuniu/index_main.w'
},
"searchList":{
url : '$UI/demo/tuniu/searchList.w'
},
"detail":{
url : '$UI/demo/tuniu/detail.w'
}
}
});
};
Model.prototype.modelLoad = function(event){
justep.Shell.showPage("main");
};
return Model;
});首页这样写,其他页面调用justep.Shell.showPage("detail");方法 |
|