diff --git a/pages/index/index.vue b/pages/index/index.vue index f789232..d2bc8f7 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -223,6 +223,7 @@ lng: gcj02Lng, lat: gcj02Lat } + console.log(gcj02Lat, gcj02Lng) // 初始化是否可打卡为 false this.isCanPunch = false; // 遍历每个打卡点 diff --git a/static/js/CommonFunction.js b/static/js/CommonFunction.js index bdc460c..e37fbf1 100644 --- a/static/js/CommonFunction.js +++ b/static/js/CommonFunction.js @@ -173,6 +173,7 @@ Vue.prototype.encryptPhone = (phone) => { // 计算两个经纬度间的距离 Vue.prototype.calculateDistance = (lat1, lon1, lat2, lon2) => { + console.log(lat1, lon1, lat2, lon2) const R = 6371e3; // 地球半径,单位:米 const φ1 = lat1 * (Math.PI / 180); const φ2 = lat2 * (Math.PI / 180); diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 42ddbfa..d691acb 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@