|
@@ -107,8 +107,8 @@
|
|
|
<el-col :span="24">
|
|
|
<el-link type="primary">标题:{{ windowInfo.title }}</el-link>
|
|
|
</el-col>
|
|
|
- <el-col :span="24">电话:{{ windowInfo.tel }}</el-col>
|
|
|
- <el-col :span="24">地址:{{ windowInfo.address }}</el-col>
|
|
|
+ <el-col :span="24">地址:{{ windowInfo.address || '暂无' }}</el-col>
|
|
|
+ <el-col :span="24">简介:{{ windowInfo.introduction || '暂无' }}</el-col>
|
|
|
</el-row>
|
|
|
</el-amap-info-window>
|
|
|
</el-amap>
|
|
@@ -268,7 +268,7 @@ export default {
|
|
|
// 添加标记
|
|
|
setMark(place) {
|
|
|
let name = _.get(place, 'name');
|
|
|
- let tel = _.get(place, 'tel');
|
|
|
+ let introduction = _.get(place, 'introduction');
|
|
|
let address = _.get(place, 'address');
|
|
|
let lng = _.get(place, 'lng');
|
|
|
let lat = _.get(place, 'lat');
|
|
@@ -281,7 +281,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
title: `${name}`,
|
|
|
- tel: `${tel}`,
|
|
|
+ introduction: `${introduction}`,
|
|
|
address: `${address}`,
|
|
|
label: { content: 'lable', offset: [3, 3] },
|
|
|
desc: 'abc',
|
|
@@ -317,14 +317,12 @@ export default {
|
|
|
},
|
|
|
// 标记点击
|
|
|
markClick(posi) {
|
|
|
- console.log(this.markers);
|
|
|
const r = this.markers.find(f => _.isEqual(f.position, posi));
|
|
|
- console.log(r);
|
|
|
// 设置窗口信息,自定义.反正在slot里的字段对上
|
|
|
const info = {
|
|
|
title: r.title,
|
|
|
address: r.address,
|
|
|
- tel: r.tel,
|
|
|
+ introduction: r.introduction,
|
|
|
};
|
|
|
this.$set(this, `windowInfo`, info);
|
|
|
// 设置窗口信息
|