|
本帖最后由 13167185077 于 2016-4-22 14:03 编辑
我的index.w是这么写的 但是运行报错
define(function(require){
var $ = require("jquery");
var justep = require("$UI/system/lib/justep");
var ShellImpl = require('$UI/system/lib/portal/shellImpl');
require("$UI/system/lib/cordova/cordova");
require("cordova!cn.jpush.phonegap.JPushPlugin");
Model.prototype.backBtnClick = function() {
justep.Portal.closeWindow();
};
var Model = function(){
this.callParent();
var shellImpl = new ShellImpl(this, {
"contentsXid" : "pages",
"pageMappings" : {
"about":{
url : '$UI/DingDingClass/about/mainActivity.w'
},
"maplocation":{
url : '$UI/DingDingClass/map/mainActivity.w'
},
"register":{
url : '$UI/DingDingClass/user/bindUser.w'
}
}
});
};
Model.prototype.modelLoad = function(event){
document.addEventListener("jpush.receiveMessage", onReceiveMessage, false);
// document.addEventListener("deviceready", onDeviceReady, false);
// // 加载完成
// function onDeviceReady() {
// window.plugins.jPushPlugin.init();
//
// window.plugins.jPushPlugin.openNotificationInAndroidCallback = function(data) {//点击消息窗口
// var json=eval("("+data+")");//转为json对象
// var content=json.extras["cn.jpush.android.ALERT"];//消息内容
// alert("消息内容="+content);
// var url=json.extras["cn.jpush.android.EXTRA"].url;
// location.href=url;
// }
// }
};
return Model
});
运行报错的错误信息为E:\a.png
运行报错的错误信息为file:///E:/a.png
Uncaught Error: __justepClientErrorStart__{"code":"JUSTEP230103","message":"加载/x5/UI2/v_5ab2a5a7413b4e3195091f066e47c6f1l_zh_CNs_d_m/DingDingClass/index.w?$pageType=model&$noCompile=true出错"}__justepClientErrorEnd__
|
|