1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/saler/list"],{"03b3":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")),u=o(n("9523")),a=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,u.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:{},customerList:[],loadmore:{status:"loadmore",loadingText:"努力加载中",defaultText:"轻轻上拉 查看更多",nomoreText:"实在没有了",currnetPage:1},curRoles:"",userInfo2:{},authStateObj:{},groupTypeObj:{}}},onLoad:function(t){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.authStateObj=(0,a.arrToObj)(n.auth_state),this.groupTypeObj=(0,a.arrToObj)(n.group_type)},onReachBottom:function(){"nomore"!=this.loadmore.status&&(this.loadmore.currnetPage++,this.getDataList())},onPullDownRefresh:function(){},methods:{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,"&phone=").concat(t.phone)})})):e.$msgConfirm("当前客户报备审核中~"):e.navigateTo({url:"/pages/agent/recommend/detail?id="+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.cust.apideptuserlist(s({page:n.loadmore.currnetPage},o)).then((function(o){var u=o.list||[];u.length<10&&(n.loadmore.status="nomore"),1===o.current_page?(0===u.length&&e.$msg("无搜索结果","none"),n.customerList=(0,r.default)(u)):n.customerList=n.customerList.concat(u),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 u=t.getHours();u=u>9?u:"0"+u;var a=t.getMinutes();a=a>9?a:"0"+a;var c=t.getSeconds();return c=c>9?c:"0"+c,"".concat(n,"-").concat(o,"-").concat(r," ").concat(u,":").concat(a,":").concat(c)}}};t.default=l}).call(this,n("543d")["default"])},"0b80":function(e,t,n){"use strict";var o=n("74cd"),r=n.n(o);r.a},"0cd3":function(e,t,n){"use strict";n.r(t);var o=n("03b3"),r=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=r.a},"116a":function(e,t,n){"use strict";n.r(t);var o=n("9f60"),r=n("0cd3");for(var u in r)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(u);n("0b80");var a=n("f0c5"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=c.exports},"74cd":function(e,t,n){},"9f60":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return o}));var o={wmWatermark:function(){return n.e("components/wm-watermark/wm-watermark").then(n.bind(null,"e144"))},uEmpty:function(){return n.e("uni_modules/vk-uview-ui/components/u-empty/u-empty").then(n.bind(null,"078a"))},uIcon:function(){return n.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(n.bind(null,"ccaa"))},uTag:function(){return n.e("uni_modules/vk-uview-ui/components/u-tag/u-tag").then(n.bind(null,"e7ff"))},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"))},uDivider:function(){return n.e("uni_modules/vk-uview-ui/components/u-divider/u-divider").then(n.bind(null,"9569"))},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.customerList.length),o=e.customerList.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,g1:o}})},u=[]},fa00:function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("2ab2");o(n("66fd"));var r=o(n("116a"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["fa00","common/runtime","common/vendor"]]]);
|