my.js 4.5 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/cust/my"],{"3df0":function(t,e,n){"use strict";n.r(e);var u=n("c4af"),o=n.n(u);for(var r in u)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(r);e["default"]=o.a},7514:function(t,e,n){"use strict";n.r(e);var u=n("9773"),o=n("3df0");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("bdda");var i=n("f0c5"),a=Object(i["a"])(o["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);e["default"]=a.exports},9773: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,"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"))},uGap:function(){return n.e("uni_modules/vk-uview-ui/components/u-gap/u-gap").then(n.bind(null,"9db7"))},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"))}},o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.customerList.length),u=t.customerList.length;t._isMounted||(t.e0=function(e){t.searchPopupShow=!0},t.e1=function(e){t.searchPopupShow=!1}),t.$mp.data=Object.assign({},{$root:{g0:n,g1:u}})},r=[]},bdda:function(t,e,n){"use strict";var u=n("f6ed"),o=n.n(u);o.a},c4af:function(t,e,n){"use strict";(function(t){var u=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,r=u(n("448a")),i=u(n("9523"));function a(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 c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={data:function(){return{searchKeyword:null,searchPopupShow:!1,searchFormData:{name:"",phone:"",remark:""},customerList:[],loadmore:{status:"loadmore",loadingText:"努力加载中",defaultText:"轻轻上拉 查看更多",nomoreText:"实在没有了",currnetPage:1}}},onLoad:function(t){o=this,void 0!==t.filterStepStatus&&(o.filterStepStatus=parseInt(t.filterStepStatus),this.filterDropdownValue=[[],[],[],[o.filterStepStatus],[]]),this.getDataList()},onShow:function(){},onReachBottom:function(){"nomore"!=o.loadmore.status&&(o.loadmore.currnetPage++,this.getDataList())},onPullDownRefresh:function(){},methods:{delHandle:function(e){var n=this;t.$msgConfirm("确定删除吗?",(function(){t.api.cust.apiprivatecustomerdel({id:e.id}).then((function(e){t.$msg("删除成功~"),n.loadmore.currnetPage=1,n.getDataList()}))}))},getDataList:function(e){var n=this,u=c({},this.searchFormData);t.api.cust.apiprivatecustomerlist(c({page:n.loadmore.currnetPage},u)).then((function(u){var o=u.list||[];o.length<10&&(n.loadmore.status="nomore"),1===u.current_page?(0==o.length&&t.$msg("无搜索结果","none"),n.customerList=(0,r.default)(o)):n.customerList=n.customerList.concat(o),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;o.loadmore.currnetPage=1,this.getDataList((function(){t.searchPopupShow=!1}))}}};e.default=s}).call(this,n("543d")["default"])},e53f:function(t,e,n){"use strict";(function(t,e){var u=n("4ea4");n("2ab2");u(n("66fd"));var o=u(n("7514"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},f6ed:function(t,e,n){}},[["e53f","common/runtime","common/vendor"]]]);