import{s as e,o as s,d as o,w as t,h as a,e as n,a as r}from"./index-52f0fde8.js";import{l as i}from"./index.86ec3509.js";import{o as p}from"./uni-app.es.add45db9.js";const d={__name:"login",setup:d=>(p((s=>{console.log(s),s.userid&&s.appid?((s,o)=>{i(s).then((s=>{console.log(s),s.status?(sessionStorage.setItem("access_token",s.data.token),sessionStorage.setItem("refresh_token",s.data.refresh_token),o.objtype&&o.page?a({url:"/pages/"+o.objtype+"/"+o.page+"?ordernum="+o.ordernum+"&price="+o.price}):e({title:"缺失跳转路径",icon:"none"})):e({title:s.msg,icon:"none"})}))})({appid:s.appid,openid:s.userid},s):e({title:"缺失应用用户信息",icon:"none"})})),(e,a)=>{const i=n;return s(),o(i,null,{default:t((()=>[r(" 登陆中... ")])),_:1})})};export{d as default};
