diff --git a/src/components/AiTMap.vue b/src/components/AiTMap.vue index 64abcb6b..2486313a 100644 --- a/src/components/AiTMap.vue +++ b/src/components/AiTMap.vue @@ -51,10 +51,26 @@ export default { document.body.appendChild(script); }, initTMap() { + var latLng = {} + if(this.config.lat) { //通用版 + latLng = this.config + }else { //上架版 + wx.getLocation({ + type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02' + success: (res) => { + console.log(res) + latLng = { + lat: res.latitude, + lng: res.longitude + } + } + }); + } + this.mapLib = TMap this.tmap = new TMap.Map(this.$refs.tmap, { zoom: 11, - // center: new TMap.LatLng(this.config.lat, this.config.lng), + center: new TMap.LatLng(latLng.lat, latLng.lng), ...this.ops }) this.$emit('loaded') diff --git a/src/saas/AppHealthUp/AppHealthUp.vue b/src/saas/AppHealthUp/AppHealthUp.vue index 59b9cee7..79c59640 100644 --- a/src/saas/AppHealthUp/AppHealthUp.vue +++ b/src/saas/AppHealthUp/AppHealthUp.vue @@ -278,7 +278,6 @@ uni-page-body { .AppHealthUp { .emptyWrap { - background: #f5f5f5; margin: 0; } ::v-deep .emptyText{