(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e9b03"],{"8f32":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[o("div",{staticClass:"app-form margin-top"},[o("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[o("div",{staticClass:"app-form-group"},[o("div",{staticClass:"app-form-ti"},[t._v("基础设置")]),o("div",{staticClass:"padding-top-lg"},[o("el-form-item",{attrs:{label:"状态",prop:"status"}},[o("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[o("el-radio",{attrs:{label:1}},[t._v("开启")]),o("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),o("el-form-item",{attrs:{label:"显示发布者",prop:"show_publisher"}},[o("el-radio-group",{model:{value:t.form.show_publisher,callback:function(e){t.$set(t.form,"show_publisher",e)},expression:"form.show_publisher"}},[o("el-radio",{attrs:{label:1}},[t._v("是")]),o("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1),o("el-form-item",{attrs:{label:"发布者名称",prop:"publisher"}},[o("el-input",{staticClass:"form-input",attrs:{type:"text"},model:{value:t.form.publisher,callback:function(e){t.$set(t.form,"publisher",e)},expression:"form.publisher"}})],1),o("el-form-item",{attrs:{label:"发布者头像",prop:"publisher_avatar"}},[o("uploadImage",{attrs:{modal:!0},model:{value:t.form.publisher_avatar,callback:function(e){t.$set(t.form,"publisher_avatar",e)},expression:"form.publisher_avatar"}})],1),o("el-form-item",{attrs:{label:"商品显示",prop:"goods_show"}},[o("el-radio-group",{model:{value:t.form.goods_show,callback:function(e){t.$set(t.form,"goods_show",e)},expression:"form.goods_show"}},[o("el-radio",{attrs:{label:1}},[t._v("开启")]),o("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),o("el-form-item",{attrs:{label:"评论审核",prop:"comment_verify"}},[o("el-radio-group",{model:{value:t.form.comment_verify,callback:function(e){t.$set(t.form,"comment_verify",e)},expression:"form.comment_verify"}},[o("el-radio",{attrs:{label:1}},[t._v("开启")]),o("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1)]),o("div",{staticClass:"padding-lg flex justify-center"},[o("el-button",{on:{click:t.onBack}},[t._v("返回")]),o("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),o("copyright")],1)},r=[],s=o("7f70"),i=o("8327"),l=o("c7f0"),n={name:"ShortVideo",components:{uploadImage:l["a"]},data:function(){return{activeIndex:"1",rules:{},form:{status:1,show_publisher:1,page_bgcolor:"#000",page_bg:"",publisher:"",publisher_avatar:"",goods_show:1,comment_verify:0}}},computed:Object(s["a"])({},Object(i["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},handleSelect:function(t,e){this.activeIndex=t},submit:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&t.api.post("short_video/config/set",t.form).then((function(e){1==e.code?(t.$util.success(e.message),t.$store.dispatch("settings/getSetting")):t.$util.error(e.message)}))}))},init:function(){var t=this.config;t.short_video&&(this.form=this.$util.restJson(t.short_video))}}},u=n,c=o("3d7a"),m=Object(c["a"])(u,a,r,!1,null,null,null);e["default"]=m.exports}}]);