From 37a4a03e1ddef4f66904dccee54b684e73e9a3b2 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 18 Nov 2022 17:32:27 +0800
Subject: [PATCH] 1

---
 src/App.vue |   79 +++++++++++++++++++++------------------
 1 files changed, 42 insertions(+), 37 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 4281bd7..9b33900 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -5,7 +5,7 @@
 </template>
 
 <script>
-import AMapLoader from '@amap/amap-jsapi-loader'
+// import AMapLoader from '@amap/amap-jsapi-loader'
 import DevicePixelRatio from './utils/devicePixelRatio'
 
 export default {
@@ -46,53 +46,57 @@
         if (this._isMobile()) {
             this.cantdoits = true
             // 手机端
+            document.title = '江西经济管理干部学院三维可视化平台'
             this.$router.replace('/mobileLayout')
 
-            AMapLoader.load({
-                key: '9c4b1a0ce88821775605e726073c52b5', // 申请好的Web端开发者Key,首次调用 load 时必填
-                version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
-                plugins: [] // 插件列表
-            })
-                .then((AMap) => {
-                    window.AMap = AMap
-                    // that.map = new AMap.Map("mymap", {
-                    //   center: [115.84414205551147, 28.678983439095823],
-                    //   zoom: 14,
-                    // });
+            // AMapLoader.load({
+            //     key: '9c4b1a0ce88821775605e726073c52b5', // 申请好的Web端开发者Key,首次调用 load 时必填
+            //     version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
+            //     plugins: [] // 插件列表
+            // })
+            //     .then((AMap) => {
+            //         window.AMap = AMap
+            //         // that.map = new AMap.Map("mymap", {
+            //         //   center: [115.84414205551147, 28.678983439095823],
+            //         //   zoom: 14,
+            //         // });
 
-                    // this.map.on('touchmove', (e) => {
-                    //     console.log(e)
-                    // })
+            //         // this.map.on('touchmove', (e) => {
+            //         //     console.log(e)
+            //         // })
 
-                    // that.getLocationInfor(AMap, 115.84414205551147, 28.678983439095823);
-                    // that.map.on("mapmove", () => {
-                    //   that.mouseMoveFlag = false;
-                    //   that.mouseMoveFlag = true;
-                    //   var currentCenter = that.map.getCenter();
-                    //   if (that.setime) {
-                    //     clearTimeout(that.setime);
-                    //   }
-                    //   that.setime = setTimeout(() => {
-                    //     that.getLocationInfor(AMap, currentCenter.lng, currentCenter.lat);
-                    //     clearTimeout(that.setime);
-                    //     that.setime = null;
-                    //   }, 200);
-                    // });
+            //         // that.getLocationInfor(AMap, 115.84414205551147, 28.678983439095823);
+            //         // that.map.on("mapmove", () => {
+            //         //   that.mouseMoveFlag = false;
+            //         //   that.mouseMoveFlag = true;
+            //         //   var currentCenter = that.map.getCenter();
+            //         //   if (that.setime) {
+            //         //     clearTimeout(that.setime);
+            //         //   }
+            //         //   that.setime = setTimeout(() => {
+            //         //     that.getLocationInfor(AMap, currentCenter.lng, currentCenter.lat);
+            //         //     clearTimeout(that.setime);
+            //         //     that.setime = null;
+            //         //   }, 200);
+            //         // });
 
-                    // this.map.on('mousemove', (e) => {
-                    //     console.log(e)
-                    // })
-                })
-                .catch((e) => {
-                    console.log(e)
-                })
+            //         // this.map.on('mousemove', (e) => {
+            //         //     console.log(e)
+            //         // })
+            //     })
+            //     .catch((e) => {
+            //         console.log(e)
+            //     })
         } else {
+
             // pc端
             // this.$router.replace('/large')
 
             // if (this.$route.path == '/pcLayout/default') {
             //     this.$router.replace('/pcLayout')
-            // } else {
+            // }
+
+            //  else {
             //     this.$router.replace('/login')
             // }
         }
@@ -133,6 +137,7 @@
     padding: 0;
     overflow: hidden;
 }
+
 #app {
     font-family: 'Avenir', Helvetica, Arial, sans-serif;
     -webkit-font-smoothing: antialiased;

--
Gitblit v1.9.3