<map v-if="info_obj.lng_lat" :latitude="info_obj.lng_lat.split(',')[0]" :longitude="info_obj.lng_lat.split(',')[1]" :markers="covers"></map>
data() {
return {
info_obj : {},
covers : []
};
},
this.$api.post({
url : "。。。。。",
data : {
id
},
contentType: "form",
success : res => {
this.info_obj = res;
this.covers.push({
latitude : this.info_obj.lng_lat.split(',')[0],
longitude : this.info_obj.lng_lat.split(',')[1],
width : 50,
height : 60,
callout : {
content : this.info_obj.city + " " + this.info_obj.corporate_name,
bgColor : "#fff",
fontSize : 16,
display : 'ALWAYS'
}
})
}
})
0 个回复