9b506f74 by unknown

提示运行环境

1 parent d895b994
......@@ -10,7 +10,7 @@
font-family: 黑体;
overflow: hidden;
margin: 0px;
border: 0px;add
border: 0px;
padding: 0px;
background-color: #ffffff;
color: #333333;
......
......@@ -23,13 +23,10 @@ function toJson(str) {
return {}
}
}
// window.invokeJsPassCompanyCodeAndName = function(_params) {
// companyCode = _params.companyCode;
// companyName = _params.companyName;
// var jsonStr = "";
// getSign(jsonStr);
// }
//
layer.open({
content: "isAndroid:"+ isAndroid+ ",isiOS" + isiOS,
time: 2
})
AppClient.prototype.getERCode = function (jsonStr, getCallback, postCallback) {
var dataParams = "";
if(isJson(jsonStr)){
......@@ -47,8 +44,8 @@ AppClient.prototype.getERCode = function (jsonStr, getCallback, postCallback) {
})
});
} else {
this.appObj.callHandler("getERCode", param, getCallback);
this.appObj.registerHandler("postERCOde", postCallback)
this.appObj.callHandler("getERCode", param, getCallback);
}
};
AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) {
......@@ -60,11 +57,6 @@ AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) {
from: 'H5',
params: dataParams
};
// layer.open({
// content: this.isAndroid,
// time: 2
//
// })
if(this.isAndroid) {
window.WebViewJavascriptBridge.callHandler('getGPS', jsonStr, function (res) {
layer.open({
......@@ -73,11 +65,10 @@ AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) {
})
});
} else {
this.appObj.callHandler("getERCode", param, getCallback);
this.appObj.registerHandler("postERCOde", postCallback)
}
this.appObj.registerHandler("postGPS", postCallback)
this.appObj.callHandler("getGPS", param, getCallback);
}
// }
};
......@@ -118,5 +109,5 @@ if(isAndroid || isiOS) {
// 此处可以调用一些init的方法
});
} else {
appClient = new AppClient({}, false);
// appClient = new AppClient({}, false);
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!