import{h as t,N as e,Q as a,R as s,x as n}from"./index-efa985d2.js";const{isLoading:o,sendRequest:i}=function(){const o=t(!1);return{isLoading:o,sendRequest:function(t){o.value=!0,e({title:"加载中"});let i=function(t){return t.header={Authorization:"Bearer "+sessionStorage.getItem("access_token"),"Content-Type":"application/json"},t}(t);return new Promise(((t,e)=>{a({...i,success:e=>{let a=200===(i=e).statusCode?(0==i.data.status&&n({title:i.data.msg,icon:"none"}),i.data):(n({title:"请求失败，请稍后重试",icon:"none"}),Promise.reject(i.data));var i;o.value=!1,s(),t(a)},fail:t=>{o.value=!1,s(),e(t)}})}))}}}();let u="https://yiji.yuluo.online/Laravel/public/api/";const r=t=>i({url:u+"H5/Login",method:"POST",data:t}),l=t=>i({url:u+"v1/H5/EntrustGetList",method:"POST",data:t}),d=t=>i({url:u+"v1/H5/GetEnablePlan",method:"POST",data:t}),c=t=>i({url:u+"v1/H5/H5_YuYue",method:"POST",data:t}),m=t=>i({url:u+"v1/H5/H5_CancelYuYue",method:"POST",data:t});export{l as E,d as G,m as H,r as L,c as a};
