(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20d53957"],{"32aa":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;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 margin-top"},[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(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-radio",{attrs:{label:1}},[t._v("开启")]),a("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),a("el-alert",{attrs:{title:"积分结算：开启后，收益结算时会以结算的收益的百分比另外结算到用户积分，原先的用户收益不变,照常结算。",type:"error"}})],1),1==t.form.status?a("el-form-item",{attrs:{label:"积分比例",prop:"reward_rate"}},[a("el-input",{staticClass:"form-input",model:{value:t.form.reward_rate,callback:function(e){t.$set(t.form,"reward_rate",e)},expression:"form.reward_rate"}},[a("div",{attrs:{slot:"append"},slot:"append"},[t._v("%")])])],1):t._e()],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"),o=a("8327"),n={name:"scorereward",components:{},data:function(){return{activeIndex:"1",rules:{},form:{status:0}}},computed:Object(i["a"])({},Object(o["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(e){e&&t.api.post("scorereward/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;if(t.scorereward){var e=this.$util.restJson(t.scorereward);this.form=e}}}},c=n,l=(a("5cce"),a("3d7a")),u=Object(l["a"])(c,r,s,!1,null,null,null);e["default"]=u.exports},"5cce":function(t,e,a){"use strict";a("b47b")},b47b:function(t,e,a){}}]);