| @@ -388,18 +388,44 @@ | |||||
| </van-search>--> | </van-search>--> | ||||
| <div id="mapWrapAll" style="width: 100%;height: 100vh"></div> | <div id="mapWrapAll" style="width: 100%;height: 100vh"></div> | ||||
| <div id="info" style="display: none"></div> | <div id="info" style="display: none"></div> | ||||
| <van-overlay :show="showSearch" @click="closeSearchBox" /> | |||||
| <!--搜索栏目--> | <!--搜索栏目--> | ||||
| <div class="searchBar_wrap"> | |||||
| <div class="searchBar_area"> | |||||
| <div class="bar_icon"></div> | |||||
| <div class="bar_ipt"> | |||||
| <input | |||||
| type="text" | |||||
| v-model="seachText" | |||||
| placeholder="请输入宗地或权利人信息" | |||||
| /> | |||||
| </div> | |||||
| <div id="query" class="bar_text">搜索</div> | |||||
| <div class="searchBar_wrap" :style="{bottom : bottomHeight}"> | |||||
| <van-search | |||||
| v-model="seachText" | |||||
| show-action | |||||
| placeholder="请输入宗地或权利人信息" | |||||
| > | |||||
| <template #action> | |||||
| <div id="query">搜索</div> | |||||
| </template> | |||||
| </van-search> | |||||
| <div class="searchBox"> | |||||
| <van-cell center > | |||||
| <template #title> | |||||
| <p><van-icon name="manager" /><span>刘茂强</span><span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">已核查</span></p> | |||||
| </template> | |||||
| <template #default> | |||||
| <p style="border: 1px solid #7ac943;color:#7ac943;">查看详情</p> | |||||
| </template> | |||||
| <template #label> | |||||
| <p style="font-size: 0.25rem;color: #666666;">宅基地代码 230381199705255117</p> | |||||
| <p style="font-size: 0.25rem;color: #666666;">宗地面积 113.87㎡</p> | |||||
| </template> | |||||
| </van-cell> | |||||
| <van-cell center > | |||||
| <template #title> | |||||
| <p><van-icon name="manager" /><span>刘茂强</span><span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">已核查</span></p> | |||||
| </template> | |||||
| <template #default> | |||||
| <p style="border: 1px solid #7ac943;color:#7ac943;">查看详情</p> | |||||
| </template> | |||||
| <template #label> | |||||
| <p style="font-size: 0.25rem;color: #666666;">宅基地代码 230381199705255117</p> | |||||
| <p style="font-size: 0.25rem;color: #666666;">宗地面积 113.87㎡</p> | |||||
| </template> | |||||
| </van-cell> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <!--点击房地-显示的搜索---> | <!--点击房地-显示的搜索---> | ||||
| @@ -1057,6 +1083,7 @@ | |||||
| name: "homesteadList", | name: "homesteadList", | ||||
| data() { | data() { | ||||
| return { | return { | ||||
| showSearch:false, | |||||
| showhncycybz:false, | showhncycybz:false, | ||||
| showhncyzjlx:false, | showhncyzjlx:false, | ||||
| showhncyyhzgx:false, | showhncyyhzgx:false, | ||||
| @@ -1167,6 +1194,8 @@ | |||||
| searchBarOperVisbile: false, | searchBarOperVisbile: false, | ||||
| //搜索---end | //搜索---end | ||||
| //地图使用 --end | //地图使用 --end | ||||
| bottomHeight:'0px', | |||||
| }; | }; | ||||
| }, | }, | ||||
| mounted(){ | mounted(){ | ||||
| @@ -1209,6 +1238,18 @@ | |||||
| this.getZjdList(); | this.getZjdList(); | ||||
| }, | }, | ||||
| methods: { | 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){ | yhzgxfy(value){ | ||||
| let label | let label | ||||
| @@ -1696,6 +1737,12 @@ | |||||
| setTimeout(() => { | setTimeout(() => { | ||||
| this.GetMapsInit(); | this.GetMapsInit(); | ||||
| }, 300); | }, 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 | //地图加载 -----start | ||||
| GetMapsInit() { | GetMapsInit() { | ||||
| @@ -2351,7 +2398,7 @@ | |||||
| */ | */ | ||||
| var val = that.seachText; | var val = that.seachText; | ||||
| if (val == "") { | if (val == "") { | ||||
| alert("请填写查询条件在查询"); | |||||
| that.$toast("请填写查询信息"); | |||||
| } else { | } else { | ||||
| //分类查询查询农地、农房 | //分类查询查询农地、农房 | ||||
| var difang; | var difang; | ||||
| @@ -2359,7 +2406,8 @@ | |||||
| var cql_filter; | var cql_filter; | ||||
| console.log(this.$cookies); | 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"]; | difang = ["zjd_dc:t_house_survey_zjdzd", "zjd_dc:t_house_survey_zrz","zjd_dc:t_house_survey_fsss"]; | ||||
| var tach = 0; | var tach = 0; | ||||
| @@ -2553,6 +2601,17 @@ | |||||
| }); | }); | ||||
| map.addLayer(delete_map[i]); | 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 | //按照查询 定位地图-----------------end | ||||
| @@ -3812,10 +3871,6 @@ | |||||
| </script> | </script> | ||||
| <style scoped lang="scss"> | <style scoped lang="scss"> | ||||
| .closeIcon{ | |||||
| } | |||||
| .bannerBg{ | .bannerBg{ | ||||
| width: 100%; | width: 100%; | ||||
| color:#fff; | color:#fff; | ||||
| @@ -3849,12 +3904,12 @@ | |||||
| margin:0 10px; | margin:0 10px; | ||||
| box-shadow: 0px 5px 6px 0px rgba(0,0,0,0.16); | box-shadow: 0px 5px 6px 0px rgba(0,0,0,0.16); | ||||
| } | } | ||||
| .van-cell__label{ | |||||
| color: #969799; | |||||
| font-size: 12px; | |||||
| line-height: 20px; | |||||
| margin:0 | |||||
| } | |||||
| /*.van-cell__label{*/ | |||||
| /* color: #969799;*/ | |||||
| /* font-size: 12px;*/ | |||||
| /* line-height: 20px;*/ | |||||
| /* margin:0*/ | |||||
| /*}*/ | |||||
| .map_area { | .map_area { | ||||
| width: 50vw; | width: 50vw; | ||||
| height: 50vh; | height: 50vh; | ||||
| @@ -4124,15 +4179,56 @@ | |||||
| .searchBar_wrap { | .searchBar_wrap { | ||||
| // display: none; | // display: none; | ||||
| display: flex; | |||||
| position: fixed; | position: fixed; | ||||
| bottom: 0%; | |||||
| left: 0; | left: 0; | ||||
| bottom: 0; | |||||
| width: 100%; | width: 100%; | ||||
| padding: 28px 16px 28px 13px; | |||||
| padding: 0px 16px 0px 13px; | |||||
| background: #fff; | background: #fff; | ||||
| border-top-left-radius: 15px; | border-top-left-radius: 15px; | ||||
| border-top-right-radius: 15px; | border-top-right-radius: 15px; | ||||
| z-index: 9; | |||||
| .searchBox{ | |||||
| .van-cell{ | |||||
| /*&:first-child{*/ | |||||
| /* box-shadow: none;*/ | |||||
| /* margin:0;*/ | |||||
| /*}*/ | |||||
| box-shadow: 0px 0px 5px #cccccc; | |||||
| border-radius: 15PX; | |||||
| margin-bottom: 0.35rem; | |||||
| } | |||||
| .van-cell__title{ | |||||
| flex: 0.8; | |||||
| p{ | |||||
| color: rgb(34, 183, 242); | |||||
| .van-icon{ | |||||
| vertical-align: middle; | |||||
| } | |||||
| span{ | |||||
| vertical-align: middle; | |||||
| &:nth-child(3){ | |||||
| font-size: 0.25rem; | |||||
| border-radius: 5PX; | |||||
| padding: 5PX 15PX; | |||||
| margin-left: 50%; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| .van-cell__value{ | |||||
| flex: 0.2; | |||||
| p{ | |||||
| font-size: 0.25rem; | |||||
| display: inline-block; | |||||
| border-radius: 1rem; | |||||
| line-height: 1; | |||||
| padding: 15PX 20PX; | |||||
| } | |||||
| } | |||||
| } | |||||
| .actionBar_wrap { | .actionBar_wrap { | ||||
| display: flex; | display: flex; | ||||
| position: absolute; | position: absolute; | ||||
| @@ -4140,7 +4236,6 @@ | |||||
| left: 0; | left: 0; | ||||
| width: 100%; | width: 100%; | ||||
| height: 100%; | height: 100%; | ||||
| background: #fff; | background: #fff; | ||||
| border-top-left-radius: 15px; | border-top-left-radius: 15px; | ||||
| border-top-right-radius: 15px; | border-top-right-radius: 15px; | ||||