0de7c4b6 by ex

无法获取定位提示

1 parent 982bafbd
...@@ -103,7 +103,7 @@ AppClient.prototype.getGPS = function (jsonStr, callback) { ...@@ -103,7 +103,7 @@ AppClient.prototype.getGPS = function (jsonStr, callback) {
103 setTimeout(function () { 103 setTimeout(function () {
104 if(!isRes){ 104 if(!isRes){
105 layer.open({ 105 layer.open({
106 content: '无法获取定位信息,检查定位设置,或重新开发' 106 content: '无法获取定位信息,检查定位设置,或重新打开'
107 }) 107 })
108 callback(30.2741500000, 120.1551500000, function(){}) 108 callback(30.2741500000, 120.1551500000, function(){})
109 } 109 }
......
...@@ -302,7 +302,9 @@ angular.module('myApp') ...@@ -302,7 +302,9 @@ angular.module('myApp')
302 $rootScope.$watch("isLoadFinish" , function(newVal , oldVal){ 302 $rootScope.$watch("isLoadFinish" , function(newVal , oldVal){
303 if(newVal === oldVal) return; 303 if(newVal === oldVal) return;
304 if(newVal) { 304 if(newVal) {
305 document.getElementById("sliderMenu").style.display = "block"; 305 if(document.getElementById("sliderMenu")){
306 document.getElementById("sliderMenu").style.display = "block";
307 }
306 } 308 }
307 }) 309 })
308 310
......
...@@ -94,6 +94,7 @@ angular.module('myApp') ...@@ -94,6 +94,7 @@ angular.module('myApp')
94 } 94 }
95 95
96 var initMarkers = function(points , map) { 96 var initMarkers = function(points , map) {
97 debugger
97 for(var i = 0 ; i < markers.length ; i++) { 98 for(var i = 0 ; i < markers.length ; i++) {
98 // document.getElementById("mapContainer").removeChild(markers[i].div); 99 // document.getElementById("mapContainer").removeChild(markers[i].div);
99 map.removeOverlay(markers[i]); 100 map.removeOverlay(markers[i]);
......
...@@ -25,7 +25,7 @@ angular.module('myApp.services') ...@@ -25,7 +25,7 @@ angular.module('myApp.services')
25 globalConfig.setParam("dingdaAPI", dingdaAPI); 25 globalConfig.setParam("dingdaAPI", dingdaAPI);
26 //--------------------财务服务-------------- 26 //--------------------财务服务--------------
27 // 生产环境 27 // 生产环境
28 var financeAPI = "http://finance.dy.dingdatech.com"; 28 var financeAPI = "http://47.99.81.49:50413";
29 // 测试环境 29 // 测试环境
30 //var financeAPI = "http://finance.api.dingdachuxing.com"; 30 //var financeAPI = "http://finance.api.dingdachuxing.com";
31 globalConfig.setParam("financeAPI", financeAPI); 31 globalConfig.setParam("financeAPI", financeAPI);
......
...@@ -5,7 +5,7 @@ angular.module('myApp.services') ...@@ -5,7 +5,7 @@ angular.module('myApp.services')
5 // var host = 'http://finance.dy.dingdatech.com/service'; 5 // var host = 'http://finance.dy.dingdatech.com/service';
6 6
7 // var host = 'http://lsz1.28ms.com/service' 7 // var host = 'http://lsz1.28ms.com/service'
8 var host = 'http://h5api.dy.dingdatech.com:880/service' 8 var host = 'http://47.99.81.49:50413/service'
9 9
10 var h5wxhost = 'http://h5api.dy.dingdachuxing.com/service/balance/'; 10 var h5wxhost = 'http://h5api.dy.dingdachuxing.com/service/balance/';
11 11
...@@ -115,7 +115,6 @@ angular.module('myApp.services') ...@@ -115,7 +115,6 @@ angular.module('myApp.services')
115 ' <input type="text" name="amount" value="'+amount+'" />' + 115 ' <input type="text" name="amount" value="'+amount+'" />' +
116 ' <input type="text" name="body" value="租车租金"/>' + 116 ' <input type="text" name="body" value="租车租金"/>' +
117 ' <input type="text" name="type" value="100" />' + 117 ' <input type="text" name="type" value="100" />' +
118 ' <input type="text" name="token" value="'+token+'" />' +
119 ' <input type="submit" id="ok">' + 118 ' <input type="submit" id="ok">' +
120 ' </input>' + 119 ' </input>' +
121 ' </form>' 120 ' </form>'
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!