(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2afdedde"],{"142d":function(t,e,s){"use strict";s.r(e);var a=s("9ab4"),r=s("1b40"),i=s("daec");let l=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.a)().then(t=>{this.form=t}).catch(()=>{})}putAppSettings(){this.$refs.formRef.validate(t=>{if(!t)return this.$message.error("请完善信息");Object(i.b)(this.form).then(t=>{this.getAppSettings()}).catch(()=>{})})}created(){this.getAppSettings()}};l=Object(a.a)([Object(r.a)({components:{}})],l);var o=l,n=(s("586d"),s("2877")),p=Object(n.a)(o,(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("APP下载")]),s("div",{staticClass:"card-content m-t-24"},[s("div",{staticClass:"ls-card-alert"},[s("el-alert",{staticClass:"xs",attrs:{title:"苹果APP可通过上架APP至苹果App Store获取下载链接；安卓APP可通过上架APP至应用宝获取下载链接；下载链接也可使用蒲公英等分发渠道的链接。",type:"info",closable:!1,"show-icon":""}})],1),s("el-form-item",{attrs:{label:"苹果APP下载链接"}},[s("el-input",{staticClass:"ls-input m-r-10",attrs:{size:"small"},model:{value:t.form.ios_download_url,callback:function(e){t.$set(t.form,"ios_download_url",e)},expression:"form.ios_download_url"}})],1),s("el-form-item",{attrs:{label:"安卓APP下载链接"}},[s("el-input",{staticClass:"ls-input m-r-10",attrs:{size:"small"},model:{value:t.form.android_download_url,callback:function(e){t.$set(t.form,"android_download_url",e)},expression:"form.android_download_url"}})],1),s("el-form-item",{attrs:{label:"APP下载引导文案"}},[s("el-input",{staticClass:"ls-input m-r-10",attrs:{size:"small"},model:{value:t.form.download_title,callback:function(e){t.$set(t.form,"download_title",e)},expression:"form.download_title"}}),s("div",{staticClass:"muted xs m-r-16"},[t._v("分享APP页面打开后，H5页面顶部会显示APP下载引导文案")])],1),s("el-form-item",{attrs:{label:"协议弹窗",prop:"pop_agreement"}},[s("div",{staticClass:"flex"},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.form.pop_agreement,callback:function(e){t.$set(t.form,"pop_agreement",e)},expression:"form.pop_agreement"}}),s("span",{staticClass:"m-l-16"},[t._v(" "+t._s(t.form.pop_agreement?"开启":"关闭")+" ")])],1),s("div",{staticClass:"muted xs m-r-16"},[t._v("APP启动后强制弹窗同意服务协议与隐私政策")])])],1)]),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:"APP需要使用微信授权登录、微信支付等微信生态能力时，需要设置关联微信开发平台；请填写APP在微信开发平台申请的应用ID等信息。",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,"aa9b7948",null);e.default=p.exports},"586d":function(t,e,s){"use strict";s("d5cd")},d5cd:function(t,e,s){},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 l})),s.d(e,"d",(function(){return o})),s.d(e,"c",(function(){return n})),s.d(e,"f",(function(){return p})),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),l=t=>a.a.get("/settings.app.app_setting/getUpgradeLists",{params:t}),o=t=>a.a.get("/settings.app.app_setting/upgradeDel",{params:t}),n=t=>a.a.post("/settings.app.app_setting/upgradeAdd",t),p=()=>a.a.get("/settings.web_app_setting/getConfig"),c=t=>a.a.post("/settings.web_app_setting/setConfig",t)}}]);