(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2302531c"],{2178:function(e,t,i){"use strict";i("a4dc")},"3dd2":function(e,t,i){"use strict";i.r(t);var c=i("9ab4"),r=i("1b40"),l=i("b3ad"),a=i("bc3a"),s=i.n(a),o=i("d70b"),n=i("0613");let p=class extends r.e{constructor(){super(...arguments),this.form={circleName:"",create_circle_price:"",circle_profit_pct:0,plugin_open_style:0}}getSetting(){s.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,this.form.plugin_open_style=e.data.plugin_open_style})}setSetting(){s.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,plugin_open_style:this.form.plugin_open_style},{headers:{Token:n.a.getters.token}}).then(e=>{this.getSetting(),this.$message.success("保存成功!")})}created(){this.getSetting()}};p=Object(c.a)([Object(r.a)({components:{MaterialSelect:l.a}})],p);var f=p,m=(i("2178"),i("2877")),_=Object(m.a)(f,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"setting-goods"},[i("el-form",{ref:"goodsSettingsRef",staticClass:"ls-card",attrs:{"label-position":"right",model:e.form,"label-width":"120px",size:"small"}},[i("div",{staticStyle:{"font-size":"14px","font-weight":"500","margin-bottom":"12px"}},[e._v(" 圈子设置 ")]),i("el-form-item",{attrs:{label:"新的圈子名称"}},[i("el-input",{model:{value:e.form.circleName,callback:function(t){e.$set(e.form,"circleName",t)},expression:"form.circleName"}})],1),i("el-form-item",{attrs:{label:"创建圈子价格"}},[i("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),i("el-form-item",{attrs:{label:"圈主收益百分比"}},[i("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),i("el-form-item",{attrs:{label:"圈子列表式布局"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},model:{value:e.form.plugin_open_style,callback:function(t){e.$set(e.form,"plugin_open_style",t)},expression:"form.plugin_open_style"}})],1)],1),i("div",{staticClass:"bg-white ls-fixed-footer"},[i("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.setSetting()}}},[e._v("保存")])],1)])],1)}),[],!1,null,"511ee5a0",null);t.default=_.exports},a4dc:function(e,t,i){}}]);