(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c8f78"],{"56ab":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-container"},[t.config.id?s("div",{staticClass:"app-form"},[s("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[s("div",{staticClass:"app-form-group"},[s("div",{staticClass:"app-form-ti"},[t._v("基本设置")]),s("div",{staticClass:"padding-top-lg"},[s("el-form-item",{attrs:{label:"状态",prop:"status"}},[s("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[s("el-radio",{attrs:{label:1}},[t._v("开启")]),s("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),s("el-form-item",{attrs:{label:"积分说明",prop:"type"}},[s("editor",{attrs:{height:"500px"},model:{value:t.form.description,callback:function(e){t.$set(t.form,"description",e)},expression:"form.description"}})],1)],1)]),s("div",{staticClass:"app-form-group"},[s("div",{staticClass:"app-form-ti"},[t._v("分享设置")]),s("div",{staticClass:"padding-top-lg"},[s("el-form-item",{attrs:{label:"分享标题",prop:"share_title"}},[s("el-input",{attrs:{type:"text"},model:{value:t.form.share_title,callback:function(e){t.$set(t.form,"share_title",e)},expression:"form.share_title"}})],1),s("el-form-item",{attrs:{label:"分享图片",prop:"share_img"}},[s("uploadImage",{attrs:{modal:!0},model:{value:t.form.share_img,callback:function(e){t.$set(t.form,"share_img",e)},expression:"form.share_img"}})],1)],1)]),s("div",{staticClass:"padding-top-lg flex justify-center"},[s("el-button",{on:{click:t.onBack}},[t._v("返回")]),s("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1):t._e(),s("copyright")],1)},a=[],o=s("7f70"),r=s("8327"),l=s("c7f0"),n=s("095c"),c={name:"Scoreshop",components:{uploadImage:l["a"],editor:n["a"]},data:function(){return{activeIndex:"1",rules:{},form:{}}},computed:Object(o["a"])({},Object(r["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("scoreshop/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&&t.scoreshop&&(this.form=this.$util.restJson(t.scoreshop))}}},p=c,f=s("3d7a"),m=Object(f["a"])(p,i,a,!1,null,null,null);e["default"]=m.exports}}]);