企微助手 ,仓库名 短剧

xh_demo.d2279d5af449e319.1698647458291.js 1.4KB

1
  1. "use strict";(self["webpackChunkqwh5"]=self["webpackChunkqwh5"]||[]).push([[252],{5275:function(e,t,n){function o(e){const t=window.location.href,n={};if(-1!=t.indexOf("?")){let e="",o=[];t.split("?").forEach(((t,i)=>{if(0!=i){e=t,o=e.split("&");for(let e=0;e<o.length;e++)n[o[e].split("=")[0]]=decodeURIComponent(o[e].split("=")[1])}}))}return e?n[e]?n[e]:"":n}function i(e){if("string"!=typeof e)return!1;try{let t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(t){return!1}}n.d(t,{W:function(){return o},p:function(){return i}})},1489:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var o=n(3396),i=n(5275),c=n(9733),r=(0,o.aZ)({__name:"xh_demo",setup(e){const{proxy:t}=(0,o.FN)();function n(){c.F.loading({duration:0,message:"加载中...",forbidClick:!0}),t.$axios.get("/api/customer/test",{corpid:(0,i.W)("corpid"),code:(0,i.W)("code")},!0).then((e=>{r(e.rst.link),c.F.clear()})).catch((e=>{c.F.clear()}))}function r(e){let t=document.createElement("a");t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)}return(0,o.wF)((()=>{if((0,i.W)("againJump"))n();else{let e=encodeURIComponent(window.location.href+"&againJump=true"),t=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${(0,i.W)("corpid")}&redirect_uri=${e}&response_type=code&scope=snsapi_base&state=1&agentid=1000012#wechat_redirect`;r(t)}})),(e,t)=>((0,o.wg)(),(0,o.iD)("div",null," 晓华测试demo "))}});const a=r;var u=a}}]);