PageSourceSearch

https://vpn.cdutcm.edu.cn/assets/WechatOfficialRzkcPc-C1J-RXva.js

js cdutcm.edu.cn collected 2026-10-02 05:11:14 UTC 2,706 bytes, 1 lines download raw bytes

1import{e as C}from"./auth-Crs8kf_D.js";import{u as I}from"./user-V10Yxw5H.js";import{w as g,a as v,Q as u}from"./qrcode-B5mAt0r-.js";import{r as w,g as S}from"./util-DyruD4Ub.js";import{h as d}from"./const-BHerojsC.js";import{_ as k,d as y,c as m,o as f,e as a,b as h,h as U,C as x,i as q,j as L,a3 as b}from"./index-Cey6Kqla.js";import"./request-B-CfM8d9.js";import"./user-cwdmpEuP.js";import"./urlConf-D5f8gSXt.js";import"./styleChecker-TFxV7Lzl.js";import"./index-DXhXwGTY.js";import"./initDefaultProps-_hAYIFu4.js";import"./fade-BdgfkLw7.js";import"./_commonjsHelpers-Dyg5QWG7.js";const R=y({name:"WechatOfficialRzkcPc",props:{authOptions:{type:Object,default:()=>null},externalId:{type:String,default:()=>""},authId:{type:String,default:()=>""}},setup(r){const s=I(),e=U({qrCodeUrl:null,timer:0,reFreshTimer:0,showRefreshCode:!1,scanCodeSuccess:!1,session:""}),o=()=>{clearInterval(e.reFreshTimer),e.showRefreshCode=!1},c=()=>{e.qrCodeUrl&&(e.qrCodeUrl.innerHTML=""),e.session="",o(),clearInterval(e.timer)},l=async()=>{e.session=w(8);const t={externalId:r.externalId,session:e.session,deviceId:await S()};b(()=>{const i=`${window.location.origin}/buffer/wechat-official-rzkc-pc?state=${btoa(JSON.stringify(t))}`;console.log("redirectUri",i),new u(e.qrCodeUrl,{text:i,width:200,height:200,colorDark:"#000000",colorLight:"#fff",correctLevel:u.CorrectLevel.L})._el.title="",e.reFreshTimer=setInterval(()=>{e.showRefreshCode=!0,clearInterval(e.timer)},3e5),e.timer=setInterval(async()=>{const{code:p,data:n}=await C({session:e.session});p===0&&n&&(n.status===d.UnScan?e.scanCodeSuccess=!1:n.status===d.ScanCodeSuccess?(e.scanCodeSuccess=!0,o()):n.status===d.LoginSuccess&&(clearInterval(e.timer),o(),s.getUserInfo()))},2e3)})};return x(()=>{c()}),q(()=>r.authId,(t,i)=>{i===r.externalId&&c(),t===r.externalId&&l()},{immediate:!0,deep:!0}),{...L(e),wechatErrorImg:v,wechatSuccessImg:g,refreshQrCode:()=>{c(),l()}}}}),O={class:"official-rzkc-container"},Q={ref:"qrCodeUrl",class:"qrcode"},T={key:0,class:"mask"},_=["src"],j={class:"refresh-container"},z={key:1,class:"mask"},F=["src"],X=k(R,[["render",function(r,s,e,o,c,l){return f(),m("div",O,[a("div",Q,null,512),r.showRefreshCode?(f(),m("div",T,[a("img",{src:r.wechatErrorImg,alt:"",class:"error-img"},null,8,_),a("div",j,[s[1]||(s[1]=a("span",null,"二维码已过期",-1)),a("a",{class:"refresh",onClick:s[0]||(s[0]=(...t)=>r.refreshQrCode&&r.refreshQrCode(...t))},"刷新")])])):h("",!0),r.scanCodeSuccess?(f(),m("div",z,[a("img",{src:r.wechatSuccessImg,alt:"",class:"success-img"},null,8,F),s[2]||(s[2]=a("div",{class:"refresh-container"},[a("span",null,"扫码成功")],-1))])):h("",!0)])}],["__scopeId","data-v-5f233b27"]]);export{X 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.