From c23ac06446a9a1edc41cc13723e5d0b8eabdfd63 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 16 七月 2025 17:30:50 +0800 Subject: [PATCH] 2025.7.16 动态溯源新增合并异常 --- src/api/sceneInfoApi.js | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/api/sceneInfoApi.js b/src/api/sceneInfoApi.js index 56cbbc6..e412d46 100644 --- a/src/api/sceneInfoApi.js +++ b/src/api/sceneInfoApi.js @@ -1,14 +1,27 @@ import { $http } from './index'; /** - * + * 鍦烘櫙淇℃伅API鎺ュ彛 */ export default { + /** + * 鏌ユ壘琛屾斂鍖哄垝鑼冨洿鍐呯殑鏌愮被鍦烘櫙 + * @param {Object} area + * @returns + */ searchScene(area) { return $http.post(`scene/find`, area).then((res) => res.data); - } + }, - // searchByCoordinate({lng, lat, radius}) { - // return $http.post(`scene/find/radius`, mission).then((res) => res.data); - // }, + /** + * 鏌ユ壘鍗婂緞鑼冨洿鍐呯殑鍦烘櫙 + * @param {Number} lng 缁忓害锛岄珮寰峰湴鍥撅紙鐏槦鍧愭爣绯伙級 + * @param {Number} lat 缁村害锛岄珮寰峰湴鍥撅紙鐏槦鍧愭爣绯伙級 + * @param {Number} radius 鍗婂緞锛屽崟浣嶇背 + * @returns + */ + searchByCoordinate(lng, lat, radius) { + let param = `?lng=${lng}&lat=${lat}&radius=${radius}`; + return $http.post(`scene/find/radius${param}`).then((res) => res.data); + } }; -- Gitblit v1.9.3