Explorar el Código

修改ios定位

墨云 hace 2 años
padre
commit
648f71a1f3
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      whepi-ui/templates/home/getLocation.js

+ 2 - 2
whepi-ui/templates/home/getLocation.js

@@ -61,8 +61,8 @@ function getLocation() {
         }
       })
       var coord = new qq.maps.LatLng(res.latitude, res.longitude)
-      longitude = res.longitude;
-      latitude = res.latitude;
+      longitude = parseFloat(res.longitude);
+      latitude = parseFloat(res.latitude);
       $("#commit").removeAttr("disabled",true).css("pointer-events","");
       $("#commit").css("background-color","#1AAD19").css("color","#FFFFFF");
       $("#dingwei").hide();