1import{_ as w,a as y,b as g,c as h,d as Q}from"./weixinLogin.962db91b.js";import{_ as k}from"./recommend.vue.eefe28a2.js";import{u as v}from"./useRouterItem.7a7dc8b5.js";import{j as p,a1 as C,r as I,g as P,c as S,b as i,o as b}from"./entry.9edb4552.js";import{u as R}from"./asyncData.9064fbcd.js";import{p as L}from"./homeApi.39a0ee44.js";import{c as U,a as A}from"./thirdLogin.826ced20.js";import{_ as K}from"./_plugin-vue_export-helper.c27b6911.js";import"./vue3-scroll-seamless.b2038a81.js";import"./index.94d92265.js";import"./index.960ecf44.js";import"./debounce.d5b7bd21.js";import"./position.1b22ca1f.js";import"./scrollbar.b9e4e8ec.js";/* empty css */import"./projectApi.1d361fcb.js";import"./carousel.81cfcd18.js";import"./index.7714ad18.js";import"./tabs.29c5d8bc.js";import"./strings.7efd30b5.js";import"./reportingDialog.6b50ba5f.js";import"./form-item.32af0702.js";import"./castArray.6d8b3117.js";import"./_getTag.724a89b9.js";import"./uploadFrom.5e369cb5.js";import"./progress.e2476194.js";import"./isEqual.bd1792f5.js";import"./index.3a3e2558.js";import"./refs.32e158bb.js";import"./isUndefined.aa0326a0.js";/* empty css */import"./capitalCenter.33354db4.js";import"./nuxt-link.7efc6fec.js";/* empty css */import"./filter.ce10231f.js";/* empty css */import"./useOrder.98f0b260.js";import"./orderApi.fa8bec10.js";import"./goodsApi.336e2d94.js";import"./activityApi.46c2a5a3.js";import"./gameClassCard.d7a3f3dc.js";import"./swiperIndex.9681c55b.js";import"./navigation.e900fe82.js";import"./product.9845945f.js";import"./merge.c257949e.js";import"./Verify.d492b3a1.js";import"./client-only.ba05a078.js";import"./verifyCode.51878bdf.js";import"./goldProduct.4ec4a7f8.js";/* empty css */const B={class:"w-100%"},G={__name:"index",setup(W){const{routeQuery:r}=v();R(()=>L(),"$PslAyef5YX");const s=p(),c=C(),{isweixinQQ:m}=p(),a=I();async function _(e){if(e.code&&e.state){const t=await U({code:e.code,state:e.state});let o=new URL(window.location.href);o.searchParams.delete("code"),o.searchParams.delete("state"),window.history.replaceState({},"",o.href);const n=t.userKey;n?a.value.open(n):(s.login(t.token),s.setUserInfo(t),await c.getGlobalConfig())}}async function d(e){if(e.code&&e.state){const t=await A({code:e.code,state:e.state});let o=new URL(window.location.href);o.searchParams.delete("code"),o.searchParams.delete("state"),window.history.replaceState({},"",o.href);const n=t.userKey;n?a.value.open(n):(s.login(t.token),s.setUserInfo(t),await c.getGlobalConfig())}}return P(()=>{r.code&&r.state&&m==1?_(r):r.code&&r.state&&m==2&&d(r)}),(e,t)=>{const o=w,n=y,l=g,f=h,u=k,x=Q;return b(),S("div",B,[i(o),i(n),i(l),i(f),i(u),i(x,{ref_key:"weixinLoginRef",ref:a},null,512)])}}},Ke=K(G,[["__scopeId","data-v-bc51eaf6"]]);export{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.