import{L as a,P as e,M as s,R as t,y as o,p as n}from"./index-4fa572a1.js";const r=r=>(a({title:"加载中",mask:!0}),new Promise(((a,d)=>{e({url:"/carstop/carbook"+r.url,method:r.method||"GET",data:r.data||{},success:e=>{s(),200===e.data.code?a(e.data.data):"未查到用户信息"==e.data.message?(t("bus_card_number"),o({url:"/pages/index/index"})):n({title:e.data.message,icon:"none"})},fail:a=>{s(),n({title:"请求数据失败",icon:"none"}),d(a)}})}))),d=()=>!!(-1!=navigator.userAgent.toLowerCase().indexOf("micromessenger"));export{d as i,r as m};
