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/components/mobileLeftNav/index.vue | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
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