From 6a69c8a50d4bf6486ae3cc4f4e25e9d435de87fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Thu, 24 Feb 2022 13:24:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=9C=B0=E5=9B=BE=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=95=88=E6=9E=9C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homesteadSurvey/list.vue | 149 +++++++++++++++++++++++------ 1 file changed, 122 insertions(+), 27 deletions(-) diff --git a/src/views/homesteadSurvey/list.vue b/src/views/homesteadSurvey/list.vue index 030ab6ac..a6af3e2d 100644 --- a/src/views/homesteadSurvey/list.vue +++ b/src/views/homesteadSurvey/list.vue @@ -388,18 +388,44 @@ -->
+ -
-
-
-
- -
-
搜索
+
+ + + +
@@ -1057,6 +1083,7 @@ name: "homesteadList", data() { return { + showSearch:false, showhncycybz:false, showhncyzjlx:false, showhncyyhzgx:false, @@ -1167,6 +1194,8 @@ searchBarOperVisbile: false, //搜索---end //地图使用 --end + + bottomHeight:'0px', }; }, mounted(){ @@ -1209,6 +1238,18 @@ this.getZjdList(); }, methods: { + closeSearchBox(){ + this.showSearch = false ; + var height = $(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true) + document.styleSheets[0].insertRule( + "@keyframes test2" + + "{" + + "0%{bottom: 0px}" + + "100%{bottom: -" + height + "px;}" + + "}" + ) + $('.searchBar_wrap').css({'animation':'test2 0.5s ease-in-out 0s 1 alternate forwards','-webkit-animation':'test2 0.5s ease-in-out 0s 1 alternate forwards'}); + } , // 与户主关系翻译 yhzgxfy(value){ let label @@ -1696,6 +1737,12 @@ setTimeout(() => { this.GetMapsInit(); }, 300); + var that = this; + setTimeout(function () { + var height = $(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true) + console.log($('.searchBox').outerHeight(true)+'px') + that.bottomHeight = -height+'px' + },500) }, //地图加载 -----start GetMapsInit() { @@ -2351,7 +2398,7 @@ */ var val = that.seachText; if (val == "") { - alert("请填写查询条件在查询"); + that.$toast("请填写查询信息"); } else { //分类查询查询农地、农房 var difang; @@ -2359,7 +2406,8 @@ var cql_filter; console.log(this.$cookies); - //var cun = _this.villageDataObj.deptName; + // var cun = that.villageDataObj.deptName; + var cun = ''; difang = ["zjd_dc:t_house_survey_zjdzd", "zjd_dc:t_house_survey_zrz","zjd_dc:t_house_survey_fsss"]; var tach = 0; @@ -2553,6 +2601,17 @@ }); map.addLayer(delete_map[i]); } + console.log($(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true)) + that.showSearch = true ; + var height = $(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true) + document.styleSheets[0].insertRule( + "@keyframes test" + + "{" + + "0%{bottom: -" + height + "px;}" + + "100%{bottom: 0px;}" + + "}" + ) + $('.searchBar_wrap').css({'animation':'test 0.5s ease-in-out 0s 1 alternate forwards','-webkit-animation':'test 0.5s ease-in-out 0s 1 alternate forwards'}); } }); //按照查询 定位地图-----------------end @@ -3812,10 +3871,6 @@