(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f9c99e9"],{"68f8":function(e,t,a){},cbe2:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"app-form"},[a("div",{staticClass:"app-form-group"},[a("div",{staticClass:"app-form-ti"},[e._v("微信公众号配置")]),a("form-generator",{ref:"formGenerator",attrs:{"form-config":e.formConfig,"submit-text":"保存配置",labelWidth:"300px"},on:{submit:e.handleSave},model:{value:e.form,callback:function(t){e.form=t},expression:"form"}})],1)])])},i=[],o=a("7f70"),s=(a("6994"),a("8849"),{name:"SiteWechatGZH",components:{},data:function(){return{form:{AppId:"",AppSecret:""},formConfig:[{type:"input",label:"公众号AppID",prop:"AppId",placeholder:"请输入公众号AppID",width:"600px"},{type:"input",label:"公众号AppSecret",prop:"AppSecret",placeholder:"请输入公众号AppSecret",width:"600px"}],loading:!1}},created:function(){this.getData()},methods:{getData:function(){var e=this;this.loading=!0,this.api.get("site/getInfo",{type:3}).then((function(t){1==t.code&&(e.form=Object.assign(e.form,t.data))})).finally((function(){e.loading=!1}))},handleSave:function(){var e=this;this.$refs.formGenerator.validate().then((function(){e.loading=!0,e.api.get("site/submit",Object(o["a"])(Object(o["a"])({},e.form),{},{type:3})).then((function(t){1==t.code?(e.$message.success("保存成功"),e.getData(),e.$store.dispatch("settings/getSetting")):e.$message.error(t.message||"保存失败")})).finally((function(){e.loading=!1}))})).catch((function(){e.$message.warning("请完善表单信息")}))}}}),r=s,c=(a("f174"),a("3d7a")),p=Object(c["a"])(r,n,i,!1,null,"fea60fde",null);t["default"]=p.exports},f174:function(e,t,a){"use strict";a("68f8")}}]);