|
|
<template>
|
|
|
<view :style="{width: '750rpx',height:mapHeight + 'rpx'}">
|
|
|
<map id="around-food-map" @regionchange="regionchange" :style="{width: '750rpx',height:mapHeight + 'rpx'}" :scale="scale" @markertap="markertap" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
|
|
|
<view :style="{width: '750rpx',height:mapHeight + 'px'}">
|
|
|
<map id="around-food-map" @regionchange="regionchange" :style="{width: '750rpx',height:mapHeight + 'px'}" :scale="scale" @markertap="markertap" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
|
|
|
<!-- layer-style="d5f046428dcc29769f0256117754064b" -->
|
|
|
<!-- 查询地址区域 -->
|
|
|
<view class="searchWrap" :style="{top:statusBarHeight + 'rpx'}">
|
...
|
...
|
@@ -30,7 +30,7 @@ |
|
|
<view class="positionWrap" @click="position" :style="{bottom:'400rpx'}">
|
|
|
<image style="width: 90rpx;height: 90rpx;" src="../../static/image/dingwei.png" mode=""></image>
|
|
|
</view>
|
|
|
<!-- <touch-slide v-if="landList.length > 0" style="background-color: #509d94;" :landIndex="0" :showSlide="landList[0].showSlide" @callback="callback" :top="mapHeight - platFormH" :bottom="mapHeight - (landList.length > 1 ? 40 : 10)" :titleHeight="30">
|
|
|
<touch-slide v-if="landList.length > 0" style="background-color: #509d94;" :landIndex="0" :showSlide="landList[0].showSlide" @callback="callback" :top="mapHeight - platFormH" :bottom="mapHeight - (landList.length > 1 ? 40 : 10)" :titleHeight="30">
|
|
|
<view class="handleLine" slot="title">
|
|
|
<view class="line"></view>
|
|
|
</view>
|
...
|
...
|
@@ -224,7 +224,7 @@ |
|
|
<view class="rightEmp"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</touch-slide> -->
|
|
|
</touch-slide>
|
|
|
|
|
|
<!-- 查询地址列表弹框区域 -->
|
|
|
<view class="searchLandWrap" v-if="showSearchLand" @click="showSearchLand = false">
|
...
|
...
|
@@ -325,15 +325,13 @@ |
|
|
},
|
|
|
components:{touchSlide},
|
|
|
created() {
|
|
|
if(!this.isLogin || !this.isSDKReady){
|
|
|
uni.navigateTo({
|
|
|
url:'loginTim'
|
|
|
})
|
|
|
}
|
|
|
//获取状态栏高度
|
|
|
uni.getSystemInfo({
|
|
|
success: (res) => {
|
|
|
this.mapHeight = res.windowHeight * 2 + res.statusBarHeight*2
|
|
|
this.mapHeight = res.screenHeight - res.statusBarHeight
|
|
|
// #ifdef APP-NVUE || MP-WEIXIN
|
|
|
this.mapHeight = this.mapHeight - 45
|
|
|
// #endif
|
|
|
this.statusBarHeight = res.statusBarHeight*2
|
|
|
}
|
|
|
})
|
...
|
...
|
@@ -361,7 +359,6 @@ |
|
|
this.city = res.address.city
|
|
|
},
|
|
|
fail: (err) => {
|
|
|
console.log('定位出错',err)
|
|
|
this.city = '北京市'
|
|
|
this.longitude = 116.39747
|
|
|
this.latitude = 39.908823
|
...
|
...
|
@@ -412,11 +409,12 @@ |
|
|
iconPath: '../../static/image/Group_673.png'
|
|
|
})
|
|
|
this.landList.forEach(item => {
|
|
|
if(index == 0){
|
|
|
/* if(index == 0){
|
|
|
item.showSlide = true
|
|
|
}else{
|
|
|
item.showSlide = false
|
|
|
}
|
|
|
} */
|
|
|
item.showSlide = false
|
|
|
let starList = []
|
|
|
if(item.star > 0){
|
|
|
for(let i = 0; i < item.star; i ++){
|
...
|
...
|
@@ -441,7 +439,6 @@ |
|
|
});
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
console.log('当前系统是:'+plus.os.name.toLowerCase())
|
|
|
if(plus.os.name.toLowerCase() == 'ios'){
|
|
|
this.platFormH = 200
|
|
|
}else{
|
...
|
...
|
@@ -454,7 +451,6 @@ |
|
|
version:version
|
|
|
},
|
|
|
success: (res) => {
|
|
|
console.log('版本',res)
|
|
|
if(res.data.data.versiondata != null){
|
|
|
this.versiondata = res.data.data.versiondata
|
|
|
this.showUpdateVersion = true
|
...
|
...
|
@@ -476,7 +472,6 @@ |
|
|
},
|
|
|
watch:{
|
|
|
conversationList(newVal,oldVal){
|
|
|
console.log('conversationList变化了!!!!',oldVal,newVal)
|
|
|
this.getSysNoReadNum()
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -641,7 +636,6 @@ |
|
|
let landArr = []
|
|
|
_this.scale = 12.9
|
|
|
_this.landList = []
|
|
|
console.log('222222222222222222',_this.allLandList.length)
|
|
|
if(_this.allLandList.length > 0){
|
|
|
uni.showLoading({
|
|
|
title:'加载中...'
|
...
|
...
|
@@ -668,13 +662,14 @@ |
|
|
parseFloat(item.latitude) > regionRes.southwest.latitude &&
|
|
|
parseFloat(item.latitude) < regionRes.northeast.latitude &&
|
|
|
parseFloat(item.longitude) > regionRes.southwest.longitude &&
|
|
|
parseFloat(item.longitude) < regionRes.northeast.longitude
|
|
|
parseFloat(item.longitude) < regionRes.northeast.longitude
|
|
|
){
|
|
|
if(index == 0){
|
|
|
/* if(index == 0){
|
|
|
item.showSlide = true
|
|
|
}else{
|
|
|
item.showSlide = false
|
|
|
}
|
|
|
} */
|
|
|
item.showSlide = false
|
|
|
let starList = []
|
|
|
if(item.star > 0){
|
|
|
for(let i = 0; i < item.star; i ++){
|
...
|
...
|
@@ -728,7 +723,6 @@ |
|
|
//点击标记点
|
|
|
markertap(e){
|
|
|
let landArr = this.landList
|
|
|
console.log('=======变更前======',this.landList)
|
|
|
let coverArr = []
|
|
|
let index = 0
|
|
|
this.landList = []
|
...
|
...
|
@@ -754,7 +748,6 @@ |
|
|
landArr[i].showSlide = false
|
|
|
}
|
|
|
}
|
|
|
console.log('=======变更后======',landArr)
|
|
|
this.covers = coverArr
|
|
|
setTimeout(()=>{
|
|
|
this.landList = landArr
|
...
|
...
|
|