From 7804a3a4d61ff1d857973e974bbdf78a2e17feab Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 17 Dec 2021 15:08:36 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/school-web
---
src/components/mobilePopupOurOnce/index.vue | 50 +++++++++++++++++++++++++++++++++++---------------
1 files changed, 35 insertions(+), 15 deletions(-)
diff --git a/src/components/mobilePopupOurOnce/index.vue b/src/components/mobilePopupOurOnce/index.vue
index 7967a8f..400eccb 100644
--- a/src/components/mobilePopupOurOnce/index.vue
+++ b/src/components/mobilePopupOurOnce/index.vue
@@ -1,6 +1,12 @@
<template>
<div class="mobilePopupOurOnce">
- <div class="mobilePopupOurOnce_center">
+ <div
+ class="mobilePopupOurOnce_center"
+ :style="{
+ borderBottom: !ends ? '#d4d4d4 dashed 1px' : '',
+ marginBottom: !ends ? '6px' : '',
+ }"
+ >
<div class="mobilePopupOurOnce_left">
<img src="img/cc/cc.png" alt="" />
</div>
@@ -29,8 +35,16 @@
<script>
import { mapGetters } from "vuex";
export default {
- props: ["onceData"],
+ props: ["onceData", "ends"],
name: "mobilePopupOurOnce",
+ created() {
+ this.DC = global.DC;
+ },
+ data() {
+ return {
+ DC: "",
+ };
+ },
computed: {
...mapGetters(["mviewer"]),
seebut() {
@@ -46,17 +60,23 @@
},
methods: {
openOnce(val) {
- console.log(val, this.onceData.name);
- // 定位
- // this.mviewer.zoomToPosition(
- // new DC.Position(
- // e.wgs84Position.lng,
- // e.wgs84Position.lat - 0.016,
- // 1530,
- // 0,
- // -45
- // )
- // );
+ let that = this;
+ console.log(val, this.onceData);
+ if (val == "定位") {
+ this.$store.commit("MSET_BIGPOPUP", false);
+ setTimeout(() => {
+ // 定制化窗体
+ let d = {
+ position: {},
+ lntLat: that.onceData.lntLat,
+ query: this.onceData,
+ useJWD: true, //仅使用经纬度
+ };
+ that.popupsDom = that.$store.dispatch("setMobileWindows", d);
+ }, 500);
+ } else if (val == "实景") {
+ this.$store.commit("MSET_OPENMOBILEPANORAMA", true);
+ }
},
},
};
@@ -73,9 +93,9 @@
padding: 0 0;
margin: 0 8px;
.mobilePopupOurOnce_center {
- margin-bottom: 8px;
+ // margin-bottom: 8px;
height: 80px;
- border-bottom: #d4d4d4 dashed 1px;
+ // border-bottom: #d4d4d4 dashed 1px;
padding-bottom: 8px;
@extend .flexCenter;
.mobilePopupOurOnce_left {
--
Gitblit v1.9.3