(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/postCate"],{"3e7d":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("9c57");o(n("3240"));var i=o(n("da32"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"58d5":function(t,e,n){"use strict";n.r(e);var o=n("994a"),i=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);e["default"]=i.a},"7fce":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},i=[]},"994a":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={components:{FormLayout:function(){n.e("components/form/FormLayout").then(function(){return resolve(n("2047"))}.bind(null,n)).catch(n.oe)},FormItem:function(){n.e("components/form/FormItem").then(function(){return resolve(n("45dd"))}.bind(null,n)).catch(n.oe)},RedButton:function(){n.e("components/form/RedButton").then(function(){return resolve(n("fe0b"))}.bind(null,n)).catch(n.oe)},FormSelectItem:function(){n.e("components/form/FormSelectItem").then(function(){return resolve(n("d656"))}.bind(null,n)).catch(n.oe)}},data:function(){return{title:"添加分类",form:{title:"",status:1,thumb:"",sort:""},categories:[],radioList1:[{name:"显示",value:1,disabled:!1},{name:"隐藏",value:0,disabled:!1}]}},onLoad:function(e){0!=e.id&&(this.title="编辑分类",t.setNavigationBarTitle({title:"编辑分类"}),this.form.id=e.id,this.init())},methods:{groupChange:function(t){this.form.status=t},uploadImg:function(){var t=this;this.$util.uploadImage((function(e){t.form.thumb=e.fullurl}))},init:function(){var t=this,e={id:this.form.id};this.$util.get("merchant_admin/category/detail",e).then((function(e){1==e.code?t.form=e.data.info:t.$util.toast(e.message)}))},submit:function(){var t=this;this.isSubmit||(this.isSubmit=!0,this.$util.post("merchant_admin/category/post",this.form).then((function(e){1==e.code?t.$util.toast(e.message,1500,(function(){t.goBack()})):t.$util.toast(e.message),t.isSubmit=!1})).catch((function(e){t.isSubmit=!1})))},goBack:function(){var e=getCurrentPages();1==e.length?t.redirectTo({url:"/pages/goods/category"}):t.navigateBack()},previewImg:function(e,n){-1!=n?t.previewImage({urls:e,current:n}):t.previewImage({urls:[e],current:0})}}};e.default=o}).call(this,n("df3c")["default"])},da32:function(t,e,n){"use strict";n.r(e);var o=n("7fce"),i=n("58d5");for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);n("ecd5");var a=n("828b"),r=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"524937a4",null,!1,o["a"],void 0);e["default"]=r.exports},e588:function(t,e,n){},ecd5:function(t,e,n){"use strict";var o=n("e588"),i=n.n(o);i.a}},[["3e7d","common/runtime","common/vendor"]]]);