Browse Source

bug 修复

lilei 4 years ago
parent
commit
cc81d1cec4
1 changed files with 2 additions and 2 deletions
  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) {