From 22b526a7ab81da32a97d866831b9177a42e34a90 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 26 Jan 2022 08:36:54 +0800
Subject: [PATCH] +定位点击后显示等待图标,

---
 src/components/mobileWindow/index.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/components/mobileWindow/index.vue b/src/components/mobileWindow/index.vue
index a453868..e570a75 100644
--- a/src/components/mobileWindow/index.vue
+++ b/src/components/mobileWindow/index.vue
@@ -67,7 +67,9 @@
                 : item.name == '图集'
                 ? 'el-icon-data-board'
                 : item.name == '去这'
-                ? 'el-icon-finished'
+                ? quzheD
+                  ? 'el-icon-loading'
+                  : 'el-icon-finished'
                 : item.name == '视频' || item.name == '返回'
                 ? 'el-icon-video-camera-solid'
                 : ''
@@ -103,6 +105,7 @@
   watch: {
     MobileWindowChangeData() {
       this.$store.dispatch("MSET_GETAUDIOBEGIN", "notOpen");
+      this.quzheD = false;
       //数据更改
       //   this.fullscreenLoading = true;
       if (!this.MobileWindowsHide) {
@@ -243,6 +246,7 @@
       seebut: [],
       center: [],
       panoramaurl: "",
+      quzheD: false, //是否点击了去这,并不能再按,以及不应用路线导航
     };
   },
   methods: {
@@ -253,6 +257,11 @@
       let query = this.query.query;
       // console.log(query);
       if (val == "去这") {
+        if (that.quzheD) {
+          console.log("不可点击");
+          return;
+        }
+        that.quzheD = true;
         // return;
         //定位
         // console.log(this.query.query);
@@ -267,6 +276,7 @@
             fn: function (datas) {
               //获取回调路径
               that.routerS.push(datas);
+              that.quzheD = false;
               if (once) {
                 once = false;
                 //加载第一条线路

--
Gitblit v1.9.3