h5
Showing
1 changed file
with
0 additions
and
16 deletions
| ... | @@ -162,29 +162,13 @@ angular.module('myApp') | ... | @@ -162,29 +162,13 @@ angular.module('myApp') |
| 162 | 162 | ||
| 163 | if(isAndroid){ | 163 | if(isAndroid){ |
| 164 | window.WebViewJavascriptBridge.registerHandler('postERCode', function(data, responseCallback) { | 164 | window.WebViewJavascriptBridge.registerHandler('postERCode', function(data, responseCallback) { |
| 165 | // layer.open({ | ||
| 166 | // content: JSON.stringify(data), | ||
| 167 | // time: 10 | ||
| 168 | // }); | ||
| 169 | layer.open({ | 165 | layer.open({ |
| 170 | content: data, | 166 | content: data, |
| 171 | time: 10 | 167 | time: 10 |
| 172 | }); | 168 | }); |
| 173 | // log('ObjC called testJavascriptHandler with', data) | ||
| 174 | // var responseData = { 'Javascript Says':'Right back atcha!' } | ||
| 175 | // log('JS responding with', responseData) | ||
| 176 | // responseCallback(responseData) | ||
| 177 | }) | 169 | }) |
| 178 | window.WebViewJavascriptBridge.callHandler('getERCode', function(data, responseCallback) { | 170 | window.WebViewJavascriptBridge.callHandler('getERCode', function(data, responseCallback) { |
| 179 | }) | 171 | }) |
| 180 | |||
| 181 | // window.WebViewJavascriptBridge.callHandler('getGPS', function (res) { | ||
| 182 | // layer.open({ | ||
| 183 | // content: res, | ||
| 184 | // time: 5 | ||
| 185 | // }); | ||
| 186 | // }, '') | ||
| 187 | |||
| 188 | }else if(isiOS){ | 172 | }else if(isiOS){ |
| 189 | appClient.appObj.registerHandler('postERCode', function(data, responseCallback) { | 173 | appClient.appObj.registerHandler('postERCode', function(data, responseCallback) { |
| 190 | layer.open({ | 174 | layer.open({ | ... | ... |
-
Please register or sign in to post a comment