webpackJsonp([16],{nmrU:function(t,e){},xG8d:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=s("Dd8w"),i=s.n(n),a=s("qkow"),o=s("Cpzv"),r=s("/D4a"),c=s("NYxO"),h={data:function(){return{searchList:[],page:0,flag:!0,isNothing:!1,searchData:{}}},created:function(){var t=this;this.locationInfo?this.getInfo():setTimeout(function(){t.locationInfo?t.getInfo():t.locationInfo||(t.$alert({title:"获取定位失败",content:"当前默认定位到南京市，您可以尝试手动切换城市。",showCancel:!0,confirmTxt:"切换城市"},function(){t.$router.push({name:"location"})}),t.$http.get({url:"/districtInfo/getOne",data:{fullName:"南京市"}}).then(function(e){e.success&&(t.$store.commit("updateLocationInfo",e.data),t.getInfo())}))},1e3)},name:"getMore",computed:i()({},Object(c.b)(["locationInfo","userInfo","direction"])),methods:{getInfo:function(){var t=this;if(this.$route.query.rentingType){var e="";switch(this.$route.query.rentingType){case"0":e="整租";break;case"1":e="合租";break;case"2":e="品牌公寓"}console.log(e),setTimeout(function(){t.$refs.screenContent.rentType=e,setTimeout(function(){t.$refs.screenContent.getData()},100)},100)}},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,e.cityCode||(e.cityCode=this.locationInfo.code),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,recommendFlag:"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())}},activated:function(){var t=this;if("forward"==this.direction&&this.locationInfo&&(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 e="";switch(this.$route.query.rentingType){case"0":e="整租";break;case"1":e="合租";break;case"2":e="品牌公寓"}console.log(e),setTimeout(function(){t.$refs.screenContent.rentType=e,setTimeout(function(){t.$refs.screenContent.getData()},100)},100)}},components:{GmButton:a.a,largeGoodsItem:o.a,screen:r.a}},f={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"container"},[s("div",{ref:"screenBox",staticStyle:{"border-bottom":"0.02rem solid #f2f4f5"},on:{click:t.screenStart}},[s("screen",{ref:"screenContent",on:{getData:t.getData}})],1),t._v(" "),s("div",{ref:"list",staticClass:"search-list"},[t.isNothing?s("div",{staticClass:"nothing",on:{scroll:t.menu}},[t._v("未搜到对应房源,以下是推荐房源")]):t._e(),t._v(" "),t._l(t.searchList,function(e,n){return s("largeGoodsItem",{attrs:{goodsInfo:e,hasLine:n!=t.searchList.length-1}})})],2)])},staticRenderFns:[]};var g=s("VU/8")(h,f,!1,function(t){s("nmrU")},"data-v-75dd76b0",null);e.default=g.exports}});
//# sourceMappingURL=16.1a08b196aec81225d672.js.map