| 1 |
- import{v as O,ak as R,aj as A,o as E,M as J,n as K}from"./element-plus-BjmnhcWI.js";import{_ as H,u as M,aa as X,ab as Y,ac as W,K as ee}from"./index-CAoOLuwd.js";import{r as g,l as z,L as s,V,I as L,O as h,M as _,u as b,P as c,H as a,F as x,ab as q,Z as v,X as B,R as Q,ax as G,ay as F,Y as D,Q as te,aB as ae,aA as oe}from"./vue-vendor-C1ve1r-r.js";/* empty css */const se=m=>(G("data-v-de84302e"),m=m(),F(),m),ne={class:"pc28-pc-container"},le={class:"equation-row"},re={class:"grey-ball"},ce={key:0,class:"operator"},ue=se(()=>c("span",{class:"operator"},"=",-1)),ie={class:"red-sum-ball"},de={class:"tags-row"},_e={class:"pagination-wrapper"},pe={__name:"Pc28Component",props:{game:{type:String,required:!0},params:{type:Object,default:()=>({})}},setup(m){const{t:i}=M(),N=m,$=g([]),r=g(!1),y=g(1),p=g(0),w=(e=1)=>{r.value=!0;const t={page:e,limit:20,...N.params};(N.game==="canada28"?X(t):Y(t)).then(l=>{l.code===1&&l.data&&($.value=l.data.list||[],p.value=l.data.count||0)}).finally(()=>{r.value=!1})},k=e=>{w(e)},P=e=>e?e.split(","):[],C=e=>e.reduce((t,o)=>t+Number(o),0),T=e=>e?Array.isArray(e)?e:String(e).split(" ").filter(Boolean):[],j=e=>["大","双","极大"].includes(e)?"tag-red":["小","单","极小"].includes(e)?"tag-green":e.includes("尾")?"tag-yellow":"tag-default";return z(()=>w()),(e,t)=>{const o=R,l=A,f=E,I=O;return a(),s("div",ne,[V((a(),L(l,{data:$.value,style:{width:"100%"},height:"65vh","header-cell-style":{background:"#2d2d2d",color:"#fff",border:"none"},"row-style":{background:"#212121",color:"#fff"},"cell-style":{border:"none"}},{default:h(()=>[_(o,{prop:"issue_no",label:b(i)("期号"),width:"180"},null,8,["label"]),_(o,{prop:"day",label:b(i)("开奖时间"),width:"180"},null,8,["label"]),_(o,{label:b(i)("开奖号码")},{default:h(({row:d})=>[c("div",le,[(a(!0),s(x,null,q(P(d.winning_numbers),(n,u)=>(a(),s(x,{key:u},[c("div",re,v(n),1),u<P(d.winning_numbers).length-1?(a(),s("span",ce,"+")):B("",!0)],64))),128)),ue,c("div",ie,v(C(P(d.winning_numbers))),1)])]),_:1},8,["label"]),_(o,{label:b(i)("属性"),width:"300"},{default:h(({row:d})=>[c("div",de,[(a(!0),s(x,null,q(T(d.combo),(n,u)=>(a(),s("div",{class:Q(["combo-tag",j(n)]),key:u},v(n),3))),128))])]),_:1},8,["label"])]),_:1},8,["data"])),[[I,r.value]]),c("div",_e,[_(f,{background:"",layout:"prev, pager, next",total:p.value,"current-page":y.value,"onUpdate:currentPage":t[0]||(t[0]=d=>y.value=d),onCurrentChange:k},null,8,["total","current-page"])])])}}},ge=H(pe,[["__scopeId","data-v-de84302e"]]),me={class:"mark-six-pc-container"},ve={class:"lhc-row"},be={key:0,class:"operator"},fe={class:"lhc-col"},he={class:"lhc-zodiac"},ye={key:0,class:"pagination-wrapper"},ke={__name:"MarkSixComponent",props:{game:{type:String,required:!0},params:{type:Object,default:()=>({})}},setup(m){const{t:i}=M(),N=m,$=g([]),r=g(!1),y=g(1),p=g(0),w=(e=1)=>{r.value=!0;const t={page:e,limit:10,...N.params};W(t).then(o=>{var f,I;const l=((f=o.data)==null?void 0:f.list)||o.data||[];o.code===1&&($.value=l,p.value=((I=o.data)==null?void 0:I.count)||0)}).finally(()=>{r.value=!1})},k=e=>w(e),P=e=>e&&e.length>=16?e.substring(5,16):e||"",C=e=>e?e.split(","):[],T=e=>["马","蛇","龙","兔","虎","牛","鼠","猪","狗","鸡","猴","羊"][(Number(e)-1)%12],j=e=>{const t=Number(e),o=[1,2,7,8,12,13,18,19,23,24,29,30,34,35,40,45,46],l=[3,4,9,10,14,15,20,21,25,26,31,32,36,37,41,42,47,48],f=[5,6,11,16,17,22,27,28,33,38,39,43,44,49];return o.includes(t)?"color-red":l.includes(t)?"color-blue":f.includes(t)?"color-green":""};return z(()=>w()),(e,t)=>{const o=R,l=A,f=E,I=O;return a(),s("div",me,[V((a(),L(l,{data:$.value,height:"65vh",style:{width:"100%"},"header-cell-style":{background:"#2d2d2d",color:"#fff",border:"none"},"row-style":{background:"#212121",color:"#fff"},"cell-style":{border:"none"}},{default:h(()=>[_(o,{prop:"issue",label:b(i)("期号"),width:"180"},null,8,["label"]),_(o,{prop:"open_time",label:b(i)("开奖时间"),width:"200"},{default:h(({row:d})=>[D(v(P(d.open_time)),1)]),_:1},8,["label"]),_(o,{label:b(i)("开奖号码")},{default:h(({row:d})=>[c("div",ve,[(a(!0),s(x,null,q(C(d.open_code),(n,u)=>(a(),s(x,{key:u},[u===C(d.open_code).length-1?(a(),s("span",be,"+")):B("",!0),c("div",fe,[c("div",{class:Q(["lhc-ball",j(n)])},v(n),3),c("span",he,v(T(n)),1)])],64))),128))])]),_:1},8,["label"])]),_:1},8,["data"])),[[I,r.value]]),p.value>0?(a(),s("div",ye,[_(f,{background:"",layout:"prev, pager, next",total:p.value,"current-page":y.value,"onUpdate:currentPage":t[0]||(t[0]=d=>y.value=d),onCurrentChange:k},null,8,["total","current-page"])])):B("",!0)])}}},Ce=H(ke,[["__scopeId","data-v-e3a390b7"]]),$e={class:"racing-pc-container"},we={class:"play-container"},Pe={key:0,class:"blocks-row"},xe={key:1,class:"dice-row"},Ne={key:2,class:"balls-row"},Ie={key:0,class:"tags-row"},qe={class:"pagination-wrapper"},Se={__name:"RacingComponent",props:{game:String,params:{type:Object,default:()=>({})}},setup(m){const{t:i}=M(),N=m,$=g([]),r=g(!1),y=g(1),p=g(0),w=(t=1)=>{r.value=!0,ee({page:t,limit:10,...N.params}).then(o=>{var l,f;o.code===1&&($.value=((l=o.data)==null?void 0:l.list)||o.data||[],p.value=((f=o.data)==null?void 0:f.count)||0)}).finally(()=>{r.value=!1})},k=t=>w(t),P=t=>t&&t.length>=16?t.substring(5,16):t||"",C=t=>t?String(t).split(","):[],T=t=>t?String(t).split(","):[],j=t=>({0:"#f9a826",1:"#e2d230",2:"#2881e1",3:"#4a4a4a",4:"#ff7e00",5:"#10e2e5",6:"#5134ff",7:"#bfbfbf",8:"#ff2600",9:"#780b00",10:"#07bf00"})[Number(t)]||"#e54d42",e=t=>{const o=Number(t);return{1:[0,0,0,0,1,0,0,0,0],2:[1,0,0,0,0,0,0,0,1],3:[1,0,0,0,1,0,0,0,1],4:[1,0,1,0,0,0,1,0,1],5:[1,0,1,0,1,0,1,0,1],6:[1,1,1,0,0,0,1,1,1]}[o]||[0,0,0,0,0,0,0,0,0]};return z(()=>w()),(t,o)=>{const l=R,f=A,I=E,d=O;return a(),s("div",$e,[V((a(),L(f,{data:$.value,style:{width:"100%"},"header-cell-style":{background:"#2d2d2d",color:"#fff",border:"none"},"row-style":{background:"#212121",color:"#fff"},"cell-style":{border:"none"}},{default:h(()=>[_(l,{prop:"issue",label:b(i)("期号"),width:"180"},{default:h(({row:n})=>[D(v(n.issue||n.issue_no),1)]),_:1},8,["label"]),_(l,{prop:"open_time",label:b(i)("开奖时间"),width:"180"},{default:h(({row:n})=>[D(v(P(n.open_time||n.start_time)),1)]),_:1},8,["label"]),_(l,{label:b(i)("开奖号码")},{default:h(({row:n})=>[c("div",we,[C(n.open_code).length>=8?(a(),s("div",Pe,[(a(!0),s(x,null,q(C(n.open_code),(u,S)=>(a(),s("div",{class:"square-block",key:S,style:te({backgroundColor:j(u)})},v(u),5))),128))])):[6,7,12,13].includes(n.type)?(a(),s("div",xe,[(a(!0),s(x,null,q(C(n.open_code).slice(0,3),(u,S)=>(a(),s("div",{class:"dice",key:S},[(a(!0),s(x,null,q(e(u),(U,Z)=>(a(),s("div",{key:Z,class:Q(["dot",{visible:U,"red-dot":U&&(Number(u)===1||Number(u)===4)}])},null,2))),128))]))),128))])):(a(),s("div",Ne,[(a(!0),s(x,null,q(C(n.open_code),(u,S)=>(a(),s("div",{class:"ball",key:S},v(u),1))),128))]))])]),_:1},8,["label"]),_(l,{label:b(i)("属性"),width:"200"},{default:h(({row:n})=>[n.open_code_other?(a(),s("div",Ie,[(a(!0),s(x,null,q(T(n.open_code_other),(u,S)=>(a(),s("div",{class:"combo-tag tag-blue",key:S},v(u),1))),128))])):B("",!0)]),_:1},8,["label"])]),_:1},8,["data"])),[[d,r.value]]),c("div",qe,[_(I,{background:"",layout:"prev, pager, next",total:p.value,"current-page":y.value,"onUpdate:currentPage":o[0]||(o[0]=n=>y.value=n),onCurrentChange:k},null,8,["total","current-page"])])])}}},Le=H(Se,[["__scopeId","data-v-84b70510"]]),Te=m=>(G("data-v-a8e27f6f"),m=m(),F(),m),je={class:"pc-lottery-detail-page"},Be={class:"pc-main-container"},He={class:"page-header"},Me={class:"back-text"},ze={class:"page-title"},De=Te(()=>c("div",{class:"header-right"},null,-1)),Oe={class:"component-container"},Re={key:3,class:"empty-state"},Ae={__name:"LotteryDrawHistory",setup(m){const{t:i}=M(),N=ae(),$=oe(),r=g(""),y=g(""),p=g({}),w=()=>{$.back()};return z(()=>{const k=N.query;if(r.value=k.game||"",y.value=k.name||"",k.params)try{p.value=JSON.parse(decodeURIComponent(k.params)),console.log(p,67)}catch(P){console.error("解析 params 失败:",P)}}),(k,P)=>{const C=K;return a(),s("div",je,[c("div",Be,[c("div",He,[c("div",{class:"header-left",onClick:w},[_(C,{size:20},{default:h(()=>[_(b(J))]),_:1}),c("span",Me,v(b(i)("返回")),1)]),c("h2",ze,v(y.value||"开奖详情"),1),De]),c("div",Oe,[["canada28","jisu28"].includes(r.value)?(a(),L(ge,{key:0,game:r.value,params:p.value},null,8,["game","params"])):r.value==="lhc"?(a(),L(Ce,{key:1,game:r.value,params:p.value},null,8,["game","params"])):r.value==="jisu"?(a(),L(Le,{key:2,game:r.value,params:p.value},null,8,["game","params"])):(a(),s("div",Re,v(b(i)("暂无相关组件")),1))])])])}}},Ge=H(Ae,[["__scopeId","data-v-a8e27f6f"]]);export{Ge as default};
|