1 |
- "use strict";(self["webpackChunkqwh5"]=self["webpackChunkqwh5"]||[]).push([[501],{5463:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var r=n(3396),a=n(6583),o=n(9733),i=(0,r.aZ)({__name:"extend",setup(e){const{proxy:t}=(0,r.FN)();(0,r.wF)((()=>{if((0,a.W)("againJump"))n();else{let e=encodeURIComponent(window.location.href+"&againJump=true"),t=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${(0,a.W)("corpid")}&redirect_uri=${e}&response_type=code&scope=snsapi_base&state=1&agentid=1000012#wechat_redirect`;i(t)}}));const n=()=>{o.F.loading({duration:0,message:"加载中...",forbidClick:!0}),t.$axios.get("/api/oauth2/userInfo",{corpid:(0,a.W)("corpid"),code:(0,a.W)("code"),state:(0,a.W)("state")},!0).then((e=>{if(o.F.clear(),e.rst)if((0,a.W)("jumpLink")){let t=decodeURIComponent((0,a.W)("jumpLink"));if(-1!=t.indexOf("?")){let n=t+"¶ms="+e.rst.external_userid+"&userId="+e.rst.external_userid;i(n)}else{let n=t+"?params="+e.rst.external_userid+"&userId="+e.rst.external_userid;i(n)}}else(0,o.F)("无回跳链接!")})).catch((e=>{o.F.clear()}))};function i(e){let t=document.createElement("a");t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)}return(e,t)=>null}});const s=i;var c=s}}]);
|