(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/choosePlot/choosePlot"],{"199d":function(t,i,n){"use strict";n.r(i);var e=n("6a2d"),a=n("fb80");for(var o in a)"default"!==o&&function(t){n.d(i,t,(function(){return a[t]}))}(o);n("2c16");var u,c=n("f0c5"),l=Object(c["a"])(a["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],u);i["default"]=l.exports},"2c16":function(t,i,n){"use strict";var e=n("c492"),a=n.n(e);a.a},6793:function(t,i,n){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n("17f5"),a=getApp(),o={data:function(){return{city:"",county:"",currentCityCode:null,residential_list:null,sign:!1,loading:!0,scrollTop:0}},onPageScroll:function(t){this.scrollTop=t.scrollTop},onLoad:function(i){console.log(i),this.$isEmpty(i.city)||this.$isEmpty(i.county)||this.$isEmpty(i.currentCityCode)?(t.showLoading({mask:!0,title:"定位中"}),this.getLocation()):(this.currentCityCode=i.currentCityCode,this.city=i.city,this.county=i.county,this.getCommunity()),"index"==i.from_index?this.setData({sign:!0}):this.setData({sign:!1})},onShow:function(){this.canReset&&this.getCommunity(),this.canReset=!0},methods:{jump:function(i){var n=i.id;a.globalData.residentialId=n;var e=i.name;if(this.sign)a.globalData.room_list=null,a.globalData.device_list=null,t.setStorageSync("plotName",e),t.navigateTo({url:"/pages/index/index?residential_id="+n+"&residential_name="+e});else{var o={residential_name:e,residential_id:n};t.navigateTo({url:"./chooseBuilding/chooseBuilding"+this.$u.queryParams(o)})}},switchCity:function(){a.globalData.city=this.city,a.globalData.currentCityCode=this.currentCityCode,a.globalData.county=this.county,t.navigateTo({url:"/pages/switchcity/switchcity"})},getLocation:function(){this.setData({county:""});var i=this;t.getLocation({type:"wgs84",success:function(n){var o=n.latitude,u=n.longitude,c={location:o+","+u,key:e.key};i.$http.getLocation(c).then((function(n){t.hideLoading();var e=n.data.result.result.ad_info;i.setData({city:e.city,currentCityCode:e.adcode,county:e.district}),a.globalData.city=e.city,a.globalData.currentCityCode=e.adcode,a.globalData.county=e.district,i.getCommunity()}))},fail:function(n){t.hideLoading(),i.setData({city:"广州市",currentCityCode:"440105",county:"海珠区"}),a.globalData.city="广州市",a.globalData.currentCityCode="440105",a.globalData.county="海珠区",i.getCommunity()}})},getCommunity:function(i){t.showLoading({title:"加载中.."});var n=this,e={};e["region_area"]=this.currentCityCode,e["residential_name"]=i,n.$http.getResidentialByRegionArea(e).then((function(i){1==i.data.result_code?n.setData({residential_list:i.data.list}):a.globalData.oneFailHint(i.data.result_msg),n.loading=!1,t.hideLoading()}))},nameInputSearch:function(t){var i=t.detail.value;this.getCommunity(i)}}};i.default=o}).call(this,n("543d")["default"])},"6a2d":function(t,i,n){"use strict";n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return o})),n.d(i,"a",(function(){return e}));var e={uCellGroup:function(){return n.e("uview-ui/components/u-cell-group/u-cell-group").then(n.bind(null,"dc24"))},uCellItem:function(){return n.e("uview-ui/components/u-cell-item/u-cell-item").then(n.bind(null,"8ff3"))},uDivider:function(){return n.e("uview-ui/components/u-divider/u-divider").then(n.bind(null,"1014"))},uEmpty:function(){return n.e("uview-ui/components/u-empty/u-empty").then(n.bind(null,"5997"))},uBackTop:function(){return n.e("uview-ui/components/u-back-top/u-back-top").then(n.bind(null,"e05b"))}},a=function(){var t=this,i=t.$createElement,n=(t._self._c,t.$isEmpty(t.residential_list)),e=t.$isEmpty(t.residential_list);t.$mp.data=Object.assign({},{$root:{m0:n,m1:e}})},o=[]},c492:function(t,i,n){},f8ca:function(t,i,n){"use strict";(function(t){n("4518");e(n("66fd"));var i=e(n("199d"));function e(t){return t&&t.__esModule?t:{default:t}}t(i.default)}).call(this,n("543d")["createPage"])},fb80:function(t,i,n){"use strict";n.r(i);var e=n("6793"),a=n.n(e);for(var o in e)"default"!==o&&function(t){n.d(i,t,(function(){return e[t]}))}(o);i["default"]=a.a}},[["f8ca","common/runtime","common/vendor"]]]);