|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
<template> |
|
|
|
|
<view class="map-container"> |
|
|
|
|
<map style="width: 100%; height: 10vh;" :style="{height:mapheight}" :latitude="latitude" |
|
|
|
|
:longitude="longitude" :markers="marker" :scale="scale" @markertap="markertap" @callouttap='callouttap'> |
|
|
|
|
<map style="width: 100%; height: 10vh;" :style="{height:mapheight}" :latitude="latitude" :longitude="longitude" |
|
|
|
|
:markers="marker" :scale="scale" @markertap="markertap" @callouttap='callouttap'> |
|
|
|
|
<!-- <cover-view class="cover-view-loca" :style='{bottom:coverbottom}' @click="onControltap"> |
|
|
|
|
<cover-image class="cover-image" @click="play" src="../../../static/img/adresw.png"></cover-image> |
|
|
|
|
<cover-view> |
|
|
|
@ -79,9 +79,10 @@ |
|
|
|
|
<view v-if="marker == '' " class="mart30 fotct font14 fcor666 fotct width100"> |
|
|
|
|
<image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres3"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="width96 height80 bor-botm1 alijusstart" v-for="(box,i) in marker" :key="i"> |
|
|
|
|
<view class="width96 height80 bor-botm1 alijusstart" v-for="(box,i) in marker" :key="i" |
|
|
|
|
@click="seeloaction(box)"> |
|
|
|
|
<image mode="widthFix" :src="box.logo" class="recontleft flleft border-r" |
|
|
|
|
style="max-height: 60px;" @click="toCategory(box)"> |
|
|
|
|
style="max-height: 60px;"> |
|
|
|
|
</image> |
|
|
|
|
<view class="fotlt paddleft5"> |
|
|
|
|
<view class="text2 width100 font18 fontwig6"> |
|
|
|
@ -371,7 +372,21 @@ |
|
|
|
|
// 是否选择下拉 |
|
|
|
|
updateSelected(item) { |
|
|
|
|
this.isSelected = item; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
seeloaction(item) { |
|
|
|
|
// #ifdef H5 |
|
|
|
|
window.location.href = |
|
|
|
|
`http://apis.map.qq.com/uri/v1/marker?marker=coord:(${item.latitude},${item.longitude})&addr:${item.address}`; |
|
|
|
|
// #endif |
|
|
|
|
// #ifdef MP |
|
|
|
|
uni.openLocation({ |
|
|
|
|
latitude: Number(item.latitude), //目的地的定位 |
|
|
|
|
longitude: Number(item.longitude), //目的地的定位 |
|
|
|
|
name: item.store_name, |
|
|
|
|
address: item.address |
|
|
|
|
}) |
|
|
|
|
// #endif |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|