list.js 6.5 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/saler/list"],{"1add":function(e,t,n){"use strict";(function(e){n("3690");o(n("66fd"));var t=o(n("595b"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},2695:function(e,t,n){"use strict";n.r(t);var o=n("9ad5"),r=n.n(o);for(var u in o)"default"!==u&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=r.a},5643:function(e,t,n){},"595b":function(e,t,n){"use strict";n.r(t);var o=n("99cf"),r=n("2695");for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);n("e014");var a,i=n("f0c5"),c=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);t["default"]=c.exports},"99cf":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,"1800"))},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"))}},r=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})},u=[]},"9ad5":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("d0e4"),r=u(n("89b9"));function u(e){return e&&e.__esModule?e:{default:e}}function a(e){return l(e)||s(e)||c(e)||i()}function i(){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 c(e,t){if(e){if("string"===typeof e)return d(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)?d(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 d(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function f(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 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){p(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 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)},g={components:{wmWatermark:h},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,o.arrToObj)(n.auth_state),this.groupTypeObj=(0,o.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,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,o=m({},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(m({page:n.loadmore.currnetPage},o)).then((function(o){var r=o.list||[];r.length<10&&(n.loadmore.status="nomore"),1===o.current_page?(0===r.length&&e.$msg("无搜索结果","none"),n.customerList=a(r)):n.customerList=n.customerList.concat(r),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 i=t.getSeconds();return i=i>9?i:"0"+i,"".concat(n,"-").concat(o,"-").concat(r," ").concat(u,":").concat(a,":").concat(i)}}};t.default=g}).call(this,n("543d")["default"])},e014:function(e,t,n){"use strict";var o=n("5643"),r=n.n(o);r.a}},[["1add","common/runtime","common/vendor"]]]);