(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d38e50e"],{"4bb4":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"app-form"},[i("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[i("div",{staticClass:"app-form-group"},[i("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),i("div",{staticClass:"padding-top-lg"},[i("el-form-item",{attrs:{label:"状态",prop:"is_below"}},[i("el-radio-group",{model:{value:t.form.is_below,callback:function(e){t.$set(t.form,"is_below",e)},expression:"form.is_below"}},[i("el-radio",{attrs:{label:1}},[t._v("开启")]),i("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),i("el-alert",{staticClass:"margin-top",attrs:{title:"下二代奖：直推奖金收益乘以所填百分比，平均发放给一代和二代成员（无成员则不发放）。",type:"error"}})],1),1==t.form.is_below?[i("el-form-item",{attrs:{label:"奖励配置",prop:"appoint"}},t._l(t.form.below,(function(e,o){return i("div",{key:o,staticClass:"flex align-center padding-bottom"},[i("el-input",{staticClass:"form-input margin-left",attrs:{type:"text"},model:{value:e.money,callback:function(i){t.$set(e,"money",t._n(i))},expression:"item.money"}},[i("div",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(o+1)+"代奖励")]),i("template",{slot:"append"},[t._v("%")])],2)],1)})),0)]:t._e()],2)]),i("div",{staticClass:"padding-lg flex justify-center"},[i("el-button",{on:{click:t.onBack}},[t._v("返回")]),i("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),i("copyright")],1)},s=[],a=i("7f70"),n=i("8327"),l={name:"Below",components:{},data:function(){return{activeIndex:"1",rules:{},form:{is_below:0,below:[]},levels:[]}},computed:Object(a["a"])({},Object(n["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("below/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.fenxiao;t&&(this.form={is_below:t.is_below,below:t.below})}}},r=l,c=(i("6003"),i("3d7a")),p=Object(c["a"])(r,o,s,!1,null,null,null);e["default"]=p.exports},6003:function(t,e,i){"use strict";i("d441")},d441:function(t,e,i){}}]);