(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3939b4be"],{"509a":function(t,o,a){},"8ae9":function(t,o,a){"use strict";a.r(o);var e=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-form margin-top"},[a("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[a("div",{staticClass:"app-form-group"},[a("div",{staticClass:"app-form-ti"},[t._v("基础设置")]),a("div",{staticClass:"padding-top-lg"},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(o){t.$set(t.form,"status",o)},expression:"form.status"}},[a("el-radio",{attrs:{label:1}},[t._v("开启")]),a("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),a("el-form-item",{attrs:{label:"拼团背景",prop:"bg"}},[a("uploadImage",{attrs:{modal:!0},model:{value:t.form.bg,callback:function(o){t.$set(t.form,"bg",o)},expression:"form.bg"}})],1),a("el-form-item",{attrs:{label:"背景颜色",prop:"bg_color"}},[a("el-input",{staticClass:"form-input",attrs:{type:"color"},model:{value:t.form.bg_color[0],callback:function(o){t.$set(t.form.bg_color,0,o)},expression:"form.bg_color[0]"}}),a("el-input",{staticClass:"form-input",attrs:{type:"color"},model:{value:t.form.bg_color[1],callback:function(o){t.$set(t.form.bg_color,1,o)},expression:"form.bg_color[1]"}})],1),a("el-form-item",{attrs:{label:"拼团规则",prop:"bg_color"}},[a("editor",{attrs:{height:"600px"},model:{value:t.form.pintuan_desc,callback:function(o){t.$set(t.form,"pintuan_desc",o)},expression:"form.pintuan_desc"}})],1)],1)]),a("div",{staticClass:"padding-lg flex justify-center"},[a("el-button",{on:{click:t.onBack}},[t._v("返回")]),a("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),a("copyright")],1)},s=[],i=a("7f70"),r=a("8327"),n=a("095c"),l=a("c7f0"),c={name:"ShortVideo",components:{uploadImage:l["a"],editor:n["a"]},data:function(){return{activeIndex:"1",rules:{},form:{status:1,bg:"",bg_color:[],pintuan_desc:""}}},computed:Object(i["a"])({},Object(r["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},submit:function(){var t=this;this.$refs["dataForm"].validate((function(o){o&&t.api.post("pintuan/config/set",t.form).then((function(o){1==o.code?(t.$util.success(o.message),t.$store.dispatch("settings/getSetting")):t.$util.error(o.message)}))}))},init:function(){var t=this.config;t.pintuan&&(this.form=this.$util.restJson(t.pintuan))}}},u=c,p=(a("9c29"),a("3d7a")),f=Object(p["a"])(u,e,s,!1,null,null,null);o["default"]=f.exports},"9c29":function(t,o,a){"use strict";a("509a")}}]);