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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
| <template>
| <div class="homeBox">
|
|
|
| <!-- <div class="threeMap">
| <jw-chat></jw-chat>
| </div>
| <div class="secondMap">
| <map-view></map-view>
| </div> -->
|
| </div>
| </template>
|
| <script>
| import mapViewer from '../../assets/js/map/mapView';
| import jwChat from '../chart/index.vue';
| import mapView from '../mapView/index.vue'
| import store from '../../store';
| export default {
| name: 'homePage',
| components: {
| jwChat,
| mapView
| },
| data() {
| return {
| setMenuFlag: false
| }
| },
| computed: {
| Obj() {
| return store.state.setMenuFlag
| }
|
| },
| watch: {
| Obj(newVal, oldVal) {
| console.log(oldVal)
| console.log(newVal)
| this.setMenuFlag = newVal;
| }
| },
|
| methods: {
|
| },
| mounted() {
| // mapViewer.initMap();
| }
| }
| </script>
|
| <style scoped >
| .homeBox {
| width: 100%;
| height: 100%;
| /* display: flex; */
|
| }
|
| .homeBox .threeMap {
| width: 100%;
| height: calc(100% - 48px);
| background: skyblue;
| }
|
| .homeBox .secondMapFlag {
| width: 0px;
| transition: width 1s;
| }
|
| .homeBox .secondMap {
| flex: 1;
|
|
| }
|
| .homeBox .homeHeader {
| width: 100%;
| height: 48px;
| background: #1C1C1C;
| display: flex;
| align-items: center;
| }
|
| .header_img {
| width: 30px;
| height: 30px;
| background: url('../../assets/img/logo\ 2.png')no-repeat;
| background-size: 100% 100%;
| margin-left: 16px;
| }
|
| .header_title {
| margin-left: 16px;
| height: 21px;
| font-size: 24px;
| font-family: Source Han Sans SC;
| color: white;
| line-height: 21px;
| /* background: url('../../assets/img/SE Indoor.png')no-repeat;
| background-size: 100% 100%;
| margin-left: 16px; */
|
| }
| </style>
|
|