You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
3.4 KiB
1 lines
3.4 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/index/customClassList"],{"0d5b":function(t,e,o){"use strict";var n=o("19c0"),a=o.n(n);a.a},"19c0":function(t,e,o){},"42c3":function(t,e,o){"use strict";o.r(e);var n=o("755d"),a=o("7ae5");for(var u in a)["default"].indexOf(u)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(u);o("0d5b");var i=o("828b"),c=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,"a649d664",null,!1,n["a"],void 0);e["default"]=c.exports},"755d":function(t,e,o){"use strict";o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return u})),o.d(e,"a",(function(){return n}));var n={uniPopup:function(){return o.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(o.bind(null,"2864"))},uniEasyinput:function(){return o.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(o.bind(null,"5fa6"))}},a=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){return t.$refs.getaPopup.open()})},u=[]},"7ae5":function(t,e,o){"use strict";o.r(e);var n=o("c137"),a=o.n(n);for(var u in n)["default"].indexOf(u)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(u);e["default"]=a.a},"9ec9":function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("7859");n(o("3240"));var a=n(o("42c3"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(a.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},c137:function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={data:function(){return{categoryList:[],categoryName:"",categoryId:""}},onShow:function(){},onLoad:function(){this.getCategoryList()},methods:{getCategoryList:function(){var e=this;this.tui.request("/app/customerCategory/getCustomerCategoryListByShopId","POST",{shopId:t.getStorageSync("shopId")},!1,!0).then((function(t){200==t.code?e.categoryList=t.result:e.tui.toast(t.message)})).catch((function(t){}))},goAddClass:function(){var e=this;""!==this.categoryName?(""!=this.categoryId?this.tui.request("/app/customerCategory/updateCustomerCategory","POST",{shopId:t.getStorageSync("shopId"),categoryName:this.categoryName,id:this.categoryId},!1,!1).then((function(t){200==t.code?(e.tui.toast("修改成功"),e.categoryId="",e.categoryName="",e.$refs.getaPopup.close(),e.getCategoryList()):e.tui.toast(t.message)})).catch((function(t){})):this.tui.request("/app/customerCategory/addCustomerCategory","POST",{shopId:t.getStorageSync("shopId"),categoryName:this.categoryName},!1,!1).then((function(t){200==t.code?(e.tui.toast("新增成功"),e.$refs.getaPopup.close(),e.getCategoryList()):e.tui.toast(t.message)})).catch((function(t){})),setTimeout((function(t){var e=getCurrentPages(),o=e[e.length-1];o.$vm.getCustomerCategoryList()}),300)):this.tui.toast("请输入客户分类名称")},delCateName:function(e){var o=this;t.showModal({title:"提示",content:"确定删除此条分类吗?",success:function(n){t.showLoading({title:"加载中..."}),n.confirm&&o.tui.request("/app/customerCategory/deleteCustomerCategory","POST",{id:e.id},!1,!0).then((function(t){200==t.code?(o.tui.toast("删除成功"),o.getCategoryList()):o.tui.toast(t.message)})).catch((function(t){})),setTimeout((function(e){t.hideLoading()}),500)}})},editCateName:function(t){this.categoryName=t.categoryName,this.categoryId=t.id,this.$refs.getaPopup.open()}}};e.default=o}).call(this,o("df3c")["default"])}},[["9ec9","common/runtime","common/vendor"]]]);
|