test_lgq/niucloud/public/admin/assets/config-7c740936.js

2 lines
5.9 KiB
JavaScript
Raw Normal View History

2024-01-24 17:36:08 +08:00
import{d as T,O as A,f as K,r as h,n as B,aL as $,s as D,a4 as v,N as e,h as b,c as I,a as s,u as a,t as n,y as O,I as R,w as p,e as t,i as g,W,X as L,$ as j,Y as F,E as Q,a0 as z}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css */import{_ as M}from"./index.vue_vue_type_style_index_0_lang-cd8f78e9.js";/* empty css */import{_ as X}from"./index-742b412a.js";import"./el-form-item-4ed993c7.js";/* empty css */import{g as Y,a as G,s as H}from"./aliapp-fcf59972.js";/* empty css *//* empty css */import"./index.vue_vue_type_style_index_0_lang-5c6c00d9.js";/* empty css */import"./attachment-c69dd9fd.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-9285296e.js";/* empty css */import"./sys-8ead7f22.js";const J={class:"main-container"},Z={class:"detail-head"},ee=s("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),ae={class:"ml-[1px]"},le=s("span",{class:"adorn"},"|",-1),te={class:"right"},oe={class:"panel-title !text-sm"},se={class:"form-tip"},ie={class:"panel-title !text-sm"},pe={class:"input-width"},ne={class:"form-tip"},re={class:"input-width"},de={class:"form-tip"},ue={class:"input-width"},ce={class:"form-tip"},me={class:"panel-title !text-sm"},_e={class:"flex"},fe={class:"panel-title !text-sm"},ye={class:"fixed-footer-wrap"},he={class:"fixed-footer"},Ge=T({__name:"config",setup(ve){const V=A(),w=K(),x=V.meta.title,u=h(!0),o=B({name:"",qrcode:"",private_key:"",app_id:"",aes_key:"",public_key_crt:"",alipay_public_key_crt:"",alipay_with_crt:"",request_url:""}),f=h();Y().then(d=>{Object.assign(o,d.data),u.value=!1}),G().then(d=>{o.request_url=d.data.domain});const{copy:k,isSupported:C,copied:y}=$(),S=d=>{if(!C.value){v({message:e("notSupportCopy"),type:"warning"});return}k(d)};D(y,()=>{y.value&&v({message:e("copySuccess"),type:"success"})});const E=async d=>{u.value||!d||await d.validate(async l=>{l&&(u.value=!0,H(o).then(()=>{u.value=!1}).catch(()=>{u.value=!1}))})};return(d,l)=>{const c=W,r=L,P=X,m=j,_=M,U=F,q=Q,N=z;return b(),I("div",J,[s("div",Z,[s("div",{class:"left",onClick:l[0]||(l[0]=i=>a(w).push({path:"/channel/aliapp"}))},[ee,s("span",ae,n(a(e)("returnToPreviousPage")),1)]),le,s("span",te,n(a(x)),1)]),O((b(),R(U,{model:o,"label-width":"150px",ref_key:"formRef",ref:f,class:"page-form"},{default:p(()=>[t(m,{class:"box-card !border-none",shadow:"never"},{default:p(()=>[s("h3",oe,n(a(e)("aliappSet")),1),t(r,{label:a(e)("aliappName")},{default:p(()=>[t(c,{modelValue:o.name,"onUpdate:modelValue":l[1]||(l[1]=i=>o.name=i),placeholder:a(e)("aliappNamePlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(r,{label:a(e)("aliappQrcode")},{default:p(()=>[t(P,{modelValue:o.qrcode,"onUpdate:modelValue":l[2]||(l[2]=i=>o.qrcode=i)},null,8,["modelValue"]),s("div",se,n(a(e)("aliappQrcodeTips")),1)]),_:1},8,["label"])]),_:1}),t(m,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:p(()=>[s("h3",ie,n(a(e)("aliappDevelopInfo")),1),t(r,{label:a(e)("aliappOriginal")},{default:p(()=>[t(c,{modelValue:o.private_key,"onUpdate:modelValue":l[3]||(l[3]=i=>o.private_key=i),placeholder:a(e)("aliappOriginalPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(r,{label:a(e)("aliappAppid")},{default:p(()=>[t(c,{modelValue:o.app_id,"onUpdate:modelValue":l[4]||(l[4]=i=>o.app_id=i),placeholder:a(e)("appidPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(r,{label:a(e)("countersi