39e1fc7f by ex

js

1 parent 65654f9b
...@@ -60,9 +60,13 @@ AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) { ...@@ -60,9 +60,13 @@ AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) {
60 from: 'H5', 60 from: 'H5',
61 params: dataParams 61 params: dataParams
62 }; 62 };
63 63 // layer.open({
64 // content: this.isAndroid,
65 // time: 2
66 //
67 // })
64 if(this.isAndroid) { 68 if(this.isAndroid) {
65 window.WebViewJavascriptBridge.appObj.callHandler('getGPS', jsonStr, function (res) { 69 window.WebViewJavascriptBridge.callHandler('getGPS', jsonStr, function (res) {
66 layer.open({ 70 layer.open({
67 content: res, 71 content: res,
68 time: 2 72 time: 2
...@@ -100,11 +104,7 @@ if(isAndroid || isiOS) { ...@@ -100,11 +104,7 @@ if(isAndroid || isiOS) {
100 setupWebViewJavascriptBridge(function(bridge) { 104 setupWebViewJavascriptBridge(function(bridge) {
101 if(isAndroid) { 105 if(isAndroid) {
102 appClient = new AppClient(bridge, true); 106 appClient = new AppClient(bridge, true);
103 layer.open({
104 content: JSON.stringify(appClient),
105 time: 2
106 107
107 })
108 bridge.init(function (message, responseCallback) { 108 bridge.init(function (message, responseCallback) {
109 responseCallback({'Javascript Responds': 'Wee!'}) 109 responseCallback({'Javascript Responds': 'Wee!'})
110 }) 110 })
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!