9f0d88d7 by ex

h5 2

1 parent fea2f665
...@@ -40,7 +40,12 @@ AppClient.prototype.getERCode = function (callbackName, callback, jsonStr) { ...@@ -40,7 +40,12 @@ AppClient.prototype.getERCode = function (callbackName, callback, jsonStr) {
40 params: dataParams 40 params: dataParams
41 }; 41 };
42 if (this.isAndroid) { 42 if (this.isAndroid) {
43 this.appObj.getERCode('H5', jsonStr); 43 window.WebViewJavascriptBridge.callHandler('getERCode', jsonStr, function (res) {
44 layer.open({
45 content: res,
46 time: 2
47 })
48 });
44 } else { 49 } else {
45 this.appObj.callHandler("getERCode", iOSData, callback); 50 this.appObj.callHandler("getERCode", iOSData, callback);
46 51
...@@ -106,7 +111,7 @@ if(isAndroid || isiOS) { ...@@ -106,7 +111,7 @@ if(isAndroid || isiOS) {
106 } 111 }
107 setupWebViewJavascriptBridge(function(bridge) { 112 setupWebViewJavascriptBridge(function(bridge) {
108 if(isAndroid) { 113 if(isAndroid) {
109 114 appClient = new AppClient(bridge, isAndroid);
110 } 115 }
111 if (isiOS) { 116 if (isiOS) {
112 appClient = new AppClient(bridge, isAndroid); 117 appClient = new AppClient(bridge, isAndroid);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!