平板端快衣店
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

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/index/customClassList"],{"33d6":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,"4d18"))},uniEasyinput:function(){return o.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(o.bind(null,"bc9c"))}},a=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){return t.$refs.getaPopup.open()})},u=[]},3665:function(t,e,o){"use strict";var n=o("a5cb"),a=o.n(n);a.a},"5d3a":function(t,e,o){"use strict";o.r(e);var n=o("33d6"),a=o("7970");for(var u in a)["default"].indexOf(u)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(u);o("3665");var i=o("828b"),s=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,"c9ba60b4",null,!1,n["a"],void 0);e["default"]=s.exports},7970:function(t,e,o){"use strict";o.r(e);var n=o("7a33"),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},"7a33":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"])},a5cb:function(t,e,o){},bf59:function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("82ca");n(o("3240"));var a=n(o("5d3a"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(a.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])}},[["bf59","common/runtime","common/vendor"]]]);