ios
Showing
4 changed files
with
13 additions
and
10 deletions
| ... | @@ -5,6 +5,9 @@ | ... | @@ -5,6 +5,9 @@ |
| 5 | <meta name="viewport" | 5 | <meta name="viewport" |
| 6 | content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/> | 6 | content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/> |
| 7 | <title>东城行</title> | 7 | <title>东城行</title> |
| 8 | <script> | ||
| 9 | alert(1) | ||
| 10 | </script> | ||
| 8 | <!--<script src="js/mui/mui.min.js"></script>--> | 11 | <!--<script src="js/mui/mui.min.js"></script>--> |
| 9 | <!--<link href="css/mui.min.css" rel="stylesheet"/> | 12 | <!--<link href="css/mui.min.css" rel="stylesheet"/> |
| 10 | <link href="css/app.css" rel="stylesheet"/> | 13 | <link href="css/app.css" rel="stylesheet"/> | ... | ... |
| ... | @@ -37,7 +37,7 @@ AppClient.prototype.getERCode = function (callbackName, callback, jsonStr) { | ... | @@ -37,7 +37,7 @@ AppClient.prototype.getERCode = function (callbackName, callback, jsonStr) { |
| 37 | if (this.isAndroid) { | 37 | if (this.isAndroid) { |
| 38 | this.appObj.getERCode('H5', jsonStr); | 38 | this.appObj.getERCode('H5', jsonStr); |
| 39 | } else { | 39 | } else { |
| 40 | this.appObj.callHandler("getERCode", iOSData, callback); | 40 | this.appObj.callHandler("postERCode", iOSData, callback); |
| 41 | } | 41 | } |
| 42 | }; | 42 | }; |
| 43 | AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) { | 43 | AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) { |
| ... | @@ -52,14 +52,14 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) { | ... | @@ -52,14 +52,14 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) { |
| 52 | if (this.isAndroid) { | 52 | if (this.isAndroid) { |
| 53 | this.appObj.getGPS('H5', jsonStr); | 53 | this.appObj.getGPS('H5', jsonStr); |
| 54 | } else { | 54 | } else { |
| 55 | this.appObj.callHandler("getGPS", iOSData, callback); | 55 | this.appObj.callHandler("postGPS", iOSData, callback); |
| 56 | } | 56 | } |
| 57 | }; | 57 | }; |
| 58 | window.getERCode = function (_params) { | 58 | window.postERCode = function (_params) { |
| 59 | alert(JSON.parse(_params)) | 59 | alert(JSON.stringify(_params)) |
| 60 | } | 60 | } |
| 61 | window.getGPS = function (params) { | 61 | window.postGPS = function (params) { |
| 62 | alert(JSON.parse(params)) | 62 | alert(JSON.stringify(params)) |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | if(window.android) { | 65 | if(window.android) { | ... | ... |
| ... | @@ -114,8 +114,8 @@ angular.module('myApp') | ... | @@ -114,8 +114,8 @@ angular.module('myApp') |
| 114 | // } | 114 | // } |
| 115 | $rootScope.openScan = false; | 115 | $rootScope.openScan = false; |
| 116 | if(appClient){ | 116 | if(appClient){ |
| 117 | appClient.getERCode('getERCode', function (res) { | 117 | appClient.getERCode('postERCode', function (res) { |
| 118 | alert(JSON.parse(res)) | 118 | alert(JSON.stringify(res)) |
| 119 | }, '') | 119 | }, '') |
| 120 | } else { | 120 | } else { |
| 121 | layer.open({ | 121 | layer.open({ | ... | ... |
| ... | @@ -298,8 +298,8 @@ angular.module('myApp') | ... | @@ -298,8 +298,8 @@ angular.module('myApp') |
| 298 | // } | 298 | // } |
| 299 | // }); | 299 | // }); |
| 300 | if(appClient){ | 300 | if(appClient){ |
| 301 | appClient.getERCode('getGPS', function (res) { | 301 | appClient.getERCode('postGPS', function (res) { |
| 302 | alert(JSON.parse(res)) | 302 | alert(JSON.stringify(res)) |
| 303 | onSuccess({ | 303 | onSuccess({ |
| 304 | latitude:30.2741500000, | 304 | latitude:30.2741500000, |
| 305 | longitude:120.1551500000 | 305 | longitude:120.1551500000 | ... | ... |
-
Please register or sign in to post a comment