webpackJsonp([19],{EVcx:function(e,t){},xG8d:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s("Dd8w"),i=s.n(n),a=s("qkow"),r=s("Cpzv"),o=s("/D4a"),c=s("NYxO"),h={data:function(){return{searchList:[],page:0,flag:!0,isNothing:!1,searchData:{}}},created:function(){var e=this;if(console.log(this.$route.query.rentingType),this.$route.query.rentingType){var t="";switch(this.$route.query.rentingType){case"0":t="整租";break;case"1":t="合租";break;case"2":t="品牌公寓"}console.log(t),setTimeout(function(){e.$refs.screenContent.rentType=t,setTimeout(function(){e.$refs.screenContent.getData()},100)},100)}},name:"getMore",computed:i()({},Object(c.b)(["locationInfo","userInfo","direction"])),methods:{search:function(e){this.addHistory(e),this.searchVal=e,this.isSearch=!0,this.page=0,this.flag=!0,this.searchData={},this.isNothing=!1,this.$refs.screenContent&&this.$refs.screenContent.refreash(),this.$refs.searchBefore?this.$refs.searchBefore.addEventListener("transitionend",this.getSearchList):this.getSearchList()},getSearchList:function(){var e=this;if(this.flag){this.flag=!1,0==this.page&&(this.searchList=[]),this.page++,this.$store.commit("updateLoading",!0);var t=this.searchData;t.currentPage=this.page,t.pageNumber=20,t.statusFlag=1,t.cityCode||(t.cityCode=this.locationInfo.code),this.$http.get({url:"/houseInfo/page",data:t}).then(function(t){e.$store.commit("updateLoading",!1),t.success&&(t.data.page.currentPage<t.data.page.totalPage&&(e.flag=!0),t.data.pp.forEach(function(t){e.searchList.push(t)}),0==e.searchList.length&&(e.isNothing=!0,e.page=0,e.flag=!0,e.getRecommendList()))})}},getRecommendList:function(){var e=this;this.flag&&(this.flag=!1,0==this.page&&(this.searchList=[]),this.page++,this.$http.get({url:"/houseInfo/page",data:{currentPage:this.page,recommendFlag:"Y",pageNumber:20,statusFlag:1,cityCode:this.locationInfo.code}}).then(function(t){e.$store.commit("updateLoading",!1),t.success&&(t.data.page.currentPage<t.data.page.totalPage&&(e.flag=!0),t.data.pp.forEach(function(t){e.searchList.push(t)}))}))},screenStart:function(){this.$refs.screenContent.changeShowSreen(!0)},getData:function(e){var t=this;console.log(e),this.page=0,this.flag=!0,this.searchVal="",this.isNothing=!1,this.searchData=e,this.searchList=[],this.$store.commit("updateLoading",!0),setTimeout(function(){t.$store.commit("updateLoading",!1),t.getSearchList()},100)},menu:function(){this.$refs.list.scrollTop+this.$refs.list.offsetHeight>=this.$refs.list.scrollHeight&&this.recommendFlag&&(this.isNothing?this.getRecommendList():this.getSearchList())}},activated:function(){var e=this;if(console.log(this.direction),"forward"==this.direction&&(this.searchList=[],this.page=0,this.flag=!0,this.isNothing=!1,this.searchData={},this.$refs.screenContent.showSreen=!1,this.$refs.screenContent.changeType="区域",this.$refs.screenContent.regionValue="",this.$refs.screenContent.regionCode="",this.$refs.screenContent.rentType="",this.$refs.screenContent.huoseType="",this.$refs.screenContent.rent="",this.$refs.screenContent.searchData={},this.$refs.screenContent.faced="",this.$refs.screenContent.area="",this.$refs.screenContent.houseFeature=[],this.$route.query.rentingType)){var t="";switch(this.$route.query.rentingType){case"0":t="整租";break;case"1":t="合租";break;case"2":t="品牌公寓"}console.log(t),setTimeout(function(){e.$refs.screenContent.rentType=t,setTimeout(function(){e.$refs.screenContent.getData()},100)},100)}},components:{GmButton:a.a,largeGoodsItem:r.a,screen:o.a}},g={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"container"},[s("div",{ref:"screenBox",staticStyle:{"border-bottom":"0.02rem solid #f2f4f5"},on:{click:e.screenStart}},[s("screen",{ref:"screenContent",on:{getData:e.getData}})],1),e._v(" "),s("div",{ref:"list",staticClass:"search-list"},[e.isNothing?s("div",{staticClass:"nothing",on:{scroll:e.menu}},[e._v("\n            未搜到对应房源,以下是推荐房源\n        ")]):e._e(),e._v(" "),e._l(e.searchList,function(t,n){return s("largeGoodsItem",{attrs:{goodsInfo:t,hasLine:n!=e.searchList.length-1}})})],2)])},staticRenderFns:[]};var f=s("VU/8")(h,g,!1,function(e){s("EVcx")},"data-v-0a9ba63e",null);t.default=f.exports}});
//# sourceMappingURL=19.4a101b77bf6d616c0e90.js.map