(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a3fff"],{"0526":function(t,a,o){"use strict";o.r(a);var e,s=function(){var t=this,a=t.$createElement,o=t._self._c||a;return o("v-container",[o("v-form",{directives:[{name:"loading",rawName:"v-loading",value:t.tload,expression:"tload"}],staticStyle:{"max-width":"600px",margin:"auto"}},[o("p",[t._v("分销状态")]),o("v-radio-group",{attrs:{mandatory:!1,row:""},model:{value:t.formData.status,callback:function(a){t.$set(t.formData,"status",a)},expression:"formData.status"}},[o("v-radio",{attrs:{label:"开启",value:1}}),o("v-radio",{attrs:{label:"关闭",value:0}})],1),o("p",[t._v("分销类型")]),o("v-radio-group",{attrs:{mandatory:!1,row:""},model:{value:t.formData.type,callback:function(a){t.$set(t.formData,"type",a)},expression:"formData.type"}},[o("v-radio",{attrs:{label:"人人分销",value:1}}),o("v-radio",{attrs:{label:"指定人员分销",value:2}})],1),o("v-text-field",{staticClass:"mt-3",attrs:{label:"一级提成"},model:{value:t.formData.frate,callback:function(a){t.$set(t.formData,"frate",a)},expression:"formData.frate"}}),o("v-text-field",{staticClass:"mt-3",attrs:{label:"二级提成"},model:{value:t.formData.srate,callback:function(a){t.$set(t.formData,"srate",a)},expression:"formData.srate"}}),o("p",[t._v("提成为：每一笔订单占平台收益的百分比")]),o("v-btn",{staticClass:"mt-3 dark",attrs:{loading:t.tload},on:{click:function(a){return t.submit()}}},[t._v("保存")])],1)],1)},n=[],r={props:{load:{type:Boolean,default:!1}},data:function(){return{formData:{status:"",type:"",frate:"",srate:""},pageLoad:this.load,tload:!1}},watch:{load:function(t){t&&(this.pageLoad=t)},pageLoad:function(t){t&&this.getConfig()}},mounted:function(){e=this,e.getConfig()},methods:{getConfig:function(){e.tload=!0,this.$post("config/get",{config_key:"retail"},function(t){e.tload=!1,0==t.errno&&t.data.config_content&&(e.formData=JSON.parse(t.data.config_content))})},submit:function(){this.tload=!0,this.$post("config/update",{config_key:"retail",config_content:JSON.stringify(this.formData)},function(t){e.tload=!1,0===t.errno&&e.$message({showClose:!0,message:t.errmsg,type:"success"})})}}},i=r,l=o("6691"),f=Object(l["a"])(i,s,n,!1,null,null,null);a["default"]=f.exports}}]);
//# sourceMappingURL=chunk-2d0a3fff.f7d5c906.js.map