소스 검색

bug 修复

lilei 4 년 전
부모
커밋
cc81d1cec4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/pages/store/index.vue

+ 2 - 2
src/pages/store/index.vue

@@ -429,8 +429,8 @@ export default {
         success: function(res) {
           console.log('getLocation success')
           // 30.644118,104.046339
-          _this.currentPosition.lat = 30.644118;
-          _this.currentPosition.lng = 104.046339;
+          _this.currentPosition.lat = res.latitude;
+          _this.currentPosition.lng = res.longitude;
           _this.getAreaCode();
         },
         fail: function(res) {