(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c3d7bae0"],{1870:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"agents-wrap"},[i("van-nav-bar",{class:{hiddenEdit:!t.active},attrs:{title:"我的经纪人","left-text":"","left-arrow":"","right-text":"编辑"},on:{"click-left":t.back,"click-right":t.edit}},[i("van-icon",{attrs:{slot:"left",name:t.backHome?"wap-home":"arrow-left"},slot:"left"})],1),i("van-tabs",{model:{value:t.active,callback:function(a){t.active=a},expression:"active"}},[i("van-tab",{attrs:{title:"服务我的经纪人"}},[t.data.length?t._l(t.data,function(a){return i("van-swipe-cell",{key:a.houseId,attrs:{"right-width":65,"on-close":t.onClose}},[t._l(t.data,function(a){return i("div",{key:a.id,staticClass:"broker-list flex_sb align-c"},[i("div",{staticClass:"flex"},[a.avatar?i("img",{attrs:{src:a.avatar,alt:""}}):i("img",{attrs:{src:e("6837"),alt:""}}),i("div",[i("p",[t._v(t._s(a.nickName))]),i("span",[t._v("微信号:"+t._s(a.wechat))])])]),i("a",{attrs:{href:"tel:"+a.mobilePrefix+a.mobile}},[i("i",{staticClass:"icon icon-shezhi flex_c align-c"})])])}),i("span",{attrs:{slot:"right"},slot:"right"},[t._v("删除")])],2)}):t._e(),t.data.length?t._e():i("div",{staticClass:"room-detail-none"},[t._v("暂无数据")])],2),i("van-tab",{attrs:{title:"我收藏的经纪人"}},[t.data.length?t._l(t.data,function(a){return i("van-swipe-cell",{key:a.roomId,attrs:{"right-width":65,"on-close":t.onClose}},[t._l(t.data,function(a){return i("div",{key:a.id,staticClass:"broker-list flex_sb align-c"},[i("div",{staticClass:"flex"},[a.avatar?i("img",{attrs:{src:a.avatar,alt:""}}):i("img",{attrs:{src:e("6837"),alt:""}}),i("div",[i("p",[t._v(t._s(a.nickName))]),i("span",[t._v("微信号:"+t._s(a.wechat))])])]),i("a",{attrs:{href:"tel:"+a.mobilePrefix+a.mobile}},[i("i",{staticClass:"icon icon-shezhi flex_c align-c"})])])}),i("span",{attrs:{slot:"right"},slot:"right"},[t._v("删除")])],2)}):t._e(),t.data.length?t._e():i("div",{staticClass:"room-detail-none"},[t._v("暂无数据")]),t.isEdit?i("div",{staticClass:"tabBar"},[i("van-checkbox",{model:{value:t.itemsChecked,callback:function(a){t.itemsChecked=a},expression:"itemsChecked"}},[t._v("全选")]),i("van-button",{attrs:{type:"default"}},[t._v("删除选中")])],1):t._e()],2)],1)],1)},s=[],n={name:"Agents",data:function(){return{data:[],active:0,itemsChecked:!1,cityItem:this.$util.getCookie("citySelectObj"),isEdit:!1,backHome:!1}},created:function(){this.$util.sessionStorage.fetch("backHome")&&(this.backHome=!0),this.cityItem?this.getData():(this.$Toast("请选择城市"),setTimeout(function(){window.location.href="/"},300))},methods:{getData:function(){var t=this,a={};a.url=this.$apis.api_buildings_list,a.data={cityId:this.cityItem.id},this.$net.req(a,this).then(function(a){t.data=a.data},function(a){t.$Toast(a.msg)})},onClose:function(t,a){switch(t){case"left":case"cell":case"outside":a.close();break;case"right":this.$Dialog.confirm({message:"确定删除吗？"}).then(function(){a.close()});break}},back:function(){this.backHome?(this.$util.sessionStorage.remove("backHome"),this.$router.push("/")):window.history.length>1?this.$router.go(-1):this.$router.push("/")},edit:function(){this.isEdit=!this.isEdit},editItems:function(){}}},c=n,o=(e("5c4f"),e("2877")),l=Object(o["a"])(c,i,s,!1,null,"adc1946a",null);l.options.__file="agents.vue";a["default"]=l.exports},"5c4f":function(t,a,e){"use strict";var i=e("9b03"),s=e.n(i);s.a},6837:function(t,a,e){t.exports=e.p+"img/avatar.12882358.png"},"9b03":function(t,a,e){}}]);
//# sourceMappingURL=chunk-c3d7bae0.4de146f9.js.map