(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1ff08516"],{"17a3":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return r}));var s=a("f175");const i=()=>s.a.get("/wechat.mini_program_setting/getConfig"),r=t=>s.a.post("/wechat.mini_program_setting/setConfig",t)},"9fba":function(t,e,a){"use strict";a.r(e);var s=a("17a3"),i=a("b3ad"),r=(a("b6c4"),{data:()=>({form:{app_id:"",app_secret:""}}),components:{MaterialSelect:i.a},methods:{submitForm(t){this.$refs[t].validate(t=>{if(!t)return!1;alert("submit!"),this.$message.error("删除失败!"),this.$message.success("修改成功!"),setTimeout(()=>this.$router.go(-1),500)})},getWechatSetting(){Object(s.a)().then(t=>{this.form=t})},setWechatSetting(){Object(s.b)(this.form).then(t=>{this.getWechatSetting()}).catch(()=>{})}},mounted(){this.getWechatSetting()}}),l=a("2877"),o=Object(l.a)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{attrs:{shadow:"never"}},[a("el-alert",{attrs:{type:"warning",title:"温馨提示：填写微信公众号开发配置，请前往微信公众平台申请服务号并完成认证",closable:!1,"show-icon":""}})],1),a("el-form",{ref:"formRef",attrs:{model:t.form,"label-width":"140px",size:"small"}},[a("el-card",{staticClass:"!border-none mt-4",attrs:{shadow:"never"}},[a("div",{staticClass:"font-medium mb-7"},[t._v("微信公众号")]),a("el-form-item",{attrs:{label:"公众号名称",prop:"name"}},[a("div",{staticClass:"w-80"},[a("el-input",{attrs:{placeholder:"请输入公众号名称"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1)]),a("el-form-item",{attrs:{label:"原始ID",prop:"original_id"}},[a("div",{staticClass:"w-80"},[a("el-input",{attrs:{placeholder:"请输入原始ID"},model:{value:t.form.original_id,callback:function(e){t.$set(t.form,"original_id",e)},expression:"form.original_id"}})],1)]),a("el-form-item",{attrs:{label:"公众号二维码",prop:"qr_code"}},[a("div",[a("div",[a("material-picker",{attrs:{limit:1},model:{value:t.form.qr_code,callback:function(e){t.$set(t.form,"qr_code",e)},expression:"form.qr_code"}})],1),a("div",{staticClass:"form-tips"},[t._v("建议尺寸：宽400px*高400px。jpg，jpeg，png格式")])])])],1),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[t._v("开发者ID")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form-item",{attrs:{label:"AppID",prop:"app_id"}},[a("el-input",{staticClass:"ls-input",attrs:{size:"small"},model:{value:t.form.app_id,callback:function(e){t.$set(t.form,"app_id",e)},expression:"form.app_id"}})],1),a("el-form-item",{attrs:{label:"AppSecret",prop:"app_secret"}},[a("el-input",{staticClass:"ls-input",attrs:{size:"small"},model:{value:t.form.app_secret,callback:function(e){t.$set(t.form,"app_secret",e)},expression:"form.app_secret"}}),a("div",{staticClass:"muted xs m-r-16"},[t._v(" 小程序账号登录微信公众平台，点击开发>开发设置->开发者ID，设置AppID和AppSecret ")])],1)],1)])],1),a("div",{staticClass:"bg-white ls-fixed-footer"},[a("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.setWechatSetting()}}},[t._v("编辑")])],1)])],1)}),[],!1,null,null,null);e.default=o.exports}}]);