1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/cust/list"],{3594:function(t,e,n){"use strict";(function(t){n("3690");u(n("66fd"));var e=u(n("a1f0"));function u(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},4022:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return u}));var u={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"))}},o=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.searchPopupShow=!0},t.e1=function(e){t.searchPopupShow=!1})},r=[]},"49d9":function(t,e,n){},"9b9b":function(t,e,n){"use strict";(function(t){function n(t){return i(t)||r(t)||o(t)||u()}function u(){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 o(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function r(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function i(t){if(Array.isArray(t))return a(t)}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);e&&(u=u.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,u)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var d={data:function(){return{searchKeyword:null,searchPopupShow:!1,searchFormData:{name:"",phone:""},customerList:[],loadmore:{status:"loadmore",loadingText:"努力加载中",defaultText:"轻轻上拉 查看更多",nomoreText:"实在没有了",currnetPage:1}}},onLoad:function(t){f=this,void 0!==t.filterStepStatus&&(f.filterStepStatus=parseInt(t.filterStepStatus),this.filterDropdownValue=[[],[],[],[f.filterStepStatus],[]]),this.getDataList()},onReachBottom:function(){"nomore"!=f.loadmore.status&&(f.loadmore.currnetPage++,this.getDataList())},onPullDownRefresh:function(){},methods:{delHandle:function(e){var n=this;t.$msgConfirm("确定删除吗?",(function(){t.api.cust.apicustomerdel({id:e.id}).then((function(e){t.$msg("删除成功~"),n.loadmore.currnetPage=1,n.getDataList()}))}))},getDataList:function(e){var u=this,o=s({},this.searchFormData);t.api.cust.apicustomerlist(s({page:u.loadmore.currnetPage},o)).then((function(o){var r=o.list||[];r.length<10&&(u.loadmore.status="nomore"),(o.page=1)?(0==r.length&&t.$msg("无搜索结果","none"),u.customerList=n(r)):u.customerList=u.customerList.concat(r),e&&e()}))},customBack:function(){t.navigateBack()},pageTo:function(e,n){t.navigateTo({url:e,events:{update:function(t){}},success:function(t){t.eventChannel.emit("data",n)}})},searchHandle:function(){var t=this;f.loadmore.currnetPage=1,this.getDataList((function(){t.searchPopupShow=!1}))}}};e.default=d}).call(this,n("543d")["default"])},a1f0:function(t,e,n){"use strict";n.r(e);var u=n("4022"),o=n("b802");for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("e19c");var i,a=n("f0c5"),c=Object(a["a"])(o["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],i);e["default"]=c.exports},b802:function(t,e,n){"use strict";n.r(e);var u=n("9b9b"),o=n.n(u);for(var r in u)"default"!==r&&function(t){n.d(e,t,(function(){return u[t]}))}(r);e["default"]=o.a},e19c:function(t,e,n){"use strict";var u=n("49d9"),o=n.n(u);o.a}},[["3594","common/runtime","common/vendor"]]]);
|