From 840d3127f365afd26b0f2867c50f5c8e0689b2b7 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 26 Dec 2024 15:15:32 +0800
Subject: [PATCH] 新干全景处理
---
public/xg/kzqj.json | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
src/api/panorama/index.js | 8 +++++---
2 files changed, 56 insertions(+), 3 deletions(-)
diff --git a/public/xg/kzqj.json b/public/xg/kzqj.json
new file mode 100644
index 0000000..901e104
--- /dev/null
+++ b/public/xg/kzqj.json
@@ -0,0 +1,51 @@
+{
+ "data": {
+ "records": [
+ {
+ "id": 1,
+ "firmId": -1,
+ "name": "牛城路口",
+ "lng": "115.46948932",
+ "lat": "27.89915023",
+ "url": "https://wrj.shuixiongit.com/xgqj/tour.html",
+ "remark": "1",
+ "createUser": -1,
+ "createTime": "",
+ "updateUser": -1,
+ "updateTime": "",
+ "isDeleted": 0,
+ "ele": "42.04"
+ },
+ {
+ "id": 1,
+ "firmId": -1,
+ "name": "扬帆路口",
+ "lng": "115.46474045",
+ "lat": "27.87389526",
+ "url": "https://wrj.shuixiongit.com/xgqj/tour.html",
+ "remark": "1",
+ "createUser": -1,
+ "createTime": "",
+ "updateUser": -1,
+ "updateTime": "",
+ "isDeleted": 0,
+ "ele": "52.93"
+ },
+ {
+ "id": 1,
+ "firmId": -1,
+ "name": "腾飞路口",
+ "lng": "115.46111849",
+ "lat": "27.86509075",
+ "url": "https://wrj.shuixiongit.com/xgqj/tour.html",
+ "remark": "1",
+ "createUser": -1,
+ "createTime": "",
+ "updateUser": -1,
+ "updateTime": "",
+ "isDeleted": 0,
+ "ele": "52.04"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/src/api/panorama/index.js b/src/api/panorama/index.js
index ea6eea6..437dceb 100644
--- a/src/api/panorama/index.js
+++ b/src/api/panorama/index.js
@@ -2,19 +2,21 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2024-11-12 11:34:22
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-12 11:34:55
- * @FilePath: \bigScreen\src\api\panorama\dict.js
+ * @LastEditTime: 2024-12-26 15:03:42
+ * @FilePath: \bigScreen\src\api\panorama\index.js
* @Description:
*
* Copyright (c) 2024 by shuishen, All Rights Reserved.
*/
import request from 'utils/http'
+const { VITE_APP_BASE } = import.meta.env
export const getPanoramaList = (params) => {
- const url = `/yw/panoramic/page`
+ const url = `${VITE_APP_BASE}xg/kzqj.json`
return request({
url,
method: 'get',
params,
+ localJSON: true
})
}
\ No newline at end of file
--
Gitblit v1.9.3