1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/recommend/list"],{"315e":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={wmWatermark:function(){return n.e("components/wm-watermark/wm-watermark").then(n.bind(null,"1800"))},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("315e"),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"),c=Object(i["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);t["default"]=c.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){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("89b9"));function u(e){return e&&e.__esModule?e:{default:e}}function o(e){return l(e)||c(e)||i(e)||a()}function a(){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 s(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)?s(e,t):void 0}}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return s(e)}function s(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 f(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?f(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p,v=function(){n.e("components/wm-watermark/wm-watermark").then(function(){return resolve(n("1800"))}.bind(null,n)).catch(n.oe)},h={components:{wmWatermark:v},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},curRoles:"",userInfo2:{}}},onLoad:function(t){p=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),p.menuTop=a,void 0!==t.filterStepStatus&&(p.filterStepStatus=parseInt(t.filterStepStatus),this.filterDropdownValue=[[],[],[],[p.filterStepStatus],[]]),e.api.estate.apiestatelist({page_size:100}).then((function(e){var t=e.list||[];t.length>0&&(p.filterData[1]["submenu"]=t.map((function(e,t){return{name:e.estate_name,value:e.estate_id}})),p.filterData[1]["submenu"].unshift({value:999,name:"全部"}))})),this.getDataList(),this.userInfo2=e.getStorageSync("MD_userInfo2"),this.curRoles=e.getStorageSync("MD_userInfo2")?e.getStorageSync("MD_userInfo2").roles:""},onReachBottom:function(){"nomore"!=p.loadmore.status&&(p.loadmore.currnetPage++,this.getDataList())},onPullDownRefresh:function(){},methods:{dial:function(t){e.makePhoneCall({phoneNumber:t})},listItemHandle:function(t){2==t.report_state?1==this.curRoles||5==this.curRoles||7==this.curRoles?e.$msgConfirm("当前客户报备审核中,是否前往审核?",(function(){e.navigateTo({url:"/pages/agent/recommend/check?id=".concat(t.id,"&name=").concat(t.name,"-").concat(t.phone)})})):e.$msgConfirm("当前客户报备审核中~"):e.navigateTo({url:"/pages/agent/recommend/detail?id="+t.id})},copyTextHandle:function(t){(0,r.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);if(n.filterHours>0){var u=+new Date;r.start_at=parseInt((u-36e5*n.filterHours)/1e3),r.end_at=parseInt(u/1e3)}n.filterVerifyStatus<999&&(r.report_state=n.filterVerifyStatus),n.filterStepStatus<999&&(r.report_step=n.filterStepStatus),n.filterPropertyId<999&&(r.estate_id=n.filterPropertyId),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.apireportlist(m({page:n.loadmore.currnetPage},r)).then((function(r){var u=r.list||[];u.length<10&&(n.loadmore.status="nomore"),1===r.current_page?(0===u.length&&e.$msg("无搜索结果","none"),n.customerList=o(u)):n.customerList=n.customerList.concat(u),t&&t()}))},customBack:function(){e.reLaunch({url:"/pages/index/index"})},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}))},confirmFilter:function(e){null!==e["value"][0][0]&&(p.filterHours=e["value"][0][0]),null!==e["value"][1][0]&&(p.filterPropertyId=e["value"][1][0]),null!==e["value"][2][0]&&(p.filterVerifyStatus=e["value"][2][0]),null!==e["value"][3][0]&&(p.filterStepStatus=e["value"][3][0]),null!==e["value"][4][0]&&(p.orderMethod=e["value"][4][0]),p.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();a=a>9?a:"0"+a;var i=t.getSeconds();return i=i>9?i:"0"+i,"".concat(n,"-").concat(r,"-").concat(u," ").concat(o,":").concat(a,":").concat(i)}}};t.default=h}).call(this,n("543d")["default"])}},[["e016","common/runtime","common/vendor"]]]);
|