From 4c3e08670a6a98deea9984c7090994e8e47d3339 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期三, 05 八月 2020 10:46:40 +0800
Subject: [PATCH] card 查找此人添加检索页面跳转

---
 src/pages/search/index/App.vue |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/pages/search/index/App.vue b/src/pages/search/index/App.vue
index cda2cd0..afb18ec 100644
--- a/src/pages/search/index/App.vue
+++ b/src/pages/search/index/App.vue
@@ -39,7 +39,28 @@
         this.screenHeight = document.documentElement.clientHeight - 20;
       })();
     };
+
+    this.parseUrl();
   },
+  methods: {
+    parseUrl() {
+      if (this.getUrlKey("showType")) {
+        this.VideoPhotoData.uploadDiaplay = true;
+        console.log("鍒璺宠繃鏉ョ殑浠ュ浘鎼滃浘");
+        this.VideoPhotoData.picUrl = this.getUrlKey("picSmUrl");
+        this.VideoPhotoData.uploadImg = this.getUrlKey("picSmUrl");
+        this.VideoPhotoData.uploadType = true
+        this.VideoPhotoData.compTargetId = this.getUrlKey("targetId")
+        this.VideoPhotoData.compTargetType = this.getUrlKey("compType")
+        this.VideoPhotoData.size = 30
+        this.VideoPhotoData.compareTabs = ["esData"];
+        this.VideoPhotoData.findPerson2(); // 鏌ユ壘姝や汉
+      }
+    },
+    getUrlKey(name) {
+      return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
+    }
+  }
 };
 </script>
 

--
Gitblit v1.8.0