(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b626b7fa"],{2054:function(t,e,s){},"48fa":function(t,e,s){"use strict";s.r(e);var a=s("9ab4"),r=s("1b40"),i=s("daec");let p=class extends r.e{constructor(){super(...arguments),this.form={ios_download_url:"",android_download_url:"",download_title:"",app_id:"",app_secret:"",pop_agreement:0},this.formRules={app_id:[{required:!0,message:"必填项不能为空",trigger:"blur"}],app_secret:[{required:!0,message:"必填项不能为空",trigger:"blur"}],pop_agreement:[{required:!0,message:"请选择",trigger:"blur"}]}}getAppSettings(){Object(i.f)().then(t=>{this.form=t}).catch(()=>{})}putAppSettings(){this.$refs.formRef.validate(t=>{if(!t)return this.$message.error("请完善信息");Object(i.g)(this.form).then(t=>{this.getAppSettings()}).catch(()=>{})})}created(){this.getAppSettings()}};p=Object(a.a)([Object(r.a)({components:{}})],p);var n=p,o=(s("c711"),s("2877")),l=Object(o.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app_store"},[s("el-form",{ref:"formRef",attrs:{rules:t.formRules,model:t.form,"label-width":"140px",size:"small"}},[s("div",{staticClass:"ls-card m-t-16"},[s("div",{staticClass:"card-title"},[t._v("微信开放平台")]),s("div",{staticClass:"card-content m-t-24"},[s("div",{staticClass:"ls-card-alert"},[s("el-alert",{staticClass:"xs",attrs:{title:"该设置应用于微信扫码登录",type:"info",closable:!1,"show-icon":""}})],1),s("el-form-item",{attrs:{label:"AppID",prop:"app_id"}},[s("el-input",{staticClass:"ls-input m-r-10",attrs:{size:"small"},model:{value:t.form.app_id,callback:function(e){t.$set(t.form,"app_id",e)},expression:"form.app_id"}})],1),s("el-form-item",{attrs:{label:"AppSecret",prop:"app_secret"}},[s("el-input",{staticClass:"ls-input m-r-10",attrs:{size:"small"},model:{value:t.form.app_secret,callback:function(e){t.$set(t.form,"app_secret",e)},expression:"form.app_secret"}})],1)],1)])]),s("div",{staticClass:"bg-white ls-fixed-footer"},[s("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[s("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.putAppSettings()}}},[t._v("保存")])],1)])],1)}),[],!1,null,"d736aa42",null);e.default=l.exports},c711:function(t,e,s){"use strict";s("2054")},daec:function(t,e,s){"use strict";s.d(e,"a",(function(){return r})),s.d(e,"b",(function(){return i})),s.d(e,"e",(function(){return p})),s.d(e,"d",(function(){return n})),s.d(e,"c",(function(){return o})),s.d(e,"f",(function(){return l})),s.d(e,"g",(function(){return c}));var a=s("f175");const r=()=>a.a.get("/settings.app.app_setting/getConfig"),i=t=>a.a.post("/settings.app.app_setting/setConfig",t),p=t=>a.a.get("/settings.app.app_setting/getUpgradeLists",{params:t}),n=t=>a.a.get("/settings.app.app_setting/upgradeDel",{params:t}),o=t=>a.a.post("/settings.app.app_setting/upgradeAdd",t),l=()=>a.a.get("/settings.web_app_setting/getConfig"),c=t=>a.a.post("/settings.web_app_setting/setConfig",t)}}]);