From e40ee62d3e9b71ffe3432d32a53a00c4097b5708 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 31 Dec 2021 09:03:28 +0800
Subject: [PATCH] +3d 2.5d
---
src/components/mobileCortrolSearch/index.vue | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/components/mobileCortrolSearch/index.vue b/src/components/mobileCortrolSearch/index.vue
index 3926498..17948c5 100644
--- a/src/components/mobileCortrolSearch/index.vue
+++ b/src/components/mobileCortrolSearch/index.vue
@@ -5,7 +5,8 @@
><el-button
slot="append"
class="iconSearch"
- icon="el-icon-search"
+ icon="el-icon-search icon"
+ @click="search"
></el-button>
</el-input>
</div>
@@ -20,6 +21,7 @@
return {
viewer: null,
DC: null,
+ input: "",
};
},
created() {
@@ -30,6 +32,11 @@
initialize(viewer) {
viewer.scene.globe.depthTestAgainstTerrain = false;
this.viewer = viewer;
+ },
+ search() {
+ let that = this;
+ this.$store.commit("MSET_BIGPOPUP", { search: true, value: that.input });
+ that.input = "";
},
},
};
@@ -56,10 +63,12 @@
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