|
楼主 |
发表于 2016-11-15 14:01:47
|
显示全部楼层
我直接用微网模板2模板 生成之后,。没有data组件的。只有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 : this.transUrl('./main.w')
},
"aboutUs" : {
url : this.transUrl('./channel/aboutUs.w')
},
"product" : {
url : this.transUrl('./channel/product.w')
},
"contactUs" : {
url : this.transUrl('./channel/contactUs.w')
},
"afterSales" : {
url : this.transUrl('./channel/afterSales.w')
},
删掉一个,就报错。
页面源码就是 <?xml version="1.0" encoding="utf-8"?>
<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window"
design="device:m;">
<div component="$UI/system/components/justep/model/model" xid="model" style="height:auto;left:390px;top:161px;"
onLoad="modelLoad"/>
<div component="$UI/system/components/justep/contents/contents" class="x-contents x-full"
active="0" xid="pages" swipe="false"></div>
</div>
|
|