| | |
| | | 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) { |
| | |
| | | res.data.forEach(function (item, index) { |
| | | _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) : '未知距离', |
| | | latitude: item.latitude, |
| | |
| | | title: item.name, |
| | | iconPath: '/static/icon/ic_bike@2x.png', |
| | | addr: item.addr, |
| | | clusterId: 1, |
| | | joinCluster: true, |
| | | customCallout: { |
| | | anchorY: 0, |
| | | anchorX: 0, |
| | |
| | | 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'; |
| | | } |
| | | }); |