diff --git a/manifest.json b/manifest.json index 8c1a2bd..8466e67 100644 --- a/manifest.json +++ b/manifest.json @@ -72,6 +72,9 @@ "permission" : { "scope.userFuzzyLocation" : { "desc" : "你的位置信息将用于小程序位置接口的效果展示" + }, + "scope.userLocation" : { + "desc" : "用于获取当前所在城市信息" } }, "requiredPrivateInfos" : [ "getLocation", "chooseLocation" ] @@ -92,6 +95,13 @@ "router" : { "base" : "./", "mode" : "history" + }, + "sdkConfigs" : { + "maps" : { + "tencent" : { + "key" : "AKTBZ-OGICT-E5NXQ-LGEGK-H5AJ5-M2BOX" + } + } } } } diff --git a/pages/market/my/firm_info.vue b/pages/market/my/firm_info.vue index 9ae30c5..d3ceb97 100644 --- a/pages/market/my/firm_info.vue +++ b/pages/market/my/firm_info.vue @@ -29,8 +29,24 @@ - 企业介绍 + + 企业地图 + + + + + + 企业介绍 + @@ -64,6 +80,14 @@ import apiRoute from '@/api/apiRoute.js'; }, //数据列表 tableList:[], + + //地图相关 + //地图控件 + mapControls:{ + position:{ + + }, + } } }, onShow(){ @@ -106,6 +130,17 @@ import apiRoute from '@/api/apiRoute.js'; console.log(123,this.tableList) }, + // 获取标记点 + getMarkers(id,item) { + return [{ + id: id, + latitude: item.campus_coordinates_arr.lat, + longitude: item.campus_coordinates_arr.lng, + name: item.campus_address, + iconPath: '/static/icon-img/ding_wei.png' + }]; + }, + } } @@ -147,6 +182,17 @@ import apiRoute from '@/api/apiRoute.js'; } } .section_3{ + padding: 20rpx 22rpx; + .html{ + color: #fff; + } + .map_box{ + color: #fff; + display: flex; + justify-content: center; + } + } + .section_4{ padding: 20rpx 22rpx; padding-bottom: 250rpx; .html{ diff --git a/static/icon-img/ding_wei.png b/static/icon-img/ding_wei.png new file mode 100644 index 0000000..ee8da71 Binary files /dev/null and b/static/icon-img/ding_wei.png differ