From 9e43f80d96bda7f1108dcfcfd7340e567f2e48d0 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 23 Dec 2021 13:57:03 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/school-web
---
src/components/mobileWindow/index.vue | 146 ++++++++++++++++++++++++++++++++----------------
1 files changed, 98 insertions(+), 48 deletions(-)
diff --git a/src/components/mobileWindow/index.vue b/src/components/mobileWindow/index.vue
index 957a407..e7ae014 100644
--- a/src/components/mobileWindow/index.vue
+++ b/src/components/mobileWindow/index.vue
@@ -4,41 +4,61 @@
v-show="!MobileWindowsHide"
id="mobile-map_content_content"
>
- <div class="mobile-popup-imgs-heard">
- <img :src="url" alt="" />
- <el-image
- style="width: 100px; height: 100px"
- :src="url"
- id="mobileBigImgs"
- v-show="false"
- :preview-src-list="srcList"
- >
- </el-image>
- <!-- <div>{{ query.query }}</div> -->
- <div class="mobileBig-center-our">
- <div
- v-for="(item, index) in center"
- :key="index"
- class="mobileBig-center"
+ <div class="mobiletitle">{{ title }}</div>
+ <div class="mobilelabel-content">
+ <div class="mobile-popup-imgs-heard">
+ <div class="mobile-popup-imgs-h-close">
+ <i class="el-icon-close icon" @click="closeWindow"></i>
+ </div>
+ <img :src="url" alt="" />
+ <el-image
+ style="width: 100px; height: 100px"
+ :src="url"
+ id="mobileBigImgs"
+ v-show="false"
+ :preview-src-list="srcList"
>
- <div class="m-c-title">{{ item.name }}:</div>
- <span class="m-c-center">{{ item.value }}</span>
+ </el-image>
+ <!-- <div>{{ query.query }}</div> -->
+ <div class="mobileBig-center-our">
+ <div
+ v-for="(item, index) in center"
+ :key="index"
+ class="mobileBig-center"
+ >
+ <div class="m-c-title">{{ item.name }}:</div>
+ <span class="m-c-center">{{ item.value }}</span>
+ </div>
+ <div
+ class="mobileBig-center-introduce"
+ style="padding-top: 10px"
+ v-show="introduce"
+ v-html="introduce"
+ ></div>
</div>
</div>
- </div>
- <div class="mobile-popup-control">
- <div v-for="(item, index) in seebut" :key="index">
- <el-link
- icon="el-icon-map-location"
- class="mobilePopupOurOnce_r_d_in"
- @click="openOnce(item.name)"
- >{{ item.name }}</el-link
- >
- <el-divider
- direction="vertical"
- class="mobilePopupOurOnce_r_d_in"
- v-if="index != seebut.length - 1"
- ></el-divider>
+ <div class="mobile-popup-control">
+ <div v-for="(item, index) in seebut" :key="index">
+ <el-link
+ :icon="
+ item.name == '实景'
+ ? 'el-icon-place'
+ : item.name == '图集'
+ ? 'el-icon-data-board'
+ : item.name == '去这'
+ ? 'el-icon-finished'
+ : ''
+ "
+ class="mobilePopupOurOnce_r_d_in"
+ @click="openOnce(item.name)"
+ >{{ item.name }}</el-link
+ >
+ <el-divider
+ direction="vertical"
+ class="mobilePopupOurOnce_r_d_in"
+ v-if="index != seebut.length - 1"
+ ></el-divider>
+ </div>
</div>
</div>
</div>
@@ -53,16 +73,19 @@
},
watch: {
MobileWindowChangeData() {
+ //数据更改
// this.fullscreenLoading = true;
if (!this.MobileWindowsHide) {
// console.log("地图点击弹窗数据请求参数", this.query);
- this.title = this.query.query.name;
- if (this.query.query.bgImg) {
- this.srcList = this.query.query.bgImg.split(",");
+ let queryData = this.query.query;
+ // console.log(queryData);
+ this.title = queryData.name;
+ if (queryData.bgImg) {
+ this.srcList = queryData.bgImg.split(",");
this.url = this.srcList[0];
}
- if (this.query.query.seebut) {
- this.seebut = this.query.query.seebut;
+ if (queryData.seebut) {
+ this.seebut = queryData.seebut;
for (let k in this.seebut) {
if (this.seebut[k].name == "定位") {
this.seebut.splice(k, k + 1);
@@ -71,15 +94,30 @@
this.seebut.push({
name: "去这",
});
+ } else {
+ this.seebut = [
+ {
+ name: "实景",
+ },
+ {
+ name: "图集",
+ },
+ {
+ name: "去这",
+ },
+ ];
}
this.center = [];
- for (let k in this.query.query) {
+ for (let k in queryData) {
for (let n in this.getCenter) {
- if (k == this.getCenter[n].name) {
+ if (k == this.getCenter[n].name && queryData[k]) {
this.center.push({
name: this.getCenter[n].value,
- value: this.query.query[k] ? this.query.query[k] : "暂无",
+ value: queryData[k] ? queryData[k] : "暂无",
});
+ }
+ if (k == "introduce") {
+ this.introduce = queryData[k];
}
}
}
@@ -97,34 +135,46 @@
name: "telePhone",
value: "电话",
},
+ {
+ name: "address",
+ value: "地址",
+ },
+ // {
+ // name: "introduce",
+ // value: "详情",
+ // },
],
+ introduce: "暂无详情数据",
title: "",
fullscreenLoading: false,
url: "/img/job/one.jpg",
positions: "",
srcList: [],
seebut: [],
- center: [
- {
- name: "网址",
- value: "123",
- },
- ],
+ center: [],
};
},
methods: {
openOnce(val) {
let that = this;
- // console.log(val, this.onceData);
if (val == "去这") {
//定位
+ console.log(this.query.query);
} else if (val == "实景") {
- this.$store.commit("MSET_OPENMOBILEPANORAMA", true);
+ this.$store.commit(
+ "MSET_OPENMOBILEPANORAMA",
+ "https://www.kuleiman.com/110487/index.html?m=1"
+ );
} else if (val == "图集") {
let imgsDom = document.getElementById("mobileBigImgs");
imgsDom.click();
}
},
+ closeWindow() {
+ if (!this.MobileWindowsHide) {
+ this.$store.dispatch("closeMobileWindowsDom"); //关闭随地图弹窗
+ }
+ },
},
};
</script>
--
Gitblit v1.9.3