| | |
| | | v-for="(item, index) in leftNavData" |
| | | :key="index" |
| | | @click="leftNavClick(item)" |
| | | v-show="!item.notShow" |
| | | > |
| | | <img :style="[imgStyle]" :src="item.img" alt="" /> |
| | | <span>{{ item.label }}</span> |
| | |
| | | }, |
| | | leftNavData: [ |
| | | { |
| | | flag: false, |
| | | flag: true, |
| | | label: "标签", |
| | | img: "/img/leftnav/tag.png", |
| | | // img: "/img/leftnav/tag.png", |
| | | img: "/img/leftnav/tag-checked.png", |
| | | normal: "/img/leftnav/tag.png", |
| | | checked: "/img/leftnav/tag-checked.png", |
| | | layer: "tagLayer", |
| | |
| | | type: 9, |
| | | imgSrc: "img/leftnav/map-aed.png", |
| | | // imgSrc: "img/mobile/pink.png", |
| | | notShow: true, |
| | | }, |
| | | { |
| | | flag: false, |
| | |
| | | that[that.leftNavData[n].layer].addOverlay(divIcon); //加入图标 |
| | | } |
| | | that[that.leftNavData[n].layer]["positions"] = position; |
| | | that[that.leftNavData[n].layer].show = false; |
| | | if (that.leftNavData[n].layer == "tagLayer") { |
| | | // that.leftNavData[n].img = that.leftNavData[n].checked; |
| | | } else { |
| | | that[that.leftNavData[n].layer].show = false; |
| | | } |
| | | }); |
| | | } |
| | | // setTimeout(() => { |
| | | // this.tagLayer.show = false; |
| | | // }, 500); |
| | | }, |
| | | changePoiton(data) { |
| | | // console.log(data); |
| | |
| | | .m-left-coutrol { |
| | | position: absolute; |
| | | left: -24px; |
| | | top: 96px; |
| | | top: 79px; |
| | | width: 25px; |
| | | height: 60px; |
| | | background-color: #fff; |