|
|
@ -11,17 +11,9 @@ |
|
|
|
:scale="scale" |
|
|
|
@markertap="markertap" |
|
|
|
id="mapId" |
|
|
|
@callouttap='callouttap'> |
|
|
|
@callouttap="callouttap"> |
|
|
|
</map> |
|
|
|
|
|
|
|
<uv-tabs :list="areaList" |
|
|
|
:activeStyle="{color : '#B12026', fontWeight : 600}" |
|
|
|
lineColor="#B12026" |
|
|
|
lineHeight="8rpx" |
|
|
|
lineWidth="50rpx" |
|
|
|
keyName="areaName" |
|
|
|
:current="currentArea" |
|
|
|
@click="clickTabs"></uv-tabs> |
|
|
|
|
|
|
|
<view class="tabs"> |
|
|
|
<view class="" |
|
|
@ -33,6 +25,15 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<uv-tabs :list="areaList" |
|
|
|
:activeStyle="{color : '#B12026', fontWeight : 600}" |
|
|
|
lineColor="#B12026" |
|
|
|
lineHeight="8rpx" |
|
|
|
lineWidth="50rpx" |
|
|
|
keyName="areaName" |
|
|
|
:current="currentArea" |
|
|
|
@click="clickTabs"></uv-tabs> |
|
|
|
|
|
|
|
|
|
|
|
<!-- '文化遗产', '找厕所', '找美食', '找民宿' --> |
|
|
|
<!-- v-if="spotGuideIndex != 1" --> |
|
|
@ -50,14 +51,14 @@ |
|
|
|
<view class="tips"> |
|
|
|
{{ spotGuide.length }}个遗产点 |
|
|
|
</view> |
|
|
|
<view class="btn"> |
|
|
|
<!-- <view class="btn"> |
|
|
|
<image src="/static/image/tourGuide/a.png" |
|
|
|
mode=""></image> |
|
|
|
<text class="" |
|
|
|
@click="textToSpeech(area.areaBrief)"> |
|
|
|
语音讲解 |
|
|
|
</text> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="controls"> |
|
|
@ -111,13 +112,13 @@ |
|
|
|
@click.stop="openLocation(item)" |
|
|
|
src="/static/image/tourGuide/f.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view |
|
|
|
<!-- <view |
|
|
|
v-if="item.categoryId == 0" |
|
|
|
class="f"> |
|
|
|
<image |
|
|
|
@click.stop="textToSpeech" |
|
|
|
src="/static/image/tourGuide/a.png" mode=""></image> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -205,12 +206,31 @@ |
|
|
|
}, |
|
|
|
//地图点击事件 |
|
|
|
markertap(e) { |
|
|
|
console.log("===你点击了标记点===", e) |
|
|
|
let spot = this.spotGuideMarkers[e.markerId] |
|
|
|
uni.openLocation({ |
|
|
|
latitude: spot.latitude, |
|
|
|
longitude: spot.longitude, |
|
|
|
}) |
|
|
|
console.log("markertap===你点击了标记点===", e) |
|
|
|
// let spot = this.spotGuideMarkers[e.markerId] |
|
|
|
// uni.openLocation({ |
|
|
|
// latitude: spot.latitude, |
|
|
|
// longitude: spot.longitude, |
|
|
|
// }) |
|
|
|
|
|
|
|
// BYCLICK隐藏 |
|
|
|
// ALWAYS显示 |
|
|
|
|
|
|
|
// this.$store.commit('setDisplay', |
|
|
|
// this.spotGuideMarkers[e.markerId].id) |
|
|
|
|
|
|
|
|
|
|
|
// this.$forceUpdate() |
|
|
|
|
|
|
|
// this.spotGuideMarkers.forEach((n, i) => { |
|
|
|
// if(i == e.markerId){ |
|
|
|
// // 显示气泡 |
|
|
|
// n.callout.display = 'ALWAYS' |
|
|
|
// }else{ |
|
|
|
// // 隐藏气泡 |
|
|
|
// n.callout.display = 'BYCLICK' |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}, |
|
|
|
openLocation(n){ |
|
|
|
uni.openLocation({ |
|
|
@ -220,7 +240,12 @@ |
|
|
|
}, |
|
|
|
//地图点击事件 |
|
|
|
callouttap(e) { |
|
|
|
console.log('地图点击事件', e) |
|
|
|
console.log('callouttap地图点击事件', e) |
|
|
|
let spot = this.spotGuideMarkers[e.markerId] |
|
|
|
uni.openLocation({ |
|
|
|
latitude: spot.latitude, |
|
|
|
longitude: spot.longitude, |
|
|
|
}) |
|
|
|
}, |
|
|
|
toUrl(item){ |
|
|
|
if(item.categoryId == 0){ |
|
|
|