|
@ -38,7 +38,9 @@ |
|
|
<!-- '文化遗产', '找厕所', '找美食', '找民宿' --> |
|
|
<!-- '文化遗产', '找厕所', '找美食', '找民宿' --> |
|
|
<!-- v-if="spotGuideIndex != 1" --> |
|
|
<!-- v-if="spotGuideIndex != 1" --> |
|
|
<view class="Locations-list"> |
|
|
<view class="Locations-list"> |
|
|
<view class="main" v-if="spotGuideIndex == 0 && area"> |
|
|
|
|
|
|
|
|
<view class="main" |
|
|
|
|
|
@click="selectArea" |
|
|
|
|
|
v-if="spotGuideIndex == 0 && area"> |
|
|
<image |
|
|
<image |
|
|
class="main-image" |
|
|
class="main-image" |
|
|
:src="area.areaImage" |
|
|
:src="area.areaImage" |
|
@ -55,7 +57,7 @@ |
|
|
<image src="/static/image/tourGuide/a.png" |
|
|
<image src="/static/image/tourGuide/a.png" |
|
|
mode=""></image> |
|
|
mode=""></image> |
|
|
<text class="" |
|
|
<text class="" |
|
|
@click="textToSpeech(area.areaBrief)"> |
|
|
|
|
|
|
|
|
@click.stop="textToSpeech(area.areaBrief)"> |
|
|
语音讲解 |
|
|
语音讲解 |
|
|
</text> |
|
|
</text> |
|
|
</view> --> |
|
|
</view> --> |
|
@ -66,7 +68,7 @@ |
|
|
<image src="/static/image/tourGuide/f.png" mode=""></image> |
|
|
<image src="/static/image/tourGuide/f.png" mode=""></image> |
|
|
</view> --> |
|
|
</view> --> |
|
|
<view class="btn" |
|
|
<view class="btn" |
|
|
@click="show = !show"> |
|
|
|
|
|
|
|
|
@click.stop="show = !show"> |
|
|
<text class=""> |
|
|
<text class=""> |
|
|
{{ show ? '收起' : '展开' }} |
|
|
{{ show ? '收起' : '展开' }} |
|
|
</text> |
|
|
</text> |
|
@ -207,7 +209,11 @@ |
|
|
//地图点击事件 |
|
|
//地图点击事件 |
|
|
markertap(e) { |
|
|
markertap(e) { |
|
|
console.log("markertap===你点击了标记点===", e) |
|
|
console.log("markertap===你点击了标记点===", e) |
|
|
// let spot = this.spotGuideMarkers[e.markerId] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let spot = this.spotGuideMarkers[e.markerId] |
|
|
|
|
|
|
|
|
|
|
|
this.toUrl(spot) |
|
|
|
|
|
|
|
|
// uni.openLocation({ |
|
|
// uni.openLocation({ |
|
|
// latitude: spot.latitude, |
|
|
// latitude: spot.latitude, |
|
|
// longitude: spot.longitude, |
|
|
// longitude: spot.longitude, |
|
@ -280,7 +286,13 @@ |
|
|
}) |
|
|
}) |
|
|
// this.onRegionChange('',true) |
|
|
// this.onRegionChange('',true) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 点击景区,选择最近的一个景点 |
|
|
|
|
|
selectArea(){ |
|
|
|
|
|
let item = this.spotGuide[0] |
|
|
|
|
|
if(item && item.spotLatitude && item.spotLongitude){ |
|
|
|
|
|
this.moveTolocation(item.spotLatitude, item.spotLongitude) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|