|

楼主 |
发表于 2018-12-12 19:34:40
|
显示全部楼层
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 : require.toUrl('./main.w')
},
"home" : {
url : require.toUrl('./home.w')
},
"category" : {
url : require.toUrl('./category.w')
},
"list" : {
url : require.toUrl('./list.w')
},
"shopgoods" : {
url : require.toUrl('./shopgoods.w')
},
"find" : {
url : require.toUrl('./find.w')
},
"cart" : {
url : require.toUrl('./cart.w')
},
"person" : {
url : require.toUrl('./person.w')
},
"taobao" : {
url : require.toUrl('./taobao.w')
}
}
})
};
Model.prototype.modelLoad = function(event) {
debugger;
justep.Shell.setIsSinglePage(true);
justep.Shell.showPage("main");
};
return Model;
}); |
|