9b506f74 by unknown

提示运行环境

1 parent d895b994
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
10 font-family: 黑体; 10 font-family: 黑体;
11 overflow: hidden; 11 overflow: hidden;
12 margin: 0px; 12 margin: 0px;
13 border: 0px;add 13 border: 0px;
14 padding: 0px; 14 padding: 0px;
15 background-color: #ffffff; 15 background-color: #ffffff;
16 color: #333333; 16 color: #333333;
......
...@@ -23,13 +23,10 @@ function toJson(str) { ...@@ -23,13 +23,10 @@ function toJson(str) {
23 return {} 23 return {}
24 } 24 }
25 } 25 }
26 // window.invokeJsPassCompanyCodeAndName = function(_params) { 26 layer.open({
27 // companyCode = _params.companyCode; 27 content: "isAndroid:"+ isAndroid+ ",isiOS" + isiOS,
28 // companyName = _params.companyName; 28 time: 2
29 // var jsonStr = ""; 29 })
30 // getSign(jsonStr);
31 // }
32 //
33 AppClient.prototype.getERCode = function (jsonStr, getCallback, postCallback) { 30 AppClient.prototype.getERCode = function (jsonStr, getCallback, postCallback) {
34 var dataParams = ""; 31 var dataParams = "";
35 if(isJson(jsonStr)){ 32 if(isJson(jsonStr)){
...@@ -47,8 +44,8 @@ AppClient.prototype.getERCode = function (jsonStr, getCallback, postCallback) { ...@@ -47,8 +44,8 @@ AppClient.prototype.getERCode = function (jsonStr, getCallback, postCallback) {
47 }) 44 })
48 }); 45 });
49 } else { 46 } else {
50 this.appObj.callHandler("getERCode", param, getCallback);
51 this.appObj.registerHandler("postERCOde", postCallback) 47 this.appObj.registerHandler("postERCOde", postCallback)
48 this.appObj.callHandler("getERCode", param, getCallback);
52 } 49 }
53 }; 50 };
54 AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) { 51 AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) {
...@@ -60,11 +57,6 @@ AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) { ...@@ -60,11 +57,6 @@ AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) {
60 from: 'H5', 57 from: 'H5',
61 params: dataParams 58 params: dataParams
62 }; 59 };
63 // layer.open({
64 // content: this.isAndroid,
65 // time: 2
66 //
67 // })
68 if(this.isAndroid) { 60 if(this.isAndroid) {
69 window.WebViewJavascriptBridge.callHandler('getGPS', jsonStr, function (res) { 61 window.WebViewJavascriptBridge.callHandler('getGPS', jsonStr, function (res) {
70 layer.open({ 62 layer.open({
...@@ -73,11 +65,10 @@ AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) { ...@@ -73,11 +65,10 @@ AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) {
73 }) 65 })
74 }); 66 });
75 } else { 67 } else {
76 this.appObj.callHandler("getERCode", param, getCallback);
77 this.appObj.registerHandler("postERCOde", postCallback)
78 }
79 this.appObj.registerHandler("postGPS", postCallback) 68 this.appObj.registerHandler("postGPS", postCallback)
80 this.appObj.callHandler("getGPS", param, getCallback); 69 this.appObj.callHandler("getGPS", param, getCallback);
70 }
71
81 72
82 // } 73 // }
83 }; 74 };
...@@ -118,5 +109,5 @@ if(isAndroid || isiOS) { ...@@ -118,5 +109,5 @@ if(isAndroid || isiOS) {
118 // 此处可以调用一些init的方法 109 // 此处可以调用一些init的方法
119 }); 110 });
120 } else { 111 } else {
121 appClient = new AppClient({}, false); 112 // appClient = new AppClient({}, false);
122 } 113 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!