瀏覽代碼

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) {