PageSourceSearch

https://gin-vue-admin.com/assets/empower_check.md.DehtZ8Rc.lean.js

js gin-vue-admin.com collected 2026-09-25 19:53:16 UTC 9,200 bytes, 1 lines download raw bytes

1import{_ as V,v as $,o as l,c as r,j as a,a2 as g,a0 as A,a3 as S,a4 as B,t as v,e as x,F as u,B as p,k as T,n as U,p as f,h as N,E as j}from"./chunks/framework.b3K37OPx.js";const R={class:"lc-page"},H={class:"lc-hero"},Q=["disabled"],z=["disabled"],D={key:0,class:"lc-feedback"},G={key:0,class:"lc-result"},q={class:"lc-cert"},P={class:"lc-cert__paper"},O={class:"lc-cert__sea","aria-hidden":"true"},F=["width"],I=["transform"],Z=["r"],J=["r"],K=["r"],X={class:"lc-cert__frame","aria-hidden":"true"},Y={class:"lc-cert__body"},W={class:"lc-badge"},ee={class:"lc-badge__main"},ae={class:"lc-badge__stars","aria-hidden":"true"},te={class:"lc-cert__titlebar"},se={class:"lc-cert__laurel",viewBox:"0 0 34 64","aria-hidden":"true"},le=["transform"],re={class:"lc-cert__laurel lc-cert__laurel--right",viewBox:"0 0 34 64","aria-hidden":"true"},ne=["transform"],oe={class:"lc-cert__domain"},ie={class:"lc-info"},ce={class:"lc-info__grid"},de={key:1,class:"lc-result"},ue={class:"lc-miss"},_e={class:"lc-miss__domain"},ve="/pluginApi/licenseQuery/check",o=26,pe={__name:"LicenseCheck",setup(C){const y=(()=>{const s=o/2,e=[];for(let t=-1;t<=3;t++){const c=t*s;(t%2===0?[0,o*2]:[-o,o,o*3]).forEach(_=>e.push({x:_,y:c}))}return e})(),k=[{x:21.6,y:11.4,r:-38},{x:17.2,y:20.8,r:-18},{x:15.5,y:32,r:0},{x:17.2,y:43.2,r:18},{x:21.6,y:52.6,r:38}],M={unlimited:"无限制",self:"自营"},m=f(""),h=f(!1),d=f(""),i=f(null),b=f(""),E=N(()=>{const s=i.value;return s?[{label:"主体类型",value:s.subjectType},{label:"主办单位名称",value:s.companyName},{label:"统一社会信用代码",value:s.uscc},{label:"授权人姓名",value:s.holderName},{label:"身份证号",value:s.idNo},{label:"授权类型",value:M[s.authLevel]||s.authLevel},{label:"证书编号",value:s.certNo}].filter(e=>e.value):[]}),L=s=>{let e=s.trim().replace(/[。.。]/g,".").replace(/^[a-z]+:\/\//i,"").split(/[/?#]/)[0].replace(/:\d+$/,"").toLowerCase();try{e&&(e=new URL(`http://${e}`).hostname)}catch{}return e},w=async()=>{const s=L(m.value);if(!s){d.value="请输入要查询的域名",i.value=null;return}h.value=!0,d.value="",i.value=null,b.value=s;const e=new URL(window.location.href);e.searchParams.set("domain",s),history.replaceState(null,"",e);const t=new AbortController,c=setTimeout(()=>t.abort(),15e3);try{const n=await fetch(`${ve}?domain=${encodeURIComponent(s)}`,{signal:t.signal});if(!n.ok)throw new Error(`接口返回 ${n.status}`);const _=await n.json();if(_.code!==0)throw new Error(_.msg||"查询失败");if(!_.data)throw new Error("接口未返回数据");i.value=_.data}catch(n){n&&n.name==="AbortError"?d.value="查询超时,请稍后重试":n instanceof TypeError||n instanceof SyntaxError?d.value="网络异常,请稍后重试":d.value=`查询失败:${n.message||n}`}finally{clearTimeout(c),h.value=!1}};return $(()=>{const s=new URLSearchParams(window.location.search).get("domain");s&&(m.value=s,w())}),(s,e)=>(l(),r("div",R,[a("section",H,[e[1]||(e[1]=g('<div class="lc-hero__icon" aria-hidden="true" data-v-e382adfa><svg viewBox="0 0 48 48" fill="none" stroke="#e8efff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" data-v-e382adfa><path d="M38 21v-9.5a3.5 3.5 0 0 0-3.5-3.5h-21A3.5 3.5 0 0 0 10 11.5v25a3.5 3.5 0 0 0 3.5 3.5H22" data-v-e382adfa></path><path d="M16 15h16M16 21h16M16 27h8" data-v-e382adfa></path><circle cx="33" cy="32" r="5" data-v-e382adfa></circle><path d="M30.5 36.2 29 43l4-2.1 4 2.1-1.5-6.8" data-v-e382adfa></path></svg></div><h1 class="lc-hero__title" data-v-e382adfa>Gin-Vue-Admin 官方授权查询系统</h1><p class="lc-hero__sub" data-v-e382adfa>输入网站域名,实时查询该站点是否获得官方正版授权</p>',3)),a("form",{class:"lc-search",onSubmit:A(w,["prevent"])},[S(a("input",{"onUpdate:modelValue":e[0]||(e[0]=t=>m.value=t),class:"lc-search__input",type:"text","aria-label":"要查询的域名",placeholder:"请输入要查询的域名,如:demo.gin-vue-admin.com",disabled:h.value},null,8,Q),[[B,m.value]]),a("button",{type:"submit",class:"gva-btn gva-btn--primary lc-search__btn",disabled:h.value},v(h.value?"查询中…":"点击查询"),9,z)],32),d.value?(l(),r("p",D,v(d.value),1)):x("",!0)]),i.value&&i.value.authorized?(l(),r("section",G,[a("div",q,[a("div",P,[(l(),r("svg",O,[a("defs",null,[a("pattern",{id:"lc-seigaiha",width:o*2,height:o,patternUnits:"userSpaceOnUse"},[(l(!0),r(u,null,p(T(y),(t,c)=>(l(),r("g",{key:c,transform:`translate(${t.x} ${t.y})`},[a("circle",{class:"lc-sea__cap",r:o}
1),a("circle",{class:"lc-sea__ring",r:o*.75},null,8,Z),a("circle",{class:"lc-sea__ring",r:o*.5},null,8,J),a("circle",{class:"lc-sea__ring",r:o*.25},null,8,K)],8,I))),128))],8,F)]),e[2]||(e[2]=a("rect",{width:"100%",height:"100%",fill:"url(#lc-seigaiha)"},null,-1))])),a("div",X,[(l(),r(u,null,p(["tl","tr","bl","br"],t=>a("svg",{key:t,class:U(["lc-cert__corner",`lc-cert__corner--${t}`]),viewBox:"0 0 44 44"},[...e[3]||(e[3]=[g('<path d="M44 2H10Q2 2 2 10V44" fill="none" stroke="currentColor" stroke-width="2.5" data-v-e382adfa></path><path d="M44 8.5H14Q8.5 8.5 8.5 14V44" fill="none" stroke="currentColor" stroke-width="1.2" data-v-e382adfa></path><path d="M30 14H14V30" fill="none" stroke="currentColor" stroke-width="1.2" data-v-e382adfa></path><path d="M25.5 18.5H18.5V25.5" fill="none" stroke="currentColor" stroke-width="1.2" data-v-e382adfa></path><rect x="20.5" y="20.5" width="3.5" height="3.5" fill="currentColor" data-v-e382adfa></rect>',5)])],2)),64)),e[4]||(e[4]=a("span",{class:"lc-cert__gem lc-cert__gem--top"},null,-1)),e[5]||(e[5]=a("span",{class:"lc-cert__gem lc-cert__gem--bottom"},null,-1))]),a("div",Y,[a("div",W,[e[10]||(e[10]=g('<span class="lc-badge__icon" data-v-e382adfa><svg viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-e382adfa><circle cx="12" cy="9" r="5.2" data-v-e382adfa></circle><circle cx="12" cy="9" r="2" fill="#fff" stroke="none" data-v-e382adfa></circle><path d="M8.9 13.3 7.2 20.6l4.8-2.5 4.8 2.5-1.7-7.3" data-v-e382adfa></path></svg></span>',1)),a("span",ee,[e[9]||(e[9]=a("span",{class:"lc-badge__text"},"正版授权",-1)),a("span",ae,[e[7]||(e[7]=a("span",{class:"lc-badge__eq"},null,-1)),(l(),r(u,null,p(4,t=>a("svg",{key:t,viewBox:"0 0 24 24"},[...e[6]||(e[6]=[a("path",{d:"M12 2.5l2.95 5.98 6.6.96-4.78 4.65 1.13 6.58L12 17.57l-5.9 3.1 1.13-6.58L2.45 9.44l6.6-.96z"},null,-1)])])),64)),e[8]||(e[8]=a("span",{class:"lc-badge__eq"},null,-1))])])]),a("div",te,[(l(),r("svg",se,[e[12]||(e[12]=a("path",{class:"lc-laurel__stem",d:"M26 6C12 20 12 44 26 58"},null,-1)),(l(),r(u,null,p(k,(t,c)=>a("g",{key:c,transform:`translate(${t.x} ${t.y}) rotate(${t.r})`},[...e[11]||(e[11]=[a("path",{class:"lc-laurel__leaf",d:"M0 0Q-5.5-4.5-13-2Q-6.5 4.5 0 0Z"},null,-1)])],8,le)),64))])),e[15]||(e[15]=a("h2",{class:"lc-cert__title"},"网站授权认定证书",-1)),(l(),r("svg",re,[e[14]||(e[14]=a("path",{class:"lc-laurel__stem",d:"M26 6C12 20 12 44 26 58"},null,-1)),(l(),r(u,null,p(k,(t,c)=>a("g",{key:c,transform:`translate(${t.x} ${t.y}) rotate(${t.r})`},[...e[13]||(e[13]=[a("path",{class:"lc-laurel__leaf",d:"M0 0Q-5.5-4.5-13-2Q-6.5 4.5 0 0Z"},null,-1)])],8,ne)),64))]))]),a("p",oe,v(i.value.domain||b.value),1),a("div",ie,[e[16]||(e[16]=a("h3",{class:"lc-info__title"},"认证基本信息",-1)),a("dl",ce,[(l(!0),r(u,null,p(E.value,t=>(l(),r(u,{key:t.label},[a("dt",null,v(t.label),1),a("dd",null,v(t.value),1)],64))),128))])])])])]),e[17]||(e[17]=a("p",{class:"lc-result__note"},"查询结果由 Gin-Vue-Admin 官方授权数据库实时返回",-1))])):i.value?(l(),r("section",de,[a("div",ue,[e[18]||(e[18]=g('<span class="lc-miss__icon" data-v-e382adfa><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-e382adfa><path d="M12 3l7 3v5c0 4.4-3 8.2-7 9.5C8 19.2 5 15.4 5 11V6z" data-v-e382adfa></path><path d="M12 8.5v4" data-v-e382adfa></path><circle cx="12" cy="15.8" r=".9" fill="currentColor" stroke="none" data-v-e382adfa></circle></svg></span><h2 class="lc-miss__title" data-v-e382adfa>未查询到正版授权</h2>',2)),a("p",_e,v(i.value.domain||b.value),1),e[19]||(e[19]=a("p",{class:"lc-miss__desc"}," 该域名暂未查询到 Gin-Vue-Admin 官方正版授权记录,请注意甄别盗版风险。 如果您已购买授权但查询不到,请联系官方客服核实绑定信息。 ",-1)),e[20]||(e[20]=a("div",{class:"lc-miss__actions"},[a("a",{class:"gva-btn gva-btn--primary",href:"https://plugin.gin-vue-admin.com/license",target:"_blank",rel:"noopener"}," 购买正版授权 ")],-1))])])):x("",!0)]))}},he=V(pe,[["__scopeId","data-v-e382adfa"]]),ge=JSON.parse('{"title":"授权查询","titleTemplate":"Gin-Vue-Admin 官方授权查询系统","description":"","frontmatter":{"layout":"page","title":"授权查询","titleTemplate":"Gin-Vue-Admin 官方授权查询系统","pageClass":"gva-license-page","sidebar":false,"aside":false,"footer":false},"headers":[],"relativePath":"empower/check.md","filePath":"empower/check.md"}'),fe={name:"empower/check.md"},ke=Object.assign(fe,{setup(C){return(y,k)=>
1(l(),r("div",null,[j(he)]))}});export{ge as __pageData,ke as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.