e70e826a by ex

h5

1 parent d7627360
...@@ -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({
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!