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 |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 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 0ae906f..ddb5022 100644
--- a/bicycle/unpackage/dist/dev/mp-weixin/pages/maps/maps.js
+++ b/bicycle/unpackage/dist/dev/mp-weixin/pages/maps/maps.js
@@ -101,7 +101,7 @@
 try {
   components = {
     uPopup: function () {
-      return Promise.all(/*! import() | node-modules/uview-ui/components/u-popup/u-popup */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-popup/u-popup.vue */ 255))
+      return Promise.all(/*! import() | node-modules/uview-ui/components/u-popup/u-popup */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-popup/u-popup.vue */ 265))
     },
   }
 } catch (e) {
@@ -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,18 +375,17 @@
         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,
               iconPath: '/static/icon/ic_bike@2x.png',
               addr: item.addr,
-              clusterId: 1,
-              joinCluster: true,
               customCallout: {
                 anchorY: 0,
                 anchorX: 0,
@@ -393,11 +403,15 @@
         if (item.id === e.markerId) {
           _this2.rice = item.distance;
           item.customCallout.display = 'ALWAYS';
+          item.width = 50;
+          item.height = 50;
           setTimeout(function () {
             _this2.info = item;
             _this2.show = true;
           }, 300);
         } else {
+          item.width = 40;
+          item.height = 40;
           item.customCallout.display = 'BYCLICK';
         }
       });

--
Gitblit v1.9.3