bf8c0cab by ex

h5

1 parent a90ff64e
......@@ -90,10 +90,6 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) {
if(isAndroid || isiOS) {
layer.open({
content: "isAndroid"+ isAndroid+'-' +"isiOS"+ isiOS,
time: 2
})
function setupWebViewJavascriptBridge(callback) {
if (window.WebViewJavascriptBridge) { return callback(WebViewJavascriptBridge); }
if (window.WVJBCallbacks) { return window.WVJBCallbacks.push(callback); }
......@@ -105,7 +101,7 @@ if(isAndroid || isiOS) {
setTimeout(function() { document.documentElement.removeChild(WVJBIframe) }, 0)
}
setupWebViewJavascriptBridge(function(bridge) {
appClient = new AppClient(bridge, false);
appClient = new AppClient(bridge, isAndroid);
// 此处可以调用一些init的方法
});
} else {
......
......@@ -158,6 +158,11 @@ angular.module('myApp')
// return;
// }
$rootScope.openScan = false;
layer.open({
content: appClient,
time: 5
})
if(appClient){
appClient.appObj.registerHandler('postERCode', function(data, responseCallback) {
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!