list.js 5.3 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/estate/list"],{"08ae":function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("2ab2");o(n("66fd"));var r=o(n("92e4"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"2c3c":function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("448a")),a=o(n("9523")),u=n("66f6"),c=o(n("1bf8"));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={components:{wmWatermark:function(){n.e("components/wm-watermark/wm-watermark").then(function(){return resolve(n("e144"))}.bind(null,n)).catch(n.oe)}},data:function(){return{searchKeyword:null,searchPopupShow:!1,searchFormData:{name:"",phone:""},orderMethod:0,filterDropdownValue:{},dataList:[],loadmore:{status:"loadmore",loadingText:"努力加载中",defaultText:"轻轻上拉 查看更多",nomoreText:"实在没有了",currnetPage:1},curRoles:"",userInfo2:{},areaTypeObj:{},curEid:"",curEname:""}},onLoad:function(t){t.eid&&(this.curEid=t.eid,this.curEname=t.enames),this.getDataList(),this.userInfo2=e.getStorageSync("MD_userInfo2"),this.curRoles=e.getStorageSync("MD_userInfo2")?e.getStorageSync("MD_userInfo2").roles:"";var n=e.getStorageSync("MD_dict");this.areaTypeObj=(0,u.arrToObj)(n.area_type)},onReachBottom:function(){"nomore"!=this.loadmore.status&&(this.loadmore.currnetPage++,this.getDataList())},onPullDownRefresh:function(){},methods:{listItemHandle:function(t){this.userInfo2&&1==this.userInfo2.auth_state&&e.navigateTo({url:"/pages/estate/dtl?id=".concat(t.id)})},copyTextHandle:function(t){(0,c.default)({content:"".concat(t.name,"-").concat("male"==t.sex?"男":"女","-").concat(t.phone),success:function(t){e.showToast({title:t,icon:"none"})},error:function(t){e.showToast({title:t,icon:"none",duration:3e3})}})},getDataList:function(t){var n=this,o=s({},this.searchFormData);n.orderMethod>0&&(1===n.orderMethod&&(o.order_by=JSON.stringify([{field:"create_at",sort:"desc"}])),2===n.orderMethod&&(o.order_by=JSON.stringify([{field:"create_at",sort:"asc"}]))),e.api.estate.apiestatelist(s({page:n.loadmore.currnetPage,is_pub:1},o)).then((function(o){var a=o.list||[];a.length<10&&(n.loadmore.status="nomore"),1===o.current_page?(0===a.length&&e.$msg("无搜索结果","none"),n.dataList=(0,r.default)(a)):n.dataList=n.dataList.concat(a),t&&t()}))},customBack:function(){e.navigateBack()},pageTo:function(t,n){e.navigateTo({url:t,events:{update:function(e){}},success:function(e){e.eventChannel.emit("data",n)}})},searchHandle:function(){var e=this;this.loadmore.currnetPage=1,this.getDataList((function(){e.searchPopupShow=!1}))},getTime:function(e){var t=e?new Date(e):new Date,n=t.getFullYear(),o=t.getMonth()+1;o=o>9?o:"0"+o;var r=t.getDate();r=r>9?r:"0"+r;var a=t.getHours();a=a>9?a:"0"+a;var u=t.getMinutes();u=u>9?u:"0"+u;var c=t.getSeconds();return c=c>9?c:"0"+c,"".concat(n,"-").concat(o,"-").concat(r," ").concat(a,":").concat(u,":").concat(c)}}};t.default=l}).call(this,n("543d")["default"])},"92e4":function(e,t,n){"use strict";n.r(t);var o=n("f63c"),r=n("ffbd");for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("bfdc");var u=n("f0c5"),c=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=c.exports},bfdc:function(e,t,n){"use strict";var o=n("c1ed"),r=n.n(o);r.a},c1ed:function(e,t,n){},f63c:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var o={wmWatermark:function(){return n.e("components/wm-watermark/wm-watermark").then(n.bind(null,"e144"))},uTag:function(){return n.e("uni_modules/vk-uview-ui/components/u-tag/u-tag").then(n.bind(null,"e7ff"))},uIcon:function(){return n.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(n.bind(null,"ccaa"))},uPopup:function(){return n.e("uni_modules/vk-uview-ui/components/u-popup/u-popup").then(n.bind(null,"7401"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(n.bind(null,"830c"))},uButton:function(){return n.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(n.bind(null,"51b1b"))},uLoadmore:function(){return n.e("uni_modules/vk-uview-ui/components/u-loadmore/u-loadmore").then(n.bind(null,"8b52"))}},r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.dataList.length);e._isMounted||(e.e0=function(t){e.searchPopupShow=!0},e.e1=function(t){e.searchPopupShow=!1}),e.$mp.data=Object.assign({},{$root:{g0:n}})},a=[]},ffbd:function(e,t,n){"use strict";n.r(t);var o=n("2c3c"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a}},[["08ae","common/runtime","common/vendor"]]]);