niucloud-admin/niucloud/public/admin/assets/wxoplatform-1b98dc5b.js
全栈小学生 2c0ae78f6c update admin
2023-06-03 18:35:15 +08:00

2 lines
4.6 KiB
JavaScript

import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{t}from"./index-2af60c2e.js";import{G as x,H as y}from"./sys-662acaa6.js";import{E}from"./index-93f2c618.js";import{a as k,E as D}from"./index-61c777fa.js";import{E as U}from"./index-69523418.js";import{E as q}from"./index-bba9e58c.js";import{v as C}from"./directive-c0c3e9a3.js";import{d as B,r as f,M as b,b as _,e as P,L as R,m as F,p as r,q as l,f as n,x as d,u as o,v as N}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./index-da7837ad.js";import"./vue-router-79053937.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";const S={class:"main-container"},I={class:"panel-title"},T={class:"panel-title"},A={class:"panel-title"},L={class:"fixed-footer-wrap"},M={class:"fixed-footer"},ge=B({__name:"wxoplatform",setup(Q){const p=f(!0),e=b({appid:"",appsecret:"",token:"",key:"",email:"",mobile:"",qq:"",wx:"",start_domain:"",receive_url:"",message_receive:"",host:""});(async(u=0)=>{const a=await(await x()).data;Object.keys(e).forEach(m=>{a[m]!=null&&(e[m]=a[m])}),p.value=!1})();const c=f();b({site_name:[{required:!0,message:t("siteNamePlaceholder"),trigger:"blur"}]});const v=async u=>{p.value||!u||await u.validate(async a=>{a&&(p.value=!0,y(e).then(()=>{p.value=!1}).catch(()=>{p.value=!1}))})};return(u,a)=>{const m=E,s=k,V=U,w=D,h=q,g=C;return _(),P("div",S,[R((_(),F(w,{model:e,"label-width":"200px",ref_key:"formRef",ref:c,class:"page-form"},{default:r(()=>[l(V,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:r(()=>[n("h3",I,d(o(t)("oplatformSetting")),1),l(s,{label:"APPID"},{default:r(()=>[l(m,{modelValue:e.appid,"onUpdate:modelValue":a[0]||(a[0]=i=>e.appid=i),placeholder:o(t)("appidPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1}),l(s,{label:"APPSECRET"},{default:r(()=>[l(m,{modelValue:e.appsecret,"onUpdate:modelValue":a[1]||(a[1]=i=>e.appsecret=i),placeholder:o(t)("appsecretPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1}),n("h3",T,d(o(t)("oplatformComm")),1),l(s,{label:o(t)("empowerStartDomain")},{default:r(()=>[n("span",null,d(e.start_domain),1)]),_:1},8,["label"]),l(s,{label:o(t)("empowerReceiveUrl")},{default:r(()=>[n("span",null,d(e.receive_url),1)]),_:1},8,["label"]),l(s,{label:o(t)("messageValidationToken")},{default:r(()=>[l(m,{modelValue:e.token,"onUpdate:modelValue":a[2]||(a[2]=i=>e.token=i),class:"input-width",clearable:""},null,8,["modelValue"])]),_:1},8,["label"]),l(s,{label:o(t)("messageDecryptKey")},{default:r(()=>[l(m,{modelValue:e.key,"onUpdate:modelValue":a[3]||(a[3]=i=>e.key=i),class:"input-width",clearable:""},null,8,["modelValue"])]),_:1},8,["label"]),l(s,{label:o(t)("messageReceiveUrl")},{default:r(()=>[n("span",null,d(e.message_receive),1)]),_:1},8,["label"]),l(s,{label:o(t)("wechatDomain")},{default:r(()=>[n("span",null,d(e.host),1)]),_:1},8,["label"]),l(s,{label:o(t)("weappDomain")},{default:r(()=>[n("span",null,d(e.host),1)]),_:1},8,["label"]),l(s,{label:o(t)("weappBusinessDomain")},{default:r(()=>[n("span",null,d(e.host),1)]),_:1},8,["label"]),n("h3",A,d(o(t)("oplatformBuilder")),1),l(s,{label:o(t)("builderEmail")},{default:r(()=>[l(m,{modelValue:e.email,"onUpdate:modelValue":a[4]||(a[4]=i=>e.email=i),class:"input-width",clearable:""},null,8,["modelValue"])]),_:1},8,["label"]),l(s,{label:o(t)("builderMobile")},{default:r(()=>[l(m,{modelValue:e.mobile,"onUpdate:modelValue":a[5]||(a[5]=i=>e.mobile=i),class:"input-width",clearable:""},null,8,["modelValue"])]),_:1},8,["label"]),l(s,{label:o(t)("builderQQ")},{default:r(()=>[l(m,{modelValue:e.qq,"onUpdate:modelValue":a[6]||(a[6]=i=>e.qq=i),class:"input-width",clearable:""},null,8,["modelValue"])]),_:1},8,["label"]),l(s,{label:o(t)("builderWx")},{default:r(()=>[l(m,{modelValue:e.wx,"onUpdate:modelValue":a[7]||(a[7]=i=>e.wx=i),class:"input-width",clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])),[[g,p.value]]),n("div",L,[n("div",M,[l(h,{type:"primary",loading:p.value,onClick:a[8]||(a[8]=i=>v(c.value))},{default:r(()=>[N(d(o(t)("save")),1)]),_:1},8,["loading"])])])])}}});export{ge as default};