(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f7a1a02"],{1483:function(e,t,a){"use strict";a.r(t);var i=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":"保存配置"},on:{submit:e.handleSave},model:{value:e.form,callback:function(t){e.form=t},expression:"form"}})],1)])])},n=[],o=a("7f70"),r=(a("6994"),a("8849")),s={name:"SiteAlipay",components:{FormGenerator:r["a"]},data:function(){return{form:{zfb_appid:"",zfb_privateKey:"",zfb_publickey_cert:""},formConfig:[{type:"input",label:"支付宝应用ID",prop:"zfb_appid",placeholder:"请输入支付宝应用ID",width:"600px"},{type:"textarea",label:"支付宝应用私钥",prop:"zfb_privateKey",placeholder:"请输入支付宝应用私钥",rows:5,width:"600px"},{type:"upload",label:"支付宝应用公钥证书",prop:"zfb_publickey_cert",upload:!0,accept:".pem,.crt,.key,.txt,.pfx",fileTypeName:"TXT",width:"600px"}],loading:!1}},created:function(){this.getData()},methods:{getData:function(){var e=this;this.loading=!0,this.api.get("site/getInfo",{type:6}).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:6})).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("请完善表单信息")}))}}},c=s,f=(a("8e86"),a("3d7a")),p=Object(f["a"])(c,i,n,!1,null,"14e797d6",null);t["default"]=p.exports},"8e86":function(e,t,a){"use strict";a("abfd")},abfd:function(e,t,a){}}]);