webpackJsonp([19],{"/MdS":function(t,e){},cptr:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("Dd8w"),i=s.n(a),n=s("qkow"),h=s("Cpzv"),r=s("/D4a"),o=s("NYxO"),c={data:function(){return{searchList:[],page:0,flag:!0,isNothing:!1,searchData:{}}},created:function(){console.log(this.$route.query.rentingType),this.getRecommendList()},computed:i()({},Object(o.b)(["locationInfo","userInfo"])),methods:{search:function(t){this.addHistory(t),this.searchVal=t,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 t=this;if(this.flag){this.flag=!1,0==this.page&&(this.searchList=[]),this.page++,this.$store.commit("updateLoading",!0);var e=this.searchData;e.currentPage=this.page,e.pageNumber=20,e.statusFlag=1,this.$http.get({url:"/houseInfo/page",data:e}).then(function(e){t.$store.commit("updateLoading",!1),e.success&&(e.data.page.currentPage<e.data.page.totalPage&&(t.flag=!0),e.data.pp.forEach(function(e){t.searchList.push(e)}),0==t.searchList.length&&(t.isNothing=!0,t.page=0,t.flag=!0,t.getRecommendList()))})}},getRecommendList:function(){var t=this;this.flag&&(this.flag=!1,0==this.page&&(this.searchList=[]),this.page++,this.$http.get({url:"/houseInfo/page",data:{currentPage:this.page,selectedFlag:"Y",pageNumber:20,statusFlag:1,cityCode:this.locationInfo.code}}).then(function(e){t.$store.commit("updateLoading",!1),e.success&&(e.data.page.currentPage<e.data.page.totalPage&&(t.flag=!0),e.data.pp.forEach(function(e){t.searchList.push(e)}))}))},screenStart:function(){this.$refs.screenContent.changeShowSreen(!0)},getData:function(t){var e=this;console.log(t),this.page=0,this.flag=!0,this.searchVal="",this.isNothing=!1,this.searchData=t,this.searchList=[],this.$store.commit("updateLoading",!0),setTimeout(function(){e.$store.commit("updateLoading",!1),e.getSearchList()},100)},menu:function(){this.$refs.list.scrollTop+this.$refs.list.offsetHeight>=this.$refs.list.scrollHeight&&this.recommendFlag&&(this.isNothing?this.getRecommendList():this.getSearchList())}},components:{GmButton:n.a,largeGoodsItem:h.a,screen:r.a}},g={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"container"},[t.searchList.length>0?s("div",{ref:"list",staticClass:"search-list"},t._l(t.searchList,function(e,a){return s("largeGoodsItem",{attrs:{goodsInfo:e,hasLine:a!=t.searchList.length-1}})})):s("div",{staticClass:"nothing",on:{scroll:t.menu}},[t._v("\n            未搜到对应房源信息\n        ")])])},staticRenderFns:[]};var f=s("VU/8")(c,g,!1,function(t){s("/MdS")},"data-v-4df6b6b5",null);e.default=f.exports}});
//# sourceMappingURL=19.bbbcd4d5ddf8226205cd.js.map