From 3b5dc77ee03b5df1b49fffafc71a9c9aa56678cf Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 17 二月 2025 18:31:03 +0800
Subject: [PATCH] 更新
---
bicycle/unpackage/dist/dev/mp-weixin/pages/maps/maps.js | 22 +++++++++++++++++-----
1 files changed, 17 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 9f13f95..7099c0b 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 */ 265))
+ 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 */ 293))
},
}
} 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,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