(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d51f9db4"],{"52bd":function(t,i,a){},affa:function(t,i,a){"use strict";a.r(i);var e=function(){var t=this,i=t.$createElement,a=t._self._c||i;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:"is_jicha"}},[a("el-radio-group",{model:{value:t.form.is_jicha,callback:function(i){t.$set(t.form,"is_jicha",i)},expression:"form.is_jicha"}},[a("el-radio",{attrs:{label:1}},[t._v("开启")]),a("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),a("el-alert",{attrs:{title:"开启级差奖后，同一线上的分销用户，根据分销等级拿等级之间收益差额的奖励，此处无需设置参数只需要打开，具体比例请到分销等级处设置。举例：若分销等级有青铜和白银两个等级，一级分销（也就是直推）收入比例分别是20%和30%，假设A推荐B，B推荐C，C推荐D，其中A为白银，B和C为青铜，D为普通用户此时D下单100元，C可拿直推佣金20%*100=20元，B和C同等级，所以不拿级差，A比C高一个等级，A可拿级差佣金10%*100=10元。其它情况以此类推。",type:"error"}})],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=[],n=a("7f70"),o=a("8327"),c={name:"Jicha",components:{},data:function(){return{activeIndex:"1",rules:{},form:{is_jicha:0}}},computed:Object(n["a"])({},Object(o["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},handleSelect:function(t,i){this.activeIndex=t},submit:function(){var t=this;this.$refs["dataForm"].validate((function(i){i&&t.api.post("jicha/config/set",t.form).then((function(i){1==i.code?(t.$util.success(i.message),t.$store.dispatch("settings/getSetting")):t.$util.error(i.message)}))}))},init:function(){var t=this.config;if(t&&t.fenxiao){var i=t.fenxiao;this.form={is_jicha:i.is_jicha}}}}},r=c,l=(a("b55d"),a("3d7a")),f=Object(l["a"])(r,e,s,!1,null,null,null);i["default"]=f.exports},b55d:function(t,i,a){"use strict";a("52bd")}}]);