(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5af818e5"],{5383:function(t,e,s){},"70bc":function(t,e,s){"use strict";s.r(e);var i=s("82bb"),n={data:()=>({form:{isOpenQun:!1,isOpenTalk:!1,isOpenCircleTalk:!1,group_profit_pct:1}}),methods:{setCircleType(t){},setChatType(t){},setQunType(t){},setupQun(){},getQunStatus(){Object(i.f)().then(t=>{this.form.isOpenQun=t.data.group_status,this.form.isOpenTalk=t.data.private_status,this.form.isOpenCircleTalk=t.data.circle_status,this.form.group_profit_pct=t.data.group_profit_pct})},edit(){Object(i.e)({private_status:this.form.isOpenTalk,group_status:this.form.isOpenQun,circle_status:this.form.isOpenCircleTalk,group_profit_pct:this.form.group_profit_pct}).then(()=>{this.$message.success("保存成功")}).catch(()=>{this.$message.error("保存失败")}).finally(()=>{loading.close()})}},mounted(){this.getQunStatus()}},a=(s("946e"),s("2877")),o=Object(a.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"ls-card"},[s("div",{staticClass:"card-title"},[t._v(" 聊天设置 ")]),s("div",{staticClass:"card-content m-t-24"},[s("div",{staticStyle:{margin:"10px 0"}},[s("p",[t._v("是否开启群聊天")]),s("el-radio-group",{on:{change:t.setQunType},model:{value:t.form.isOpenQun,callback:function(e){t.$set(t.form,"isOpenQun",e)},expression:"form.isOpenQun"}},[s("el-radio",{staticStyle:{margin:"10px"},attrs:{label:1}},[t._v("开启")]),s("el-radio",{staticStyle:{margin:"10px"},attrs:{label:0}},[t._v("关闭")])],1)],1),s("div",{staticStyle:{margin:"10px 0"}},[s("p",[t._v("是否开启私人聊天")]),s("el-radio-group",{on:{change:t.setChatType},model:{value:t.form.isOpenTalk,callback:function(e){t.$set(t.form,"isOpenTalk",e)},expression:"form.isOpenTalk"}},[s("el-radio",{staticStyle:{margin:"10px"},attrs:{label:1}},[t._v("开启")]),s("el-radio",{staticStyle:{margin:"10px"},attrs:{label:0}},[t._v("关闭")])],1)],1),s("div",{staticStyle:{margin:"10px 0"}},[s("p",[t._v("是否开启圈子群聊")]),s("el-radio-group",{on:{change:t.setCircleType},model:{value:t.form.isOpenCircleTalk,callback:function(e){t.$set(t.form,"isOpenCircleTalk",e)},expression:"form.isOpenCircleTalk"}},[s("el-radio",{staticStyle:{margin:"10px"},attrs:{label:1}},[t._v("开启")]),s("el-radio",{staticStyle:{margin:"10px"},attrs:{label:0}},[t._v("关闭")])],1)],1),s("div",{staticStyle:{margin:"10px 0"}},[s("p",[t._v("群主收益百分比")]),s("el-input",{staticStyle:{width:"300px"},model:{value:t.form.group_profit_pct,callback:function(e){t.$set(t.form,"group_profit_pct",e)},expression:"form.group_profit_pct"}})],1)]),s("div",{staticClass:"bg-white ls-fixed-footer"},[s("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[s("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")]),s("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.edit}},[t._v("保存")])],1)])])}),[],!1,null,"dd41aada",null);e.default=o.exports},"82bb":function(t,e,s){"use strict";s.d(e,"j",(function(){return a})),s.d(e,"i",(function(){return o})),s.d(e,"d",(function(){return r})),s.d(e,"c",(function(){return p})),s.d(e,"b",(function(){return l})),s.d(e,"a",(function(){return c})),s.d(e,"e",(function(){return u})),s.d(e,"f",(function(){return g})),s.d(e,"g",(function(){return f})),s.d(e,"h",(function(){return d})),s.d(e,"k",(function(){return m})),s.d(e,"l",(function(){return h}));var i=s("f175"),n=s("6b2d");const a=()=>i.a.get("/settings.shop.shop_setting/getShopInfo"),o=t=>i.a.post("/settings.shop.shop_setting/setShopInfo",t),r=()=>i.a.get("/settings.shop.shop_setting/getRecordInfo"),p=t=>i.a.post("/settings.shop.shop_setting/setRecordInfo",t),l=()=>i.a.get("/settings.shop.shop_setting/getPolicyAgreement"),c=t=>i.a.post("/settings.shop.shop_setting/setPolicyAgreement",t),u=t=>n.a.post("/settings.shop.chat_setting/setChatInfo",t),g=t=>n.a.get("/settings.shop.chat_setting/getChatInfo",{params:t}),f=t=>n.a.post("/settings.index.login/setConfig",t),d=t=>n.a.get("/settings.index.login/getConfig",{params:t}),m=t=>n.a.post("/settings.VestSetting/setConfig",t),h=t=>n.a.get("/settings.VestSetting/getConfig",{params:t})},"946e":function(t,e,s){"use strict";s("5383")}}]);