From 81f54040c2cb65537c6c6e1db8358a39a57dea0d Mon Sep 17 00:00:00 2001
From: mayisheng <admin>
Date: Mon, 15 Aug 2022 16:14:01 +0800
Subject: [PATCH] 1

---
 src/components/mobileCortrolSearch/index.vue |   35 +++++++++++++++++++++++++++--------
 1 files changed, 27 insertions(+), 8 deletions(-)

diff --git a/src/components/mobileCortrolSearch/index.vue b/src/components/mobileCortrolSearch/index.vue
index 3926498..545d6c9 100644
--- a/src/components/mobileCortrolSearch/index.vue
+++ b/src/components/mobileCortrolSearch/index.vue
@@ -1,11 +1,21 @@
 <template>
+  <!-- 中间搜索
+mobileCortrolSearch
+ -->
   <div class="m-left-mobileCortrolSearch">
     <div class="m-left-SearchMain">
-      <el-input placeholder="请输入内容" v-model="input" clearable size="small"
-        ><el-button
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        clearable
+        size="small"
+        class="m-left-S-input"
+      >
+        <el-button
           slot="append"
           class="iconSearch"
-          icon="el-icon-search"
+          icon="el-icon-search icon"
+          @click="search"
         ></el-button>
       </el-input>
     </div>
@@ -19,23 +29,26 @@
   data() {
     return {
       viewer: null,
-      DC: null,
+      input: "",
     };
   },
-  created() {
-    this.DC = global.DC;
-  },
+  created() {},
   mounted() {},
   methods: {
     initialize(viewer) {
       viewer.scene.globe.depthTestAgainstTerrain = false;
       this.viewer = viewer;
     },
+    search() {
+      const that = this;
+      this.$store.commit("MSET_BIGPOPUP", { search: true, value: that.input });
+      that.input = "";
+    },
   },
 };
 </script>
 
-<style scoped lang='scss'>
+<style scoped lang="scss">
 .m-left-mobileCortrolSearch {
   width: 100%;
   position: fixed;
@@ -51,15 +64,21 @@
     display: flex;
     align-items: center;
     justify-content: center;
+    .m-left-S-input {
+      border: none;
+      font-size: 16px;
+    }
     .iconSearch {
       width: 30px;
       height: 30px;
       padding-top: 0;
       padding-bottom: 0;
+      background-color: rgb(33, 150, 243);
       display: flex;
       align-items: center;
       justify-content: center;
       font-size: 24px;
+      color: #fff;
     }
   }
 }

--
Gitblit v1.9.3