(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-9f27a69a"],{"09de":function(e,t,c){},"3dd2":function(e,t,c){"use strict";c.r(t);var i=c("9ab4"),r=c("1b40"),a=c("b3ad"),s=c("bc3a"),l=c.n(s),o=c("d70b"),n=c("0613");let f=class extends r.e{constructor(){super(...arguments),this.form={circleName:"",create_circle_price:"",circle_profit_pct:0}}getSetting(){l.a.get(o.a.baseURL+"/adminapi/settings.circle.circle/getConfig",{params:{},headers:{Token:n.a.getters.token}}).then(e=>{this.form.circleName=e.data.circle_name,this.form.create_circle_price=e.data.create_circle_price,this.form.circle_profit_pct=e.data.circle_profit_pct})}setSetting(){l.a.post(o.a.baseURL+"/adminapi/settings.circle.circle/setConfig",{circle_name:this.form.circleName,create_circle_price:this.form.create_circle_price,circle_profit_pct:this.form.circle_profit_pct},{headers:{Token:n.a.getters.token}}).then(e=>{this.getSetting(),this.$message.success("保存成功!")})}created(){this.getSetting()}};f=Object(i.a)([Object(r.a)({components:{MaterialSelect:a.a}})],f);var p=f,m=(c("8449"),c("2877")),_=Object(m.a)(p,(function(){var e=this,t=e.$createElement,c=e._self._c||t;return c("div",{staticClass:"setting-goods"},[c("el-form",{ref:"goodsSettingsRef",staticClass:"ls-card",attrs:{"label-position":"right",model:e.form,"label-width":"120px",size:"small"}},[c("div",{staticStyle:{"font-size":"14px","font-weight":"500","margin-bottom":"12px"}},[e._v(" 圈子设置 ")]),c("el-form-item",{attrs:{label:"新的圈子名称"}},[c("el-input",{model:{value:e.form.circleName,callback:function(t){e.$set(e.form,"circleName",t)},expression:"form.circleName"}})],1),c("el-form-item",{attrs:{label:"创建圈子价格"}},[c("el-input",{model:{value:e.form.create_circle_price,callback:function(t){e.$set(e.form,"create_circle_price",t)},expression:"form.create_circle_price"}})],1),c("el-form-item",{attrs:{label:"圈主收益百分比"}},[c("el-input",{model:{value:e.form.circle_profit_pct,callback:function(t){e.$set(e.form,"circle_profit_pct",t)},expression:"form.circle_profit_pct"}})],1)],1),c("div",{staticClass:"bg-white ls-fixed-footer"},[c("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[c("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.setSetting()}}},[e._v("保存")])],1)])],1)}),[],!1,null,"5bdecb1e",null);t.default=_.exports},8449:function(e,t,c){"use strict";c("09de")}}]);