1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
| /* * @Author: Morpheus * @Date: 2022-03-31 15:26:19 * @Last Modified by:
| Morpheus * @Last Modified time: 2022-03-31 15:32:22 * @Name:
| 该组件得作用是什么等 */
| <template>
| <!-- 实景窗口
| mobilePanorama
| -->
| <div v-if="openmobilePanorama" class="mobilePanorama">
| <div class="mobilePanorama-close" @click="closeMobilePanorama">
| <i class="el-icon-error icon"></i>
| </div>
| <iframe
| :src="openmobilePanorama"
| width="100%"
| height="100%"
| frameborder="0"
| ></iframe>
| </div>
| </template>
|
| <script>
| import { mapGetters } from "vuex";
| export default {
| name: "mobilePanorama",
| computed: {
| ...mapGetters(["openmobilePanorama"]),
| },
| // watch: {
| // openmobilePanorama() {
| // // console.log(this.openmobilePanorama);
| // if (this.openmobilePanorama) {
| // console.log("开启全景");
| // }
| // },
| // },
| data() {
| return {};
| },
| methods: {
| closeMobilePanorama() {
| this.$store.commit("MSET_OPENMOBILEPANORAMA", false);
| },
| },
| };
| </script>
|
| <style lang="scss" scoped>
| .mobilePanorama {
| position: fixed;
| top: 0;
| left: 0;
| width: 100%;
| height: 100%;
| z-index: 1000;
| background-color: #fff;
| .mobilePanorama-close {
| background-color: rgba($color: #fff, $alpha: 0.6);
| border-radius: 1000px;
| position: absolute;
| right: 5px;
| top: 5px;
| .icon {
| font-size: 35px;
| }
| }
| }
| </style>
|
|