(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-073ae6ba"],{5383:function(t,e,s){},"6b2d":function(t,e,s){"use strict";var i=s("0613"),n=s("bc3a"),a=s.n(n),r=s("d70b"),o=s("afbc"),c=s("5c96"),p=s("6ddb");const l={baseURL:r.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},u=(Object(p.g)(()=>(i.a.commit("setToken",""),i.a.commit("setUserInfo",{}),i.a.commit("setPermission",{}),o.b.push("/account/login"),Promise.reject())),a.a.create(l));u.interceptors.request.use(t=>{const e=i.a.getters.token;return e&&(t.headers.token=e),t.headers.version=r.a.version,t},t=>Promise.reject(t)),u.interceptors.response.use(t=>t.data,t=>(Object(c.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=u},"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")),r=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=r.exports},"82bb":function(t,e,s){"use strict";s.d(e,"j",(function(){return a})),s.d(e,"i",(function(){return r})),s.d(e,"d",(function(){return o})),s.d(e,"c",(function(){return c})),s.d(e,"b",(function(){return p})),s.d(e,"a",(function(){return l})),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}));var i=s("f175"),n=s("6b2d");const a=()=>i.a.get("/settings.shop.shop_setting/getShopInfo"),r=t=>i.a.post("/settings.shop.shop_setting/setShopInfo",t),o=()=>i.a.get("/settings.shop.shop_setting/getRecordInfo"),c=t=>i.a.post("/settings.shop.shop_setting/setRecordInfo",t),p=()=>i.a.get("/settings.shop.shop_setting/getPolicyAgreement"),l=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})},"946e":function(t,e,s){"use strict";s("5383")}}]);