import{G as t,H as e,O as a,J as s,K as o,r as n,L as r,M as i,N as u,h as d}from"./index-115eb096.js";const c=(t,e)=>{const a=t.__vccOpts||t;for(const[s,o]of e)a[s]=o;return a};function l(t,e){return"string"==typeof t?e:t}const m=a=>(s,n=e())=>{!o&&t(a,s,n)},v=m(a),h=m(s);const{isLoading:p,sendRequest:f}=function(){const t=n(!1);return{isLoading:t,sendRequest:function(e){let a=function(t){return t.header={Authorization:"Bearer "+sessionStorage.getItem("access_token"),"Content-Type":"application/json"},t}(e);return t.value=!0,r({title:"加载中",mask:!0}),new Promise(((e,s)=>{i({...a,success:a=>{let s=200===(o=a).statusCode?(0==o.data.status&&d({title:o.data.msg,icon:"none"}),o.data):(d({title:"请求失败，请稍后重试",icon:"none"}),Promise.reject(o.data));var o;t.value=!1,u(),e(s)},fail:e=>{t.value=!1,u(),s(e)}})}))}}}();let O="https://mbmg.yuluo.online/Laravel/public/api/";const P=t=>f({url:O+"H5/Login",method:"POST",data:t}),S=t=>f({url:O+"v1/H5/MemberSave",method:"POST",data:t}),g=t=>f({url:O+"v1/H5/MemberGetList",method:"POST",data:t}),H=t=>f({url:O+"v1/H5/MemberRecharge",method:"POST",data:t}),T=t=>f({url:O+"v1/H5/AccountList",method:"POST",data:t}),b=t=>f({url:O+"v1/H5/MemberGetDetail",method:"POST",data:t}),L=t=>f({url:O+"v1/H5/GetUserInfo",method:"POST",data:t}),M=t=>f({url:O+"v1/H5/MemberExpend",method:"POST",data:t});export{T as A,L as G,S as M,c as _,h as a,b,H as c,M as d,g as e,P as l,v as o,l as r};
