Commit 9f4a93d3 authored by 王玉鑫's avatar 王玉鑫

feat: 列表页地图区划点

parent 5e7897f2
This diff is collapsed.
......@@ -96,7 +96,7 @@
</u-empty>
</view>
<div v-else class="content z-100" :class="{'no-filter': activeBar === 1}">
<map id="mapId" @markertap="handleMarkerClick" @callouttap="handleMarkerClick" :scale='10' style="width: 100%;height: calc(100vh - 246rpx)" latitude="31.464086" longitude="116.944909" class="map" :markers="markers">
<map id="mapId" :polygons="polygons" @markertap="handleMarkerClick" @callouttap="handleMarkerClick" :scale='10' style="width: 100%;height: calc(100vh - 246rpx)" latitude="31.464086" longitude="116.944909" class="map" :markers="markers">
</map>
<div v-if="activeInfo.id" :key="activeInfo.id" @click="toDetail(activeInfo)" style="position: fixed;padding: 0 30rpx;bottom: 30rpx;width: 100vw;z-index: 999;box-sizing: border-box;">
<park-card-vue :key="activeInfo.id" :key-words="keyWords" :detail="activeInfo" v-if="activeBar == 0"></park-card-vue>
......@@ -114,6 +114,7 @@ import carrierCardVue from "../../components/media/carrier-card.vue";
import parkCardVue from "../../components/media/park-card.vue";
import landCardVue from "../../components/media/land-card.vue";
import dropdownVue from "../../components/dropdown/dropdown.vue";
import areaData from './areaData.js';
export default {
components: {
carrierCardVue,
......@@ -130,6 +131,14 @@ export default {
pageNum: 1,
haveMore: true,
isLoading: true,
polygons: [
{
points: areaData,
strokeWidth: 2,
strokeColor: '#4274EF',
fillColor: '#4274EF10',
}
],
//筛选菜单列表
menuList: [
[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment