list.js 6.0 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/estate/list"],{"0eeb":function(e,t,n){"use strict";var r=n("6a0c"),o=n.n(r);o.a},4435:function(e,t,n){"use strict";n.r(t);var r=n("db2e"),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},"6a0c":function(e,t,n){},"72fb":function(e,t,n){"use strict";(function(e){n("3690");r(n("66fd"));var t=r(n("ae87"));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},ae87:function(e,t,n){"use strict";n.r(t);var r=n("cf19"),o=n("4435");for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("0eeb");var u,c=n("f0c5"),i=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],u);t["default"]=i.exports},cf19:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={wmWatermark:function(){return n.e("components/wm-watermark/wm-watermark").then(n.bind(null,"1800"))},uTag:function(){return n.e("uni_modules/vk-uview-ui/components/u-tag/u-tag").then(n.bind(null,"8002"))},uIcon:function(){return n.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(n.bind(null,"ba35"))},uPopup:function(){return n.e("uni_modules/vk-uview-ui/components/u-popup/u-popup").then(n.bind(null,"c565"))},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,"6943"))},uButton:function(){return n.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(n.bind(null,"ce9e"))},uLoadmore:function(){return n.e("uni_modules/vk-uview-ui/components/u-loadmore/u-loadmore").then(n.bind(null,"3582"))}},o=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.searchPopupShow=!0},e.e1=function(t){e.searchPopupShow=!1})},a=[]},db2e:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("d0e4"),o=a(n("89b9"));function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return l(e)||s(e)||i(e)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return f(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(){n.e("components/wm-watermark/wm-watermark").then(function(){return resolve(n("1800"))}.bind(null,n)).catch(n.oe)},b={components:{wmWatermark:h},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,r.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,o.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,r=m({},this.searchFormData);n.orderMethod>0&&(1===n.orderMethod&&(r.order_by=JSON.stringify([{field:"create_at",sort:"desc"}])),2===n.orderMethod&&(r.order_by=JSON.stringify([{field:"create_at",sort:"asc"}]))),e.api.estate.apiestatelist(m({page:n.loadmore.currnetPage},r)).then((function(r){var o=r.list||[];o.length<10&&(n.loadmore.status="nomore"),1===r.current_page?(0===o.length&&e.$msg("无搜索结果","none"),n.dataList=u(o)):n.dataList=n.dataList.concat(o),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(),r=t.getMonth()+1;r=r>9?r:"0"+r;var o=t.getDate();o=o>9?o:"0"+o;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(r,"-").concat(o," ").concat(a,":").concat(u,":").concat(c)}}};t.default=b}).call(this,n("543d")["default"])}},[["72fb","common/runtime","common/vendor"]]]);