소스 검색

测试地图

peiguo 4 년 전
부모
커밋
0e7b420944
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      whepi-ui/templates/home/getLocation.js

+ 1 - 0
whepi-ui/templates/home/getLocation.js

@@ -13,6 +13,7 @@ function getLocation() {
   //return;
   wx.getLocation({
     type: 'wgs84',
+    altitude: "true",
     success: function (res) {
       // alert(JSON.stringify(res));