1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/saler/list"],{"2c5a":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,"66e2"))},uEmpty:function(){return n.e("uni_modules/vk-uview-ui/components/u-empty/u-empty").then(n.bind(null,"e69b"))},uIcon:function(){return n.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(n.bind(null,"7fce"))},uTag:function(){return n.e("uni_modules/vk-uview-ui/components/u-tag/u-tag").then(n.bind(null,"ab84"))},uPopup:function(){return n.e("uni_modules/vk-uview-ui/components/u-popup/u-popup").then(n.bind(null,"22ad"))},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,"f017"))},uDivider:function(){return n.e("uni_modules/vk-uview-ui/components/u-divider/u-divider").then(n.bind(null,"e7dc"))},uButton:function(){return n.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(n.bind(null,"479c"))},uLoadmore:function(){return n.e("uni_modules/vk-uview-ui/components/u-loadmore/u-loadmore").then(n.bind(null,"0807"))}},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=[]},"3e5e":function(e,t,n){"use strict";n.r(t);var o=n("64e2"),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},"64e2":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("266b"),c=o(n("ceee"));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("66e2"))}.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,"-").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"])},"79b3":function(e,t,n){},"98d5":function(e,t,n){"use strict";n.r(t);var o=n("2c5a"),r=n("3e5e");for(var u in r)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(u);n("db33");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},db33:function(e,t,n){"use strict";var o=n("79b3"),r=n.n(o);r.a},f504:function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("b159");o(n("66fd"));var r=o(n("98d5"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["f504","common/runtime","common/vendor"]]]);
|