From f9691d544e62d6c04dbfe45d05a6c7bc5e004291 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 29 十二月 2023 11:52:29 +0800
Subject: [PATCH] 服务商

---
 bicycle/pages/maps/maps.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/bicycle/pages/maps/maps.vue b/bicycle/pages/maps/maps.vue
index 928dfb1..6546ba1 100644
--- a/bicycle/pages/maps/maps.vue
+++ b/bicycle/pages/maps/maps.vue
@@ -13,7 +13,7 @@
 				<cover-view v-for="(item,index) in markers" :key="index">
 					<cover-view class="customCallout" :marker-id="item.id">
 						<cover-image class="image" src="@/static/icon/ic_dingwei@2x.png" mode="widthFix"></cover-image>
-						<cover-view class="mm">{{rice * 1000}}绫�</cover-view>
+						<cover-view class="mm">{{rice > 1000 ? (rice / 1000).toFixed(1) + '鍗冪背' : rice + '绫�'}}</cover-view>
 						<cover-view class="h"></cover-view>
 						<cover-view class="dh">瀵艰埅</cover-view>
 					</cover-view>
@@ -24,7 +24,7 @@
 			<view class="ditu_box">
 				<view class="ditu_box_a">
 					<text>{{info.title}}</text>
-					<text>璺濈{{rice * 1000}}m</text>
+					<text>璺濈{{rice > 1000 ? (rice / 1000).toFixed(1) + '鍗冪背' : rice + '绫�'}}</text>
 				</view>
 				<view class="ditu_box_b">
 					{{info.addr}}
@@ -168,11 +168,12 @@
 						if (res.code === 200) {
 							this.markers = []
 							res.data.forEach((item, index) => {
+								let num = distance(this.latitude, this.longitude, item.latitude, item.longitude)
 								this.markers.push({
 									id: index,
-									width: 30,
+									width: 40,
 									height: 40,
-									distance: this.latitude && this.longitude ? distance(this.latitude, this.longitude, item.latitude, item.longitude) : '鏈煡璺濈',
+									distance: this.latitude && this.longitude ? num : '鏈煡璺濈',
 									latitude: item.latitude,
 									longitude: item.longitude,
 									title: item.name,
@@ -194,14 +195,14 @@
 					if (item.id === e.markerId) {
 						this.rice = item.distance
 						item.customCallout.display = 'ALWAYS'
-						item.width = 40
+						item.width = 50
 						item.height = 50
 						setTimeout(() => {
 							this.info = item
 							this.show = true
 						}, 300)
 					} else {
-						item.width = 30
+						item.width = 40
 						item.height = 40
 						item.customCallout.display = 'BYCLICK'
 					}

--
Gitblit v1.9.3