import{G as M,R as I,r as a,C as D,H as c,I as p,J as t,Q as n,au as y,ao as C,P as B,an as P,N as r,K as z,M as A,at as H,O as S}from"./common.modules-8cbc64b2.js";import{br as T,bA as V,eh as E,_ as j}from"./page-activity-ActivityDetail-11971e62.js";import{M as F}from"./MayrecordList-74282d68.js";import"./page-turntable-assets-d6267459.js";import"./native/index-15fb3a5d.js";import"./en-5d34117c.js";const J={class:"BettingRecordWin__C"},K={class:"BettingRecordWin__C-head"},O={class:"BettingRecordWin__C-nav"},Q=["innerHTML"],U={class:"BettingRecordWin__C-list"},q={key:0,class:"BettingRecordWin__C-foot"},X={class:"BettingRecordWin__C-foot-page"},Y=M({__name:"index",setup(Z){const W=I(),m=T();let l=a([]);const _=a([]),g=a(0),e=a(1),d=a(4),R=u=>{v.value=u.name,e.value=1,s()},v=a(0),s=async()=>{const[u,o]=await V(E({pageSize:20,pageNo:e.value,typeId:v.value}));_.value=o.list||[],d.value=o.totalPage},b=async()=>{await m.getWinGoData(),l.value=m.getWingo,v.value=l.value[0].typeID,s()};function k(){W.go(-1)}const h=()=>{e.value--,s()},w=()=>{e.value++,s()};return D(()=>{b()}),(u,o)=>{const x=c("NavBar"),L=c("van-tab"),N=c("van-tabs"),f=c("van-icon");return r(),p("div",J,[t("div",K,[n(x,{"left-arrow":"",onClickLeft:k,class:"main",title:"Win Go"})]),t("div",O,[n(N,{active:g.value,"onUpdate:active":o[0]||(o[0]=i=>g.value=i),onClickTab:R},{default:y(()=>[(r(!0),p(z,null,A(S(l),(i,G)=>(r(),H(L,{key:G,name:i.typeID},{title:y(()=>[t("div",{innerHTML:i.typeName.replace(/<br ?\/?>/,"")},null,8,Q)]),_:2},1032,["name"]))),128))]),_:1},8,["active"])]),t("div",U,[n(F,{mayrecord:_.value},null,8,["mayrecord"])]),_.value.length?(r(),p("div",q,[t("div",{class:C(["BettingRecordWin__C-foot-previous",{disabled:e.value<=1}]),onClick:h},[n(f,{name:"arrow-left",class:"BettingRecordWin__C-icon",size:"20"})],2),t("div",X,B(e.value)+"/"+B(d.value),1),t("div",{class:C(["BettingRecordWin__C-foot-next",{disabled:e.value>=d.value}]),onClick:w},[n(f,{name:"arrow",class:"BettingRecordWin__C-icon",size:"20"})],2)])):P("v-if",!0)])}}});const se=j(Y,[["__scopeId","data-v-6d173501"],["__file","/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/views/home/AllLotteryGames/BettingRecordWin/index.vue"]]);export{se as default};
