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