|
|
<template>
|
|
|
<view>
|
|
|
<map id="around-food-map" @regionchange="regionchange" :style="{width: '100%',height:mapHeight + 'px'}" :scale="scale" :layer-style="'2'" @markertap="markertap" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
|
|
|
<map id="around-food-map" @regionchange="regionchange" :style="{width: '100%',height:mapHeight + 'px'}" :scale="scale" :layer-style="'d5f046428dcc29769f0256117754064b'" @markertap="markertap" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
|
|
|
<!-- 查询地址区域 -->
|
|
|
<view class="searchWrap" :style="{top:statusBarHeight + 'rpx'}">
|
|
|
<view class="searchTab">
|
...
|
...
|
@@ -619,11 +619,18 @@ |
|
|
keywords: this.keywords,
|
|
|
location: '',
|
|
|
success: (data)=>{
|
|
|
this.showSearchLand = true
|
|
|
data.tips = data.tips.filter(item =>{
|
|
|
return item.location.length != 0;
|
|
|
})
|
|
|
this.addressList = data.tips
|
|
|
if(data.tips.length > 0){
|
|
|
this.showSearchLand = true
|
|
|
data.tips = data.tips.filter(item =>{
|
|
|
return item.location.length != 0;
|
|
|
})
|
|
|
this.addressList = data.tips
|
|
|
}else{
|
|
|
uni.showToast({
|
|
|
title:'暂无结果',
|
|
|
icon:'none'
|
|
|
})
|
|
|
}
|
|
|
uni.hideLoading()
|
|
|
}
|
|
|
})
|
...
|
...
|
|