(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5946d754"],{"1d60":function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-content summary-wrap"},[o("el-form",{ref:"form",staticClass:"demo-form",attrs:{model:t.form,rules:t.rules,"label-width":"10px"}},[o("el-form-item",{attrs:{label:"",prop:"desc"}},[o("cl-editor-quill",{on:{load:t.editor},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),o("el-form-item",[o("div",{staticClass:"app-color-3"},[o("i",{staticClass:"el-icon-warning",staticStyle:{"margin-right":"4px"}}),o("span",[t._v("商品详情的后半部分内容，可以填写一些养护知识和友情提示等。")])])]),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("form")}}},[t._v("保存")])],1)],1)],1)},n=[],i={name:"goods-summary",data:function(){return{form:{desc:""},rules:{},data:""}},mounted:function(){this.init()},methods:{init:function(){this._getData()},_getData:function(){var t=this;this.$service.single.getGoodsIntro().then((function(e){t.form.desc=e.introduce}))},_updateFn:function(){var t=this;this.$service.single.editGoodsIntro({introduce:this.form.desc}).then((function(e){t.$message.success("保存成功！")}))},editor:function(){},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return console.log("error submit!!"),!1;console.log(e.form),e._updateFn()}))},resetForm:function(t){this.$refs[t].resetFields()}}},r=i,c=(o("21db"),o("5d22")),a=Object(c["a"])(r,s,n,!1,null,null,null);e["default"]=a.exports},"21db":function(t,e,o){"use strict";o("34e9")},"34e9":function(t,e,o){}}]);