| | |
| | | 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 = [] |
| | |
| | | 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: 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, |