From 1b3ca37c3baec6b9c77d11955ecf68e19bde9ff8 Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Thu, 25 Apr 2024 19:53:08 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/project/map.vue | 56 +++++++++++++++++++-------------------- pages/project/project.vue | 4 +-- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/pages/project/map.vue b/pages/project/map.vue index 3c304d6..30044e1 100644 --- a/pages/project/map.vue +++ b/pages/project/map.vue @@ -89,35 +89,35 @@ }, onShow() { const _this = this - // uni.getLocation({ - // type: 'gcj02', - // success: function(res) { - // const { - // longitude, - // latitude - // } = res - // _this.$api.msg('成功获得周边信息') - // console.log('成功获得周边信息', res) - // _this.latitude = latitude - // _this.longitude = longitude - // _this.$api.msg('获得周边信息') - // _this.getList(lon, lat).then((covers) => { - // _this.covers = covers - // }) - // }, - // fail: function(err) { - // _this.$api.msg('无法获得周边信息') - // }, - // complete: function(e) {} - // }) - this.mockGetLocation().then((myPoint) => { - // this.latitude = myPoint.latitude - // this.longitude = myPoint.longitude - _this.getList(_this.longitude, _this.latitude).then((covers) => { - _this.$api.msg('成功获得周边信息') - _this.covers = covers - }) + uni.getLocation({ + type: 'gcj02', + success: function(res) { + const { + longitude, + latitude + } = res + // _this.$api.msg('成功获得周边信息') + // console.log('成功获得周边信息', res) + _this.latitude = latitude + _this.longitude = longitude + // _this.$api.msg('获得周边信息') + _this.getList(longitude, latitude).then((covers) => { + _this.covers = covers + }) + }, + fail: function(err) { + _this.$api.msg('无法获得周边信息') + }, + complete: function(e) {} }) + // this.mockGetLocation().then((myPoint) => { + // // this.latitude = myPoint.latitude + // // this.longitude = myPoint.longitude + // _this.getList(_this.longitude, _this.latitude).then((covers) => { + // _this.$api.msg('成功获得周边信息') + // _this.covers = covers + // }) + // }) }, methods: { openMap(lon, lat) { diff --git a/pages/project/project.vue b/pages/project/project.vue index 0181ecc..51f445a 100644 --- a/pages/project/project.vue +++ b/pages/project/project.vue @@ -632,7 +632,7 @@ z-index: 1; left: 30rpx; */ position: relative; - width: 50px; + width: 65px; text-align: center; line-height: 30px; font-size: 14px; @@ -670,7 +670,7 @@ width: 0; height: 0; border-left: 10px solid transparent; - border-right: 10px solid #949396; + border-right: 10px solid #4171f9; /* 这里的颜色可以根据你的需要进行修改 */ border-bottom: 10px solid transparent; position: absolute;