From a22aa1086eeef39a26cc161326ce09cd183185ea Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Fri, 04 Mar 2022 15:57:47 +0800
Subject: [PATCH] 3.3 1.自定义标签,退出后自动清除 2.自定义标签,转换二维码的数据格式ok,移动端对接二维码ok, 3.自定义标签点击移动到指定位置 ok 4.面板自适应高度 4.更换定位依赖,自定义标签扫码入移动端可以定位并显示路线
---
src/pcviews/orgnav/teaching.vue | 132 ++++++++++++++++++++-----------------------
1 files changed, 61 insertions(+), 71 deletions(-)
diff --git a/src/pcviews/orgnav/teaching.vue b/src/pcviews/orgnav/teaching.vue
index 245ac6b..4b0f421 100644
--- a/src/pcviews/orgnav/teaching.vue
+++ b/src/pcviews/orgnav/teaching.vue
@@ -1,80 +1,70 @@
-/*
- * @Author: Morpheus
- * @Name: 教学与科研机构
- * @Date: 2021-11-15 10:02:12
- * @Last Modified by: Morpheus
- * @Last Modified time: 2021-12-30 14:26:13
- */
- <template>
- <div>
-
- </div>
+/* * @Author: Morpheus * @Name: 教学与科研机构 * @Date: 2021-11-15 10:02:12 *
+@Last Modified by: Morpheus * @Last Modified time: 2021-12-30 14:26:13 */
+<template>
+ <div></div>
</template>
<script>
-import { getList } from '@/api/pc/orgnav/index'
+import { getList } from "@/api/pc/orgnav/index";
-import { mapGetters } from 'vuex'
+import { mapGetters } from "vuex";
export default {
- data () {
- return {
- list: []
- }
- },
- computed: {
- ...mapGetters([
- // 社区内导航的显示关闭
- 'orgNavBarFlag',
- 'arcNavBarFlag'
- ])
- },
- mounted () {
- if (this.arcNavBarFlag == true) {
- this.$store.commit('SET_ARCNAVBARTITLE', '')
- this.$store.commit('SET_ARCNAVBARCODE', '')
- this.$store.commit('SET_ARCNAVBARFLAG', false)
- }
- this.$store.commit('SET_ORGNAVBARTITLE', '教学与科研机构')
- this.$store.commit('SET_ORGNAVBARLIST', [])
-
- this.$store.commit('SET_ORGNAVBARFLAG', true)
-
- getList({ type: 4 }).then(res => {
- res.data.data.records.forEach(item => {
- this.list.push({
- navTitle: item.mechanismname,
- icon: '/img/navicon/tag.png',
- longitude: item.jd,
- latitude: item.wd,
- alt: item.gd,
- heading: item.heading,
- pitch: item.pitch,
- roll: item.roll,
- bgImg: item.tpurl,
- QRImg: item.codeurl,
- address: item.address,
- telephone: item.telephone,
- introduce: item.introduce,
- videourl: item.videourl
- })
- })
-
- this.$store.commit('SET_ORGNAVBARLIST', this.list)
- })
- },
- methods: {
-
- },
- beforeDestroy () {
- if (this.orgNavBarFlag == true) {
- this.$store.commit('SET_ORGNAVBARTITLE', '')
- this.$store.commit('SET_ORGNAVBARLIST', [])
- this.$store.commit('SET_ORGNAVBARFLAG', false)
- }
+ data() {
+ return {
+ list: [],
+ };
+ },
+ computed: {
+ ...mapGetters([
+ // 校区内导航的显示关闭
+ "orgNavBarFlag",
+ "arcNavBarFlag",
+ ]),
+ },
+ mounted() {
+ if (this.arcNavBarFlag == true) {
+ this.$store.commit("SET_ARCNAVBARTITLE", "");
+ this.$store.commit("SET_ARCNAVBARCODE", "");
+ this.$store.commit("SET_ARCNAVBARFLAG", false);
}
-}
+ this.$store.commit("SET_ORGNAVBARTITLE", "教学与科研机构");
+ this.$store.commit("SET_ORGNAVBARLIST", []);
+
+ this.$store.commit("SET_ORGNAVBARFLAG", true);
+
+ getList({ type: 4 }).then((res) => {
+ res.data.data.records.forEach((item) => {
+ this.list.push({
+ navTitle: item.mechanismname,
+ icon: "/img/navicon/tag.png",
+ longitude: item.jd,
+ latitude: item.wd,
+ alt: item.gd,
+ heading: item.heading,
+ pitch: item.pitch,
+ roll: item.roll,
+ bgImg: item.tpurl,
+ QRImg: item.codeurl,
+ address: item.address,
+ telephone: item.telephone,
+ introduce: item.introduce,
+ videourl: item.videourl,
+ });
+ });
+
+ this.$store.commit("SET_ORGNAVBARLIST", this.list);
+ });
+ },
+ methods: {},
+ beforeDestroy() {
+ if (this.orgNavBarFlag == true) {
+ this.$store.commit("SET_ORGNAVBARTITLE", "");
+ this.$store.commit("SET_ORGNAVBARLIST", []);
+ this.$store.commit("SET_ORGNAVBARFLAG", false);
+ }
+ },
+};
</script>
-<style>
-</style>
+<style></style>
--
Gitblit v1.9.3