(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["my/store/fenlei"],{230:function(e,t,n){"use strict";(function(e){n(5);s(n(4));var t=s(n(231));function s(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n(1)["createPage"])},231:function(e,t,n){"use strict";n.r(t);var s=n(232),o=n(234);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n(236);var r,c=n(11),a=Object(c["default"])(o["default"],s["render"],s["staticRenderFns"],!1,null,null,null,!1,s["components"],r);a.options.__file="my/store/fenlei.vue",t["default"]=a.exports},232:function(e,t,n){"use strict";n.r(t);var s=n(233);n.d(t,"render",(function(){return s["render"]})),n.d(t,"staticRenderFns",(function(){return s["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return s["recyclableRender"]})),n.d(t,"components",(function(){return s["components"]}))},233:function(e,t,n){"use strict";var s;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return r})),n.d(t,"recyclableRender",(function(){return i})),n.d(t,"components",(function(){return s}));try{s={uPopup:function(){return n.e("uview-ui/components/u-popup/u-popup").then(n.bind(null,420))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-input/u-input")]).then(n.bind(null,458))},uNumberBox:function(){return n.e("uview-ui/components/u-number-box/u-number-box").then(n.bind(null,553))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement;e._self._c},i=!1,r=[];o._withStripped=!0},234:function(e,t,n){"use strict";n.r(t);var s=n(235),o=n.n(s);for(var i in s)"default"!==i&&function(e){n.d(t,e,(function(){return s[e]}))}(i);t["default"]=o.a},235:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(){n.e("components/empty").then(function(){return resolve(n(451))}.bind(null,n)).catch(n.oe)},o={components:{empty:s},data:function(){return{list:[{id:1,name:"清爽夏日"},{id:2,name:"牛奶系列"},{id:3,name:"鲜榨果汁"}],show:!1,typeName:"",sort:0,classifyId:"",shopId:"",shopName:""}},onLoad:function(){e.showLoading({title:"数据加载中...",mask:!1}),this.shopId=this.$queue.getData("shopId"),this.shopName=this.$queue.getData("shopUserName"),this.getlist()},methods:{addtype:function(e,t){console.log(e,t),1==e?(this.show=!0,this.typeName="",this.classifyId="",this.sort=0):2==e&&(this.show=!0,this.typeName=t.classifyName,this.classifyId=t.classifyId,t.sort?this.sort=t.sort:this.sort=0)},bindAdd:function(){var t=this;if(this.typeName)if(console.log(this.classifyId),this.classifyId){var n={classifyId:this.classifyId,classifyName:this.typeName,shopId:this.shopId,shopName:this.shopName,sort:this.sort};this.$Request.postJson("/admin/goods/updateClassify",n).then((function(e){0==e.code&&(t.show=!1,t.typeName="",t.classifyId="",t.sort=0,t.getlist())}))}else{var s={classifyName:this.typeName,shopId:this.shopId,shopName:this.shopName,sort:this.sort};this.$Request.postJson("/admin/goods/insertClassify",s).then((function(e){0==e.code&&(t.show=!1,t.typeName="",t.classifyId="",t.sort=0,t.getlist())}))}else e.showToast({title:"请填写商品类型",icon:"none",duration:1e3})},getlist:function(){var t=this,n={shopId:this.shopId};this.$Request.getA("/admin/goods/selectAllClassify",n).then((function(n){e.hideLoading(),0==n.code&&(t.list=n.data)}))},bindupdata:function(t){var n=this;console.log(t),e.showModal({title:"提示",content:"确定要删除当前类型吗？",cancelText:"取消",confirmText:"确定",showCancel:!0,confirmColor:"#f55850",cancelColor:"#39B54A",success:function(s){if(s.confirm){var o={classifyId:t.classifyId};n.$Request.getA("/admin/goods/deleteClassify",o).then((function(t){0==t.code?(e.showToast({title:"删除成功",icon:"none"}),n.getlist()):e.showToast({title:t.msg,icon:"none"})}))}}})}}};t.default=o}).call(this,n(1)["default"])},236:function(e,t,n){"use strict";n.r(t);var s=n(237),o=n.n(s);for(var i in s)"default"!==i&&function(e){n.d(t,e,(function(){return s[e]}))}(i);t["default"]=o.a},237:function(e,t,n){}},[[230,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/my/store/fenlei.js.map