diff --git a/src/styles/reset.css b/src/styles/reset.css
index ff07db8..9d6768d 100644
--- a/src/styles/reset.css
+++ b/src/styles/reset.css
@@ -109,3 +109,7 @@ table {
position: absolute;
}
+.parkpop-content{
+ color: #f00;
+}
+
diff --git a/src/views/mapsection.vue b/src/views/mapsection.vue
index 689ad64..0819688 100644
--- a/src/views/mapsection.vue
+++ b/src/views/mapsection.vue
@@ -77,6 +77,9 @@ export default {
currentIndex:0
}
},
+ created() {
+
+ },
mounted() {
this.$nextTick(() => {
this.scroll = new BScroll(this.$refs.parkwrap,{
@@ -149,35 +152,28 @@ export default {
var myLabel;
marker.addEventListener("mouseover", function (e) {
myLabel = new BMap.Label(
- '
' +
- '
112321312312
' +
- '
',
+ '12321312
',
{
offset: new BMap.Size(30, -85), //label的偏移量,为了让label的中心显示在点上
position: point
});
myLabel.setStyle({
- color: "#F0F0F0",
+ // color: "#0f0",
fontSize: "12px",
- padding: "5px",
- whiteSpace: "normal",
- backgroundColor: "#f00",
- border: "0px",
- zIndex: "1000"
+ // padding: "5px",
+ // whiteSpace: "normal",
+ // backgroundColor: "#f00",
+ // border: "0px",
+ // zIndex: "1000"
}
);
console.log('1')
map.addOverlay(myLabel);
});
- marker.addEventListener("mouseout", function () {
- map.removeOverlay(myLabel);
- })
+ // marker.addEventListener("mouseout", function () {
+ // map.removeOverlay(myLabel);
+ // })
// //创建信息窗口
// var opts = {
@@ -215,10 +211,11 @@ export default {
left: 0;
right: 0;
bottom: 0;
+ .parkpop-content{
+ background-color: black;
+ }
}
- .parkpop-tit{
- color: #000;
- }
+
.title-wrap{
display: flex;
padding-top: 17px;