From d218143528120b2d316a022c9b1d4bc413758b3c Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 24 Dec 2021 13:46:27 +0800
Subject: [PATCH] +右侧标签接口

---
 src/api/mobile/piont/index.js          |   51 +++++++++++++++----------
 src/components/mobileLeftNav/index.vue |   19 ++++++---
 2 files changed, 42 insertions(+), 28 deletions(-)

diff --git a/src/api/mobile/piont/index.js b/src/api/mobile/piont/index.js
index b4e9b16..fa29e54 100644
--- a/src/api/mobile/piont/index.js
+++ b/src/api/mobile/piont/index.js
@@ -2,37 +2,46 @@
  * @Author: Morpheus
  * @Date: 2021-05-09 15:17:44
  * @Last Modified by: liu
- * @Last Modified time: 2021-12-23 14:08:48
+ * @Last Modified time: 2021-12-24 13:41:59
  */
 // 标签
 import request from '@/router/axios'
 
-
-//出入
-export const getListdoor = (params) => {
+//出入-AED-停车场
+export const getListcat = (params) => {
     return request({
-        url: 'blade-door/door/selectDoor',
-        method: 'get',
-        params: params
-    })
-}
-//AED
-export const getListaed = (params) => {
-    return request({
-        url: 'blade-aed/aed/selectAed',
+        url: 'blade-life/life/selectList',
         method: 'get',
         params: params
     })
 }
 
-//停车场
-export const getListparking = (params) => {
-    return request({
-        url: 'blade-parking/parking/selectPark',
-        method: 'get',
-        params: params
-    })
-}
+
+// //出入
+// export const getListdoor = (params) => {
+//     return request({
+//         url: 'blade-door/door/selectDoor',
+//         method: 'get',
+//         params: params
+//     })
+// }
+// //AED
+// export const getListaed = (params) => {
+//     return request({
+//         url: 'blade-aed/aed/selectAed',
+//         method: 'get',
+//         params: params
+//     })
+// }
+
+// //停车场
+// export const getListparking = (params) => {
+//     return request({
+//         url: 'blade-parking/parking/selectPark',
+//         method: 'get',
+//         params: params
+//     })
+// }
 
 // 全景
 export const getListarchitecture = (params) => {
diff --git a/src/components/mobileLeftNav/index.vue b/src/components/mobileLeftNav/index.vue
index adb8ed2..b2bfae4 100644
--- a/src/components/mobileLeftNav/index.vue
+++ b/src/components/mobileLeftNav/index.vue
@@ -20,12 +20,13 @@
 <script>
 import { mapGetters } from "vuex";
 import {
-  getListdoor, //出入
-  getListaed, //AED
-  getListparking, //停车场
+  // getListdoor, //出入
+  // getListaed, //AED
+  // getListparking, //停车场
   getListarchitecture, //全景
   getListarchitecture1, //标签
   getListroad, //道路
+  getListcat, //出入-AED-停车场
 } from "@/api/mobile/piont/index";
 export default {
   name: "mobileLeftNav",
@@ -118,7 +119,8 @@
           normal: "/img/leftnav/aed.png",
           checked: "/img/leftnav/aed-checked.png",
           layer: "aedLayer",
-          methods: getListaed,
+          methods: getListcat,
+          type: 9,
           imgSrc: "img/leftnav/map-aed.png",
           // imgSrc: "img/mobile/pink.png",
         },
@@ -129,7 +131,8 @@
           normal: "/img/leftnav/park.png",
           checked: "/img/leftnav/park-checked.png",
           layer: "parkLayer",
-          methods: getListparking,
+          methods: getListcat,
+          type: 11,
           imgSrc: "https://map.hit.edu.cn/images/p-biao.png",
           // imgSrc: "img/mobile/popcorn.png",
         },
@@ -140,7 +143,8 @@
           normal: "/img/leftnav/come.png",
           checked: "/img/leftnav/come-checked.png",
           layer: "comeLayer",
-          methods: getListdoor,
+          methods: getListcat,
+          type: 12,
           imgSrc: "img/leftnav/map-activity.png",
           // imgSrc: "img/mobile/purple.png",
         },
@@ -446,7 +450,8 @@
       let ourNum = that.leftNavData.length;
       for (let n = 0; n < ourNum; n++) {
         let ourD = this.leftNavData[n];
-        ourD.methods().then((res) => {
+        let d = ourD.type ? { lifetype: ourD.type } : {};
+        ourD.methods(d).then((res) => {
           let dom;
           let data = res.data.data;
           let position = that.changePoiton(data);

--
Gitblit v1.9.3