(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-827a5888"],{"21ed":function(t,s,e){"use strict";e("238a")},"238a":function(t,s,e){},"43a6":function(t,s,e){"use strict";e.r(s);var i=e("9ab4"),n=e("1b40"),r=e("82bb"),o=e("b3ad");let a=class extends n.e{constructor(){super(...arguments),this.form={copyright:"",record_number:"",record_system_link:"",filing_number:"",filing_system_link:""},this.rules={record_system_link:[{pattern:/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/,message:"请输入合法链接",trigger:"blur"}]}}initFormData(){Object(r.d)().then(t=>{for(const s in t)this.form.hasOwnProperty(s)&&(this.form[s]=t[s])}).catch(()=>{this.$message.error("数据加载失败，请刷新重载")})}onResetFrom(){this.initFormData(),this.$message.info("已重置数据")}onSubmitFrom(t){this.$refs[t].validate(t=>{if(!t)return;const s=this.$loading({text:"保存中"}),e={...this.form};Object(r.c)({...e}).then(()=>{this.$store.dispatch("getConfig"),this.$message.success("保存成功")}).catch(()=>{this.$message.error("保存失败")}).finally(()=>{s.close()})})}created(){this.initFormData()}};a=Object(i.a)([Object(n.a)({components:{materialSelect:o.a}})],a);var l=a,c=(e("21ed"),e("2877")),m=Object(c.a)(l,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-record"},[e("div",{staticClass:"ls-card"},[e("el-alert",{attrs:{title:"温馨提示：应工信部的要求，请务必填写公安备案号和网站备案号，保存的备案信息，将展示在后台登录页面。",type:"info",closable:!1,"show-icon":""}})],1),e("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"120px",size:"small"}},[e("div",{staticClass:"ls-card m-t-16"},[e("div",{staticClass:"card-title"},[t._v("备案信息")]),e("div",{staticClass:"card-content m-t-24"},[e("el-form-item",{attrs:{label:"版权信息"}},[e("el-input",{staticClass:"ls-input",attrs:{"show-word-limit":""},model:{value:t.form.copyright,callback:function(s){t.$set(t.form,"copyright",s)},expression:"form.copyright"}}),e("div",{staticClass:"muted xs"},[t._v(" 例如填写，Copyright © 2019-2020 公司名称 ")])],1),e("el-form-item",{attrs:{label:"备案号"}},[e("el-input",{staticClass:"ls-input",attrs:{"show-word-limit":""},model:{value:t.form.record_number,callback:function(s){t.$set(t.form,"record_number",s)},expression:"form.record_number"}})],1),e("el-form-item",{attrs:{label:"备案号链接",prop:"record_system_link"}},[e("el-input",{staticClass:"ls-input",attrs:{"show-word-limit":""},model:{value:t.form.record_system_link,callback:function(s){t.$set(t.form,"record_system_link",s)},expression:"form.record_system_link"}}),e("div",{staticClass:"muted xs"},[t._v(" 例如填写域名信息备案系统链接，http://beian.miit.gov.cn ")])],1),e("el-form-item",{attrs:{label:"公安备案号",prop:"filing_number"}},[e("el-input",{staticClass:"ls-input",attrs:{"show-word-limit":""},model:{value:t.form.filing_number,callback:function(s){t.$set(t.form,"filing_number",s)},expression:"form.filing_number"}})],1),e("el-form-item",{attrs:{label:"公安备案号链接",prop:"filing_system_link"}},[e("el-input",{staticClass:"ls-input",attrs:{"show-word-limit":""},model:{value:t.form.filing_system_link,callback:function(s){t.$set(t.form,"filing_system_link",s)},expression:"form.filing_system_link"}})],1)],1)])]),e("div",{staticClass:"bg-white ls-fixed-footer"},[e("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.onSubmitFrom("form")}}},[t._v("保存")])],1)])],1)}),[],!1,null,"c7bf421a",null);s.default=m.exports},"82bb":function(t,s,e){"use strict";e.d(s,"j",(function(){return r})),e.d(s,"i",(function(){return o})),e.d(s,"d",(function(){return a})),e.d(s,"c",(function(){return l})),e.d(s,"b",(function(){return c})),e.d(s,"a",(function(){return m})),e.d(s,"e",(function(){return f})),e.d(s,"f",(function(){return u})),e.d(s,"g",(function(){return d})),e.d(s,"h",(function(){return p}));var i=e("f175"),n=e("6b2d");const r=()=>i.a.get("/settings.shop.shop_setting/getShopInfo"),o=t=>i.a.post("/settings.shop.shop_setting/setShopInfo",t),a=()=>i.a.get("/settings.shop.shop_setting/getRecordInfo"),l=t=>i.a.post("/settings.shop.shop_setting/setRecordInfo",t),c=()=>i.a.get("/settings.shop.shop_setting/getPolicyAgreement"),m=t=>i.a.post("/settings.shop.shop_setting/setPolicyAgreement",t),f=t=>n.a.post("/settings.shop.chat_setting/setChatInfo",t),u=t=>n.a.get("/settings.shop.chat_setting/getChatInfo",{params:t}),d=t=>n.a.post("/settings.index.login/setConfig",t),p=t=>n.a.get("/settings.index.login/getConfig",{params:t})}}]);