1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/chosseHouse/chosseHouse"],{"04f1":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var o={uniDataCheckbox:function(){return n.e("uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox").then(n.bind(null,"8ea3"))}},a=function(){var t=this,e=t.$createElement,o=(t._self._c,t.roomList.length),a=t.roomList.length,r=0!=a?n("6e4c"):null,u=t.__map(t.roomList,(function(e,n){var o=t.__get_orig(e),r=0!=a?t.getDicType("roomUse",e.roomUse):null,u=0!=a&&void 0!=r?t.getDicType("roomUse",e.roomUse):null,i=0!=a?t.getDicType("zaiti",e.zaitiType):null,s=0!=a&&i?t.getDicType("zaiti",e.zaitiType):null;return{$orig:o,m0:r,m1:u,m2:i,m3:s}})),i=t.roomList.length;t.$mp.data=Object.assign({},{$root:{g0:o,g1:a,m4:r,l0:u,g2:i}})},r=[]},"1fd8":function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("1416"),n("4a2a");o(n("66fd"));var a=o(n("b260"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"57e4":function(t,e,n){"use strict";(function(t){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("2eee")),r=o(n("448a")),u=o(n("c973")),i=o(n("9523")),s=n("7982");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={isFromApp:1,status:[],chaoxiang:[],statusArray:[],chaoxiangArray:[],zaitiTypeArray:[],roomSize1:"",roomSize2:"",guidePrice1:"",guidePrice2:"",loupan_value:null,groupIds:null,pageNum:1,pageSize:10,total:0,mnpBuildingIds:"",currentState:""},d={components:{vanTab:function(){n.e("common/vendor").then(function(){return resolve(n("47a4"))}.bind(null,n)).catch(n.oe)},vanTabs:function(){n.e("common/vendor").then(function(){return resolve(n("ccc6"))}.bind(null,n)).catch(n.oe)},vanEmpty:function(){n.e("common/vendor").then(function(){return resolve(n("e2cf"))}.bind(null,n)).catch(n.oe)}},name:"chosseHouser.vue",data:function(){return{result:[],copy_result:[],dic_key:["PROPERTY_NATURE","HOUSE_USAGE"],dic_SelectList:{},loudongList:[],activezhaoshang:"0",form:l({},f),active:0,formData:{},value:0,vamTabStatus:!1,yuanqu_loacldata:[],loupan_loacldata:[],range:[{value:0,text:"科教产业园"},{value:1,text:"红沙湾"},{value:2,text:"胡埭"}],loupanList:[{value:0,text:"一期"},{value:1,text:"二期"},{value:2,text:"三期"},{value:3,text:"四期"},{value:4,text:"五期"},{value:5,text:"六期"},{value:6,text:"七期"},{value:7,text:"八期"},{value:8,text:"九期"}],statusList:[{value:1,text:"空置"},{value:3,text:"预约"},{value:4,text:"临期"},{value:6,text:"到期"}],roomList:[],fangxiangList:[{value:0,text:"东"},{value:1,text:"南"},{value:2,text:"西"},{value:3,text:"北"}],xinzhiList:[{value:1,text:"自有物业"},{value:2,text:"社会物业"}]}},mounted:function(){this.findYuanQuList(),this.getByCodes()},methods:{searchMore:function(){var t=this;return(0,u.default)(a.default.mark((function e(){var n,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.findRoomByCondition)(t.form);case 2:o=e.sent,(n=t.roomList).push.apply(n,(0,r.default)(o.rows)),t.form.total=o.total;case 5:case"end":return e.stop()}}),e)})))()},onReachBottom:function(){this.form.pageNum+=1,this.searchMore(),console.log("滑动到距离底部100px的时候触发,可以放 。。业务逻辑")},reast:function(){this.roomList=[],this.form=l({},f),this.findYuanQuList(),this.getByCodes()},search:function(){var t=this;return(0,u.default)(a.default.mark((function e(){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.form.groupIds||t.form.loupan_value){e.next=2;break}return e.abrupt("return",t.$showToast("请选择园区和楼盘后重试"));case 2:if(t.form.groupIds){e.next=4;break}return e.abrupt("return",t.$showToast("请选择园区后重试"));case 4:if(t.form.loupan_value){e.next=6;break}return e.abrupt("return",t.$showToast("请选择楼盘后重试"));case 6:return t.form.pageNum=1,t.form.pageSize=10,t.form.total=0,e.next=11,(0,s.findRoomByCondition)(t.form);case 11:n=e.sent,t.roomList=n.rows,t.form.total=n.total;case 14:case"end":return e.stop()}}),e)})))()},getByCodes:function(){var t=this;return(0,u.default)(a.default.mark((function e(){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getByCodes)(JSON.stringify(t.dic_key));case 2:n=e.sent,t.dic_SelectList=t.$common.handleDicList(n);case 4:case"end":return e.stop()}}),e)})))()},onBeforeChange:function(){this.copy_result=(0,r.default)(this.result)},getSelectedLoudong:function(t){var e=this,n=(0,r.default)(e.result);e.result=[],e.roomList=[],this.form.mnpBuildingIds="全部"==t.detail.title?"":t.detail.name,(0,s.findRoomByCondition)(e.form).then((function(t){t.rows.forEach((function(t){e.roomList.push(t)})),e.form.total=t.total,e.result=n}))},getSelectedYuanqu:function(){var t=this;return(0,u.default)(a.default.mark((function e(){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.findLongPanList)(t.form.groupIds);case 2:n=e.sent,t.roomList=[],t.loudongList=[],n.length>0?t.loupan_loacldata=n.map((function(t){return{value:t.id,text:t.name}})):t.loupan_loacldata=[{value:null,text:"暂无"}],console.log(t.loupan_loacldata);case 7:case"end":return e.stop()}}),e)})))()},getSelectedLoupan:function(){var t=this;return(0,u.default)(a.default.mark((function e(){var n,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,s.findLouDongList)(t.form.loupan_value);case 3:if(n=e.sent,t.vamTabStatus=!1,console.log(n),0!=n.length){e.next=13;break}return t.loudongList=[],t.roomList=[],t.tabsStatus=!t.tabsStatus,e.abrupt("return");case 13:console.log("我tm有数据的",n),t.loudongList=(0,r.default)(n),t.form.mnpBuildingIds=n[0].id,t.roomList=[];case 17:return e.next=19,(0,s.findRoomByCondition)(t.form);case 19:o=e.sent,console.log("我是row",o),t.roomList=o.rows,t.form.total=o.total,t.vamTabStatus=!0,console.log(o),e.next=30;break;case 27:e.prev=27,e.t0=e["catch"](0),console.log("e这天真热",e.t0);case 30:case"end":return e.stop()}}),e,null,[[0,27]])})))()},findYuanQuList:function(){var t=this;(0,s.findYuanQuList)().then((function(e){var n=(0,r.default)(e),o=n.map((function(t){return{value:t.id,text:t.groupName}}));t.yuanqu_loacldata=o}))},jumpPage:function(e){t.navigateTo({url:"/pages/subPackages/housedetails/housedetails?id="+e})},getDicType:function(t,e){if(e){if("zaiti"==t){var n=this.dic_SelectList.PROPERTY_NATURE,o=n.findIndex((function(t){return t.value==e}));return n[o].label}if("roomUse"==t){var a=this.dic_SelectList.HOUSE_USAGE,r=a.findIndex((function(t){return t.value==e}));return a[r].label}}},onLoadMore:function(){},onLoad:function(t){this.type=t.type},getChaoxiang:function(){this.form.roomDirection=this.form.chaoxiangArray.join(",")},getSelectedStatus:function(t){this.form.currentState=this.form.statusArray.join(",")},getSelectedXingZhi:function(){this.form.zaitiType=this.form.zaitiTypeArray.join(",")},takeParamsGoBack:function(){var e={type:this.type,result:this.result};t.$emit("getuser",e),t.navigateBack()},change:function(t){},getStatus:function(){},onChange:function(t){this.result=t.detail}},onPullDownRefresh:function(){},onReachBottom:function(){}};e.default=d}).call(this,n("543d")["default"])},9773:function(t,e,n){"use strict";var o=n("f611"),a=n.n(o);a.a},b260:function(t,e,n){"use strict";n.r(e);var o=n("04f1"),a=n("da6e");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("9773");var u=n("f0c5"),i=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=i.exports},da6e:function(t,e,n){"use strict";n.r(e);var o=n("57e4"),a=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=a.a},f611:function(t,e,n){}},[["1fd8","common/runtime","common/vendor"]]]);
|