From 709c250c349faaec675f13227363e4f54793539b Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期四, 06 八月 2020 15:40:27 +0800
Subject: [PATCH] build: 添加app分类脚本

---
 src/pages/search/index/App.vue |   35 +++++++++++++++++++++++++++++++++--
 1 files changed, 33 insertions(+), 2 deletions(-)

diff --git a/src/pages/search/index/App.vue b/src/pages/search/index/App.vue
index d17a996..b93a70b 100644
--- a/src/pages/search/index/App.vue
+++ b/src/pages/search/index/App.vue
@@ -4,12 +4,13 @@
       <div class="resize-bar"></div>
       <div class="resize-line"></div>
       <div class="resize-save">
-        <left-nav :appName="'Video'" :height="screenHeight - 40"></left-nav>
+        <left-nav :appName="'Search'" :height="screenHeight - 40"></left-nav>
       </div>
     </div>
     <div class="column-right" :style="`height:${screenHeight}px;`">
       <right-side />
     </div>
+    <card-window></card-window>
   </div>
 </template>
 
@@ -17,12 +18,14 @@
 import LeftNav from "@/components/LeftNav";
 // import CameraVideo from "./components/Video.vue";
 import RightSide from "./Searching"
+import CardWindow from "@/components/cardWindow";
 
 export default {
   name: "SearchPage",
   components: {
     LeftNav,
-    RightSide
+    RightSide,
+    CardWindow
   },
   data() {
     return {
@@ -36,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>
 
@@ -57,6 +81,13 @@
   box-sizing: border-box;
   overflow: hidden;
 }
+.heigher-index {
+  position: absolute;
+  top: 0;
+  z-index: 10;
+  width: 100%;
+  height: 100%;
+}
 .resize-save {
   position: absolute;
   top: 0;

--
Gitblit v1.8.0