From 3e6d9869e9a4a1b35f3083013f704ccb999d0767 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 12 May 2021 10:15:52 +0800
Subject: [PATCH] xcx地图

---
 public/xcxh5map/js/move.js    |    2 +-
 public/xcxh5map/xcxmap.html   |    2 ++
 public/xcxh5map/css/body.css  |   10 ++++++++--
 public/xcxh5map/js/vueMain.js |   20 +++++++++-----------
 4 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/public/xcxh5map/css/body.css b/public/xcxh5map/css/body.css
index f8e0edc..cd58328 100644
--- a/public/xcxh5map/css/body.css
+++ b/public/xcxh5map/css/body.css
@@ -7,10 +7,12 @@
     width: 100%;
     height: 100%;
 }
-#map{
+
+#map {
     width: 100%;
     height: 50%;
 }
+
 #mapVue {
     overflow: hidden;
     /* border: solid 1px springgreen; */
@@ -35,12 +37,16 @@
     /* border: 1px solid springgreen; */
     border-radius: 60px 60px 0 0;
     position: relative;
-    /* top: -2%; */
+    /* top: -3%; */
     background-color: #fff;
     z-index: 401;
     display: flex;
     align-items: center;
     justify-content: center;
+    flex-direction: column;
+}
+.title-span{
+    height: 15%;
 }
 
 /* .title::after {
diff --git a/public/xcxh5map/js/move.js b/public/xcxh5map/js/move.js
index fb1ecbe..041c68a 100644
--- a/public/xcxh5map/js/move.js
+++ b/public/xcxh5map/js/move.js
@@ -46,7 +46,7 @@
 
     //begin
     this.followFinger = (map, state = 14) => {//(地图实例,dom状态判断是向上还是向下)
-        console.log('开始跟随手指');
+        // console.log('开始跟随手指');
         var that = this;
         if(state != 14){
             that.state = state;
diff --git a/public/xcxh5map/js/vueMain.js b/public/xcxh5map/js/vueMain.js
index 193ccc6..1d9e9a1 100644
--- a/public/xcxh5map/js/vueMain.js
+++ b/public/xcxh5map/js/vueMain.js
@@ -13,8 +13,6 @@
         move: null,//存放移动实例
 
         seedata: '',
-        dialogVisible: 'true',
-        drawer: false,
     },
     methods: {
         getDataList() {
@@ -38,15 +36,15 @@
             this.map.invalidateSize(true);//应用地图高度
             this.move.followFinger(this.map, 'up');
         },
-        getQueryVariable(variable) {
-            var query = window.location.search.substring(1);
-            var vars = query.split("&");
-            for (var i = 0; i < vars.length; i++) {
-                var pair = vars[i].split("=");
-                if (pair[0] == variable) { return JSON.parse(decodeURI(pair[1])); }//解码url 和 JSON
-            }
-            return (false);
-        },
+        // getQueryVariable(variable) {
+        //     var query = window.location.search.substring(1);
+        //     var vars = query.split("&");
+        //     for (var i = 0; i < vars.length; i++) {
+        //         var pair = vars[i].split("=");
+        //         if (pair[0] == variable) { return JSON.parse(decodeURI(pair[1])); }//解码url 和 JSON
+        //     }
+        //     return (false);
+        // },
         beginMap(map, data) {
             var that = this;
             var createMap = () => {
diff --git a/public/xcxh5map/xcxmap.html b/public/xcxh5map/xcxmap.html
index dbc54ee..5809d0e 100644
--- a/public/xcxh5map/xcxmap.html
+++ b/public/xcxh5map/xcxmap.html
@@ -51,6 +51,8 @@
 		<div id="seedata">
 			<div class="title">
 				{{seedata.deviceName}}
+				<div class="title-span"> </div>
+				<div class="title-span"> </div>
 			</div>
 			<div class="main">
 				<div>

--
Gitblit v1.9.3