|
@@ -10,9 +10,13 @@
|
|
|
|
|
|
<Touchbox ref="TouchboxRef" :maxHeight="0.8" v-if="showMap && siteListArr && siteListArr.length > 0"
|
|
|
:zIndex="1001" @currentHeight="e => TouchHeight = e">
|
|
|
- <template #touchSlot>
|
|
|
- <!-- v-if="centreText" -->
|
|
|
- <view class="centre-box" v-if="centreText">
|
|
|
+ <template #touchSlot>
|
|
|
+ <!-- <view class="centre-box" v-if="SearchText">
|
|
|
+ <text class="text">为您展示</text>
|
|
|
+ <text class="text-val one-row">{{SearchText}}</text>
|
|
|
+ <text class="text">相关的大厅</text>
|
|
|
+ </view> -->
|
|
|
+ <view class="centre-box" v-if="SearchText || centreText">
|
|
|
<svg t="1734080022350" class="position-icon" viewBox="0 0 1024 1024" version="1.1"
|
|
|
xmlns="http://www.w3.org/2000/svg" p-id="4287" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
|
<path d="M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z" p-id="4288"></path>
|
|
@@ -21,8 +25,8 @@
|
|
|
p-id="4289"></path>
|
|
|
</svg>
|
|
|
<text class="text">为您展示</text>
|
|
|
- <text class="text-val one-row">{{centreText}}</text>
|
|
|
- <text class="text">附近的大厅</text>
|
|
|
+ <text class="text-val one-row">{{SearchText || centreText}}</text>
|
|
|
+ <text class="text">{{ SearchText ? '相关的大厅' : '附近的大厅'}}</text>
|
|
|
</view>
|
|
|
</template>
|
|
|
<template #contentSlot>
|
|
@@ -66,7 +70,7 @@
|
|
|
searchDot: false,
|
|
|
// 是否显示地图
|
|
|
showMap: false,
|
|
|
-
|
|
|
+ SearchText:'',
|
|
|
|
|
|
|
|
|
|
|
@@ -162,6 +166,8 @@
|
|
|
latitude: this.latitude,
|
|
|
radius: 5000
|
|
|
};
|
|
|
+ // 记录搜索框中的内容
|
|
|
+ this.SearchText = parms.locationName;
|
|
|
// 判断是否通过收索
|
|
|
this.searchDot = parms.search
|
|
|
// 如果存在收索条件,则去掉 范围 和 中心点
|