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

---
 bicycle/unpackage/dist/dev/mp-weixin/pages/maps/maps.js |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/bicycle/unpackage/dist/dev/mp-weixin/pages/maps/maps.js b/bicycle/unpackage/dist/dev/mp-weixin/pages/maps/maps.js
index 9f13f95..ddb5022 100644
--- a/bicycle/unpackage/dist/dev/mp-weixin/pages/maps/maps.js
+++ b/bicycle/unpackage/dist/dev/mp-weixin/pages/maps/maps.js
@@ -125,11 +125,22 @@
   var _vm = this
   var _h = _vm.$createElement
   var _c = _vm._self._c || _h
+  var g0 = _vm.rice > 1000 ? (_vm.rice / 1000).toFixed(1) : null
+  var g1 = _vm.rice > 1000 ? (_vm.rice / 1000).toFixed(1) : null
   if (!_vm._isMounted) {
     _vm.e0 = function ($event) {
       _vm.show = false
     }
   }
+  _vm.$mp.data = Object.assign(
+    {},
+    {
+      $root: {
+        g0: g0,
+        g1: g1,
+      },
+    }
+  )
 }
 var recyclableRender = false
 var staticRenderFns = []
@@ -364,11 +375,12 @@
         if (res.code === 200) {
           _this.markers = [];
           res.data.forEach(function (item, index) {
+            var num = (0, _utils.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 ? (0, _utils.distance)(_this.latitude, _this.longitude, item.latitude, item.longitude) : '鏈煡璺濈',
+              distance: _this.latitude && _this.longitude ? num : '鏈煡璺濈',
               latitude: item.latitude,
               longitude: item.longitude,
               title: item.name,
@@ -391,14 +403,14 @@
         if (item.id === e.markerId) {
           _this2.rice = item.distance;
           item.customCallout.display = 'ALWAYS';
-          item.width = 40;
+          item.width = 50;
           item.height = 50;
           setTimeout(function () {
             _this2.info = item;
             _this2.show = true;
           }, 300);
         } else {
-          item.width = 30;
+          item.width = 40;
           item.height = 40;
           item.customCallout.display = 'BYCLICK';
         }

--
Gitblit v1.9.3