1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/recommend/list"],{"5c20":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));var r={uNavbar:function(){return n.e("uni_modules/vk-uview-ui/components/u-navbar/u-navbar").then(n.bind(null,"a639"))},HMFilterDropdown:function(){return n.e("uni_modules/HM-filterDropdown/components/HM-filterDropdown/HM-filterDropdown").then(n.bind(null,"2a63"))},uEmpty:function(){return n.e("uni_modules/vk-uview-ui/components/u-empty/u-empty").then(n.bind(null,"2654"))},uIcon:function(){return n.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(n.bind(null,"ba35"))},uTag:function(){return n.e("uni_modules/vk-uview-ui/components/u-tag/u-tag").then(n.bind(null,"8002"))},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"))},uDivider:function(){return n.e("uni_modules/vk-uview-ui/components/u-divider/u-divider").then(n.bind(null,"d07e"))},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"))}},u=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.customerList,(function(t,n){var r=e.__get_orig(t),u=1==t.report_state?Number(t.report_step):null;return{$orig:r,m0:u}})));e._isMounted||(e.e0=function(t){e.searchPopupShow=!0},e.e1=function(t){e.searchPopupShow=!1}),e.$mp.data=Object.assign({},{$root:{l0:n}})},o=[]},"6f7b":function(e,t,n){"use strict";n.r(t);var r=n("f13e"),u=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=u.a},c50e:function(e,t,n){},d225:function(e,t,n){"use strict";var r=n("c50e"),u=n.n(r);u.a},d637:function(e,t,n){"use strict";n.r(t);var r=n("5c20"),u=n("6f7b");for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o);n("d225");var a,i=n("f0c5"),l=Object(i["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);t["default"]=l.exports},e016:function(e,t,n){"use strict";(function(e){n("3690");r(n("66fd"));var t=r(n("d637"));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"])},f13e:function(e,t,n){"use strict";(function(e){function n(e){return a(e)||o(e)||u(e)||r()}function r(){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 u(e,t){if(e){if("string"===typeof e)return i(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)?i(e,t):void 0}}function o(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function a(e){if(Array.isArray(e))return i(e)}function i(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 l(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var d={data:function(){return{searchKeyword:null,searchPopupShow:!1,searchFormData:{name:"",phone:""},menuTop:110,filterData:[{name:"日期范围",type:"hierarchy",submenu:[{name:"全部",value:0},{name:"24小时内",value:24},{name:"7天内",value:168},{name:"30天内",value:720}]},{name:"意向项目",type:"hierarchy",submenu:[{name:"全部",value:999}]},{name:"客户状态",type:"hierarchy",submenu:[{name:"全部状态",value:999},{name:"有效",value:1},{name:"审核中",value:2},{name:"无效",value:3}]},{name:"客户进度",type:"hierarchy",submenu:[{name:"全部进度",value:999},{name:"未到访",value:1},{name:"已到访",value:2},{name:"已认购",value:3},{name:"已签约",value:4},{name:"已结佣",value:5}]},{name:"排序",type:"hierarchy",submenu:[{name:"时间近到远",value:1},{name:"时间远到近",value:2}]}],filterHours:0,filterPropertyId:999,filterVerifyStatus:999,filterStepStatus:999,orderMethod:0,filterDropdownValue:{},customerList:[],stepList:["审核中","未到访","已到访","已认购","已签约","已结佣"],loadmore:{status:"loadmore",loadingText:"努力加载中",defaultText:"轻轻上拉 查看更多",nomoreText:"实在没有了",currnetPage:1}}},onLoad:function(t){f=this;var n=wx.getSystemInfoSync(),r=Number(n.statusBarHeight),u=wx.getMenuButtonBoundingClientRect(),o=(u.height,u.top,r+u.height+2*(u.top-r)),a=parseInt(750*o/n.windowWidth);a=10*Math.ceil(a/10),f.menuTop=a,void 0!==t.filterStepStatus&&(f.filterStepStatus=parseInt(t.filterStepStatus),this.filterDropdownValue=[[],[],[],[f.filterStepStatus],[]]),e.api.estate.apiestatelist({page_size:100}).then((function(e){var t=e.list||[];console.log(e),t.length>0&&(f.filterData[1]["submenu"]=t.map((function(e,t){return{name:e.estate_name,value:e.estate_id}})),f.filterData[1]["submenu"].unshift({value:999,name:"全部"}))})),this.getDataList()},onReachBottom:function(){"nomore"!=f.loadmore.status&&(f.loadmore.currnetPage++,this.getDataList())},onPullDownRefresh:function(){},methods:{getDataList:function(t){var r=this,u=s({},this.searchFormData);if(r.filterHours>0){var o=+new Date;u.start_at=parseInt((o-36e5*r.filterHours)/1e3),u.end_at=parseInt(o/1e3)}r.filterVerifyStatus<999&&(u.report_state=r.filterVerifyStatus),r.filterStepStatus<999&&(u.report_step=r.filterStepStatus),r.filterPropertyId<999&&(u.estate_id=r.filterPropertyId),r.orderMethod>0&&(1===r.orderMethod&&(u.order_by=JSON.stringify([{field:"create_at",sort:"desc"}])),2===r.orderMethod&&(u.order_by=JSON.stringify([{field:"create_at",sort:"asc"}]))),e.api.estate.apireportlist(s({page:r.loadmore.currnetPage},u)).then((function(u){var o=u.list||[];o.length<10&&(r.loadmore.status="nomore"),1===u.current_page?(0===o.length&&e.$msg("无搜索结果","none"),r.customerList=n(o)):r.customerList=r.customerList.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;f.loadmore.currnetPage=1,this.getDataList((function(){e.searchPopupShow=!1}))},confirmFilter:function(e){null!==e["value"][0][0]&&(f.filterHours=e["value"][0][0]),null!==e["value"][1][0]&&(f.filterPropertyId=e["value"][1][0]),null!==e["value"][2][0]&&(f.filterVerifyStatus=e["value"][2][0]),null!==e["value"][3][0]&&(f.filterStepStatus=e["value"][3][0]),null!==e["value"][4][0]&&(f.orderMethod=e["value"][4][0]),f.loadmore.currnetPage=1,this.getDataList()},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 u=t.getDate();u=u>9?u:"0"+u;var o=t.getHours();o=o>9?o:"0"+o;var a=t.getMinutes();return a=a>9?a:"0"+a,n+"-"+r+"-"+u}}};t.default=d}).call(this,n("543d")["default"])}},[["e016","common/runtime","common/vendor"]]]);
|