import{d as e,u as s,c as a,r as t,o as l,f as o,P as n,g as i,l as d,Y as c,h as r,Q as b,R as p,F as u,j as v,X as g,z as x,t as R,A as h,a3 as m,at as f,B as _,C as w,_ as F}from"./index_1730355987.js";import{_ as y}from"./index_173035598733.js";const C=e=>(_("data-v-bfd71e3e"),e=e(),w(),e),k={class:"page"},B={class:"page-body"},A={class:"top"},D={class:"left"},Y={class:"right"},j=C((()=>i("div",{class:"title"},"RECOMPENSA",-1))),z={class:"jinbi flex-ct"},M={class:"bottom"},T={key:0,class:"box"},E=C((()=>i("div",{class:"title"},"Registro de fluxo",-1))),I={class:"table"},J=C((()=>i("div",{class:"label"},[i("span",null,"Date"),i("span",null,"Fluxo de aposta"),i("span",null,"Bonus")],-1))),N={class:"bonus flex-ct"},O={key:1,class:"box"},P=[C((()=>i("div",{class:"title"},"Registro de fluxo",-1))),C((()=>i("div",{class:"table"},[i("div",{class:"label"},[i("span",null,"Date"),i("span",null,"Fluxo de aposta"),i("span",null,"Bonus")]),i("div",{class:"no-data"},"NO-DATA")],-1)))],$=F(e({__name:"betting",setup(e){const _=s();let w=a({betRebateCoins:0,betRebateFlow:0,records:[]});const F=t(!1),C=async()=>{x.getTotalRebate().then((e=>{0===e.code&&(w.betRebateCoins=e.data.betRebateCoins,w.betRebateFlow=e.data.betRebateFlow,w.records=e.data.records,F.value=!Boolean(w.betRebateCoins&&w.betRebateFlow))}))};C();const $=async()=>{const e=await x.receiveTotalRebate();0===e.code?(_.getUserInfo(),R("success"),C()):R(e.txt)};return(e,s)=>{const a=y,t=h;return l(),o("div",k,[n(a),i("div",B,[i("div",A,[i("div",D,[F.value?(l(),d(t,{key:0,width:"4rem",height:"4rem",src:"base/open-box.png"})):(l(),d(t,{key:1,width:"4rem",height:"4rem",src:"base/close-box.png"}))]),i("div",Y,[j,i("div",z,[n(t,{width:".8rem",height:".8rem",src:"base/JB_R$.png"}),i("span",null,c(r(m)((r(w).betRebateCoins/1e4).toFixed(2))),1)]),b(n(t,{width:"3rem",src:"perfil/receber.png",onClick:$},null,512),[[p,r(w).betRebateCoins]])])]),i("div",M,[n(t,{src:"perfil/xzi_01.png"}),r(w).records.length?(l(),o("div",T,[E,i("div",I,[J,(l(!0),o(u,null,v(r(w).records,((e,s)=>(l(),o("div",{class:"td",key:s},[i("span",null,c(r(f)(e.createdAt,"YYYY-MM-DD")),1),i("span",null,c(r(m)((e.betFlow/1e4).toFixed(2))),1),i("span",N,[n(t,{width:"0.5rem",style:{"margin-right":"0.2rem"},src:"base/JB_R$.png"}),g(" "+c(r(m)((e.bonus/1e4).toFixed(2))),1)])])))),128))])])):(l(),o("div",O,P)),n(t,{src:"perfil/xzi_03.png"})])])])}}}),[["__scopeId","data-v-bfd71e3e"]]);export{$ as default};
