cfbe0386 by ex

ios

1 parent 449137bf
......@@ -5,6 +5,9 @@
<meta name="viewport"
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
<title>东城行</title>
<script>
alert(1)
</script>
<!--<script src="js/mui/mui.min.js"></script>-->
<!--<link href="css/mui.min.css" rel="stylesheet"/>
<link href="css/app.css" rel="stylesheet"/>
......
......@@ -37,7 +37,7 @@ AppClient.prototype.getERCode = function (callbackName, callback, jsonStr) {
if (this.isAndroid) {
this.appObj.getERCode('H5', jsonStr);
} else {
this.appObj.callHandler("getERCode", iOSData, callback);
this.appObj.callHandler("postERCode", iOSData, callback);
}
};
AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) {
......@@ -52,14 +52,14 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) {
if (this.isAndroid) {
this.appObj.getGPS('H5', jsonStr);
} else {
this.appObj.callHandler("getGPS", iOSData, callback);
this.appObj.callHandler("postGPS", iOSData, callback);
}
};
window.getERCode = function (_params) {
alert(JSON.parse(_params))
window.postERCode = function (_params) {
alert(JSON.stringify(_params))
}
window.getGPS = function (params) {
alert(JSON.parse(params))
window.postGPS = function (params) {
alert(JSON.stringify(params))
}
if(window.android) {
......
......@@ -114,8 +114,8 @@ angular.module('myApp')
// }
$rootScope.openScan = false;
if(appClient){
appClient.getERCode('getERCode', function (res) {
alert(JSON.parse(res))
appClient.getERCode('postERCode', function (res) {
alert(JSON.stringify(res))
}, '')
} else {
layer.open({
......
......@@ -298,8 +298,8 @@ angular.module('myApp')
// }
// });
if(appClient){
appClient.getERCode('getGPS', function (res) {
alert(JSON.parse(res))
appClient.getERCode('postGPS', function (res) {
alert(JSON.stringify(res))
onSuccess({
latitude:30.2741500000,
longitude:120.1551500000
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!