地图禁止拖动

This commit is contained in:
liuye
2023-06-20 16:37:55 +08:00
parent bee1831aef
commit 032b35f06b

View File

@@ -75,7 +75,9 @@
<img :src="item.sdkFileUrl" alt="" v-if="item.msgType == 'emotion'" :style="[{width: item.width/2+'px'}, {height: item.height/2+'px'}]">
<div class="map-info" v-if="item.msgType == 'location'" @click="openMap(item)">
<map style="width: 100%; height: 100%;" :latitude="item.lat" :longitude="item.lng" :scale="item.zoom"></map>
<map style="width: 100%; height: 100%;" :latitude="item.lat" :longitude="item.lng" :scale="item.zoom" :enable-zoom="false" :enable-scroll="false">
<cover-view style='width:100%;height:100%'></cover-view>
</map>
<div class="address-text">
<p>{{item.title}}</p>
<p>{{item.address}}</p>
@@ -234,8 +236,8 @@ export default {
params: {
current: this.current,
size: 10,
msgType: this.tabList[this.currentTabs].value,
// msgType: 'location',
// msgType: this.tabList[this.currentTabs].value,
msgType: 'location',
toUserId: this.toUserId,
roomId: this.roomId,
type: this.type,