mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-15 04:02:47 +00:00
2 lines
9.0 KiB
JavaScript
2 lines
9.0 KiB
JavaScript
import"./base-0e92f4db.js";/* empty css *//* empty css */import{a as N,E as j}from"./el-form-item-c2dd2ffe.js";/* empty css *//* empty css */import{_ as $}from"./index-48a4e5ef.js";/* empty css */import{t as e}from"./index-2d1c7ba3.js";import{g as B,a as O,e as I}from"./wechat-78918035.js";import{a3 as K}from"./event-a537c4cb.js";import{u as L,a as W}from"./vue-router-8b032575.js";import{a as y}from"./index-e9d9b1a1.js";import{E as F}from"./index-8cefa3ab.js";import{E as Q}from"./index-2668a8ea.js";import{E as z,b as G}from"./index-9aa10ae4.js";import{E as H}from"./index-e09a20f5.js";import{v as J}from"./directive-c6f70b8e.js";import{d as X,r as x,M as b,w as Y,b as V,e as Z,f as r,u as o,x as s,L as ee,m as oe,p as l,q as t,v as f}from"./runtime-core.esm-bundler-67034826.js";import"./index-72686045.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-17d8e4dc.js";import"./el-overlay-3eff2fc5.js";import"./index-defed8ff.js";import"./focus-trap-83769a43.js";import"./index-6cae7119.js";import"./index-d87ae4a2.js";import"./attachment-f90dcf10.js";/* empty css *//* empty css *//* empty css */import"./index-fac59425.js";import"./common-46715e7e.js";import"./index-81f2aa1e.js";import"./el-main-7a89c415.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-ebd2990f.js";/* empty css */import"./index-ef31373f.js";import"./index-de22cd40.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-8c8d61e8.js";import"./index-a31d0a55.js";import"./aria-adfa05c5.js";import"./validator-9409f909.js";import"./index-434046cb.js";import"./index-d23c70b3.js";import"./index-2b1dc445.js";import"./index-c7745eb3.js";import"./debounce-f6ba9d12.js";import"./position-c2e84b2a.js";import"./index-0caa5b89.js";import"./index-fd563016.js";import"./isEqual-97c7f2d5.js";import"./index-95382bd9.js";import"./index-757074f4.js";import"./index-66750d66.js";import"./strings-1130dd70.js";import"./index-c6aa1547.js";const te={class:"main-container"},ae={class:"detail-head"},le=r("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),re={class:"ml-[1px]"},se=r("span",{class:"adorn"},"|",-1),ie={class:"right"},ne={class:"panel-title !text-sm"},pe={class:"form-tip"},de={class:"panel-title !text-sm"},ce={class:"form-tip"},me={class:"form-tip"},ue={class:"panel-title !text-sm"},_e={class:"form-tip"},he={class:"form-tip"},fe={class:"form-tip"},ge={class:"form-tip"},be={class:"form-tip"},ve={class:"flex"},we={class:"panel-title !text-sm"},ye={class:"form-tip"},xe={class:"fixed-footer-wrap"},Ve={class:"fixed-footer"},$o=X({__name:"config",setup(ke){const k=L(),P=W(),E=k.meta.title,u=x(!0),n=b({wechat_name:"",wechat_original:"",app_id:"",app_secret:"",qr_code:"",token:"",encoding_aes_key:"",encryption_type:"not_encrypt"}),v=x(),S=b({wechat_name:[{required:!0,message:e("wechatNamePlaceholder"),trigger:"blur"}],wechat_original:[{required:!0,message:e("wechatOriginalPlaceholder"),trigger:"blur"}],app_id:[{required:!0,message:e("appidPlaceholder"),trigger:"blur"}],app_secret:[{required:!0,message:e("appSecretPlaceholder"),trigger:"blur"}],token:[{required:!0,message:e("tokenPlaceholder"),trigger:"blur"}],encoding_aes_key:[{required:!0,message:e("encodingAesKeyPlaceholder"),trigger:"blur"}]});B().then(m=>{Object.assign(n,m.data),u.value=!1});const c=b({business_domain:"",js_secure_domain:"",serve_url:"",web_auth_domain:""});O().then(m=>{Object.assign(c,m.data),u.value=!1});const{copy:C,isSupported:T,copied:w}=K(),_=m=>{if(!T.value){y({message:e("notSupportCopy"),type:"warning"});return}C(m)};Y(w,()=>{w.value&&y({message:e("copySuccess"),type:"success"})});const q=async m=>{u.value||!m||await m.validate(async a=>{a&&(u.value=!0,I(n).then(()=>{u.value=!1}).catch(()=>{u.value=!1}))})};return(m,a)=>{const d=F,p=N,A=$,h=Q,g=z,U=G,M=j,R=H,D=J;return V(),Z("div",te,[r("div",ae,[r("div",{class:"left",onClick:a[0]||(a[0]=i=>o(P).push({path:"/website/channel/wechat"}))},[le,r("span",re,s(o(e)("returnToPreviousPage")),1)]),se,r("span",ie,s(o(E)),1)]),ee((V(),oe(M,{model:n,"label-width":"150px",ref_key:"formRef",ref:v,rules:S,class:"page-form"},{default:l(()=>[t(h,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r("h3",ne,s(o(e)("wechatInfo")),1),t(p,{label:o(e)("wechatName"),prop:"wechat_name"},{default:l(()=>[t(d,{modelValue:n.wechat_name,"onUpdate:modelValue":a[1]||(a[1]=i=>n.wechat_name=i),placeholder:o(e)("wechatNamePlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(p,{label:o(e)("wechatOriginal"),prop:"wechat_original"},{default:l(()=>[t(d,{modelValue:n.wechat_original,"onUpdate:modelValue":a[2]||(a[2]=i=>n.wechat_original=i),placeholder:o(e)("wechatOriginalPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(p,{label:o(e)("wechatQrcode"),prop:"qr_code"},{default:l(()=>[t(A,{modelValue:n.qr_code,"onUpdate:modelValue":a[3]||(a[3]=i=>n.qr_code=i)},null,8,["modelValue"]),r("div",pe,s(o(e)("wechatQrcodeTips")),1)]),_:1},8,["label"])]),_:1}),t(h,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:l(()=>[r("h3",de,s(o(e)("wechatDevelopInfo")),1),t(p,{label:o(e)("wechatAppid"),prop:"app_id"},{default:l(()=>[t(d,{modelValue:n.app_id,"onUpdate:modelValue":a[4]||(a[4]=i=>n.app_id=i),placeholder:o(e)("appidPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"]),r("div",ce,s(o(e)("wechatAppidTips")),1)]),_:1},8,["label"]),t(p,{label:o(e)("wechatAppsecret"),prop:"app_secret"},{default:l(()=>[t(d,{modelValue:n.app_secret,"onUpdate:modelValue":a[5]||(a[5]=i=>n.app_secret=i),placeholder:o(e)("appSecretPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"]),r("div",me,s(o(e)("wechatAppsecretTips")),1)]),_:1},8,["label"])]),_:1}),t(h,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:l(()=>[r("h3",ue,s(o(e)("theServerSetting")),1),t(p,{label:"URL"},{default:l(()=>[t(d,{"model-value":c.serve_url,placeholder:"Please input",class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:a[6]||(a[6]=i=>_(c.serve_url))},s(o(e)("copy")),1)]),_:1},8,["model-value"])]),_:1}),t(p,{label:"Token",prop:"token"},{default:l(()=>[t(d,{modelValue:n.token,"onUpdate:modelValue":a[7]||(a[7]=i=>n.token=i),placeholder:o(e)("tokenPlaceholder"),class:"input-width",maxlength:"32","show-word-limit":"",clearable:""},null,8,["modelValue","placeholder"]),r("div",_e,s(o(e)("tokenTips")),1)]),_:1}),t(p,{label:"EncodingAESKey",prop:"encoding_aes_key"},{default:l(()=>[t(d,{modelValue:n.encoding_aes_key,"onUpdate:modelValue":a[8]||(a[8]=i=>n.encoding_aes_key=i),placeholder:o(e)("encodingAesKeyPlaceholder"),class:"input-width",maxlength:"43","show-word-limit":"",clearable:""},null,8,["modelValue","placeholder"]),r("div",he,s(o(e)("encodingAESKeyTips")),1)]),_:1}),t(p,{label:o(e)("encryptionType"),prop:"encryption_type"},{default:l(()=>[t(U,{modelValue:n.encryption_type,"onUpdate:modelValue":a[9]||(a[9]=i=>n.encryption_type=i)},{default:l(()=>[t(g,{label:"not_encrypt"},{default:l(()=>[f(s(o(e)("cleartextMode")),1)]),_:1}),t(g,{label:"compatible"},{default:l(()=>[f(s(o(e)("compatibleMode")),1)]),_:1}),t(g,{label:"safe"},{default:l(()=>[f(s(o(e)("safeMode")),1)]),_:1})]),_:1},8,["modelValue"]),r("div",fe,s(o(e)("cleartextModeTips")),1),r("div",ge,s(o(e)("compatibleModeTips")),1),r("div",be,s(o(e)("safeModeTips")),1)]),_:1},8,["label"])]),_:1}),t(h,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:l(()=>[r("div",ve,[r("h3",we,s(o(e)("functionSetting")),1)]),t(p,{label:""},{default:l(()=>[r("div",ye,s(o(e)("functionSettingTips")),1)]),_:1}),t(p,{label:o(e)("businessDomain")},{default:l(()=>[t(d,{"model-value":c.business_domain,placeholder:"Please input",class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:a[10]||(a[10]=i=>_(c.business_domain))},s(o(e)("copy")),1)]),_:1},8,["model-value"])]),_:1},8,["label"]),t(p,{label:o(e)("jsSecureDomain")},{default:l(()=>[t(d,{"model-value":c.js_secure_domain,placeholder:"Please input",class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:a[11]||(a[11]=i=>_(c.business_domain))},s(o(e)("copy")),1)]),_:1},8,["model-value"])]),_:1},8,["label"]),t(p,{label:o(e)("webAuthDomain")},{default:l(()=>[t(d,{"model-value":c.web_auth_domain,placeholder:"Please input",class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:a[12]||(a[12]=i=>_(c.business_domain))},s(o(e)("copy")),1)]),_:1},8,["model-value"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[D,u.value]]),r("div",xe,[r("div",Ve,[t(R,{type:"primary",loading:u.value,onClick:a[13]||(a[13]=i=>q(v.value))},{default:l(()=>[f(s(o(e)("save")),1)]),_:1},8,["loading"])])])])}}});export{$o as default};
|