2 lines
6.4 KiB
JavaScript
2 lines
6.4 KiB
JavaScript
import{_ as P}from"./InfiniteScroll.609cb5e6.js";import{Q as T}from"./QTab.d417d2c4.js";import{Q as U}from"./QTabs.db0f5e6a.js";import{_ as I,E as j,s as a,C as s,aa as n,F as r,G as t,B as i,v as l,z as v,ac as u,bh as V,A as y,ab as B,U as M,ae as L,r as f,bo as Y,bp as E,w as Q,J as F,t as z,Q as O,D as W,al as G,at as H,bn as J,x as K,au as X,av as Z}from"./index.7df25f12.js";import{Q as ee}from"./QScrollArea.af88a189.js";import{Q as te}from"./QBadge.e1be8624.js";import{M as ae}from"./const.1363c01a.js";import{_ as se}from"./MainPageFooter.764358dd.js";import{u as oe}from"./infiniteScroll.9bc771d1.js";import"./QSpinnerDots.b721c188.js";import"./touch.70a9dd44.js";import"./selection.c52745bf.js";import"./sorry.e0a2c349.js";import"./QResizeObserver.5bd704bf.js";import"./QScrollObserver.e1df987d.js";import"./QRouteTab.6852d7f0.js";import"./QFooter.908d3b7e.js";const re={class:"row justify-between q-py-xs"},ie={class:"text-caption text-grey"},ce={class:"text-caption text-red"},le={class:"row items-center"},ne={class:"col"},me={key:0,class:"row items-center"},de={key:1,class:"row items-center"},_e={class:"col-auto text-red text-center"},ue={class:"text-h6"},he={class:"text-caption q-mt-xs"},pe={key:1,class:"text-h6"},fe={key:1,class:"text-h6"},ye={class:"col"},ve={key:0,class:"row items-center justify-end"},we={key:1,class:"row items-center justify-end"},xe={key:0,class:"row justify-between items-center"},ge={key:0,class:"text-caption text-grey text-left"},be={key:1,class:"text-caption text-grey text-right"},qe={key:1,class:"text-caption q-mt-xs text-center text-red"},ke={__name:"ScoreItem",props:{item:{type:Object},matchType:String},setup(o){const e=o,k=j();return(h,w)=>{const m=M;return a(),s("div",{class:"bg-white q-pa-md",onClick:w[0]||(w[0]=_=>{var p;return v(k).push({path:"/score/detail/"+e.matchType,query:{id:(p=e.item)==null?void 0:p.match_id}})})},[n("div",re,[n("div",ie,[r(t(e.item.issue_num_week)+t(e.item.play_num_view||e.item.play_num)+" ",1),i(te,{color:"indigo-10",rounded:""},{default:l(()=>[r(t(e.item.jc_competition_name),1)]),_:1})]),n("div",ce,[r(t(v(ae)[e.item.match.status])+" ",1),e.item.match.status==0?(a(),s(u,{key:0},[r(t(v(V)(e.item.match.start_time)),1)],64)):(a(),s(u,{key:1},[r(t(v(V)(e.item.match.start_time)),1)],64))])]),n("div",le,[n("div",ne,[e.matchType=="jczq"?(a(),s("div",me,[i(m,{size:"md",class:"q-mr-sm bg-white team-logo",square:"",ratio:"10/13",fit:"contain",src:e.item.match.home_team_logo_url},null,8,["src"]),r(" "+t(e.item.match.home_team_name),1)])):(a(),s("div",de,[i(m,{size:"md",class:"q-mr-sm bg-white team-logo",square:"",ratio:"10/13",fit:"contain",src:e.item.match.away_team_logo_url},null,8,["src"]),r(t(e.item.match.away_team_name),1)]))]),n("div",_e,[e.item.score?(a(),s(u,{key:0},[e.matchType=="jczq"?(a(),s(u,{key:0},[n("div",ue,t(e.item.score.full_time_score||"VS"),1),n("div",he,[e.item.score.half_time_score?(a(),s(u,{key:0},[r("\u4E0A\u534A\u573A")],64)):y("",!0),r(" "+t(e.item.score.half_time_score),1)])],64)):(a(),s("div",pe,t(e.item.score.away_score)+":"+t(e.item.score.home_score),1))],64)):(a(),s("div",fe,"VS"))]),n("div",ye,[e.matchType=="jczq"?(a(),s("div",ve,[r(t(e.item.match.away_team_name)+" ",1),i(m,{size:"md",class:"q-ml-sm bg-white team-logo",square:"",ratio:"10/13",fit:"contain",src:e.item.match.away_team_logo_url},null,8,["src"])])):(a(),s("div",we,[r(t(e.item.match.home_team_name)+" ",1),i(m,{size:"md",class:"q-ml-sm bg-white team-logo",square:"",ratio:"10/13",fit:"contain",src:e.item.match.home_team_logo_url},null,8,["src"])]))])]),e.matchType=="jczq"?(a(),s("div",xe,[o.item.spf_odds?(a(),s("div",ge," \u7ADE\u5F69sp "+t(o.item.spf_odds.win)+" "+t(o.item.spf_odds.draw)+" "+t(o.item.spf_odds.loss),1)):y("",!0),o.item.rq_odds?(a(),s("div",be," \u4E3B("+t(o.item.rq_odds.handicap>0?"+"+o.item.rq_odds.handicap:o.item.rq_odds.handicap||0)+") "+t(o.item.rq_odds.win)+" "+t(o.item.rq_odds.draw)+" "+t(o.item.rq_odds.loss),1)):y("",!0)])):y("",!0),e.matchType=="lq"&&e.item.score?(a(),s("div",qe,[(a(),s(u,null,B(4,_=>n("span",{key:_,class:"q-mx-xs"},t(e.item.score["q"+_+"away_score"])+":"+t(e.item.score["q"+_+"home_score"]),1)),64))])):y("",!0)])}}};var Se=I(ke,[["__scopeId","data-v-5833cbed"]]);const Te=o=>(X("data-v-7100e52a"),o=o(),Z(),o),Ve={class:"row no-wrap text-no-wrap q-pa-xs"},Qe=Te(()=>n("br",null,null,-1)),ze={__name:"IndexPage",setup(o){const e=W();j(),L();const k=f("1"),h=f("jczq"),w=f([]),m=f(Y.formatDate(Date.now(),"YYYY-MM-DD")),_=f(null),p=f(null),{list:C,refresh:q,load:D,scrollRef:R}=oe(x=>G.getMatchList(h.value,{page:x,date:m.value}).then(c=>(w.value=c.dates,{data:c.result})));E(()=>{_.value&&$({target:_.value})}),Q(h,q),Q(m,q);function $(x){let c=x.target.getBoundingClientRect();const g=window.innerWidth;(c.left<=50||c.right+50>=g)&&p.value.setScrollPosition("horizontal",p.value.getScrollPosition().left+c.left-g/2+c.width/2,100)}let S=e.query.t;return F(()=>{e.query.t!=S&&(S=e.query.t,q())}),(x,c)=>{const g=P,A=H("PageLayout");return a(),z(A,{class:"score-page"},{"header-title":l(()=>[i(U,{"indicator-color":"transparent",dense:"",modelValue:h.value,"onUpdate:modelValue":c[0]||(c[0]=d=>h.value=d),"narrow-indicator":"","no-caps":"","active-bg-color":"red-9",class:"tabs-mini"},{default:l(()=>[i(T,{class:"rounded-borders-lg",name:"jczq",label:"\u8DB3\u7403"}),i(T,{class:"rounded-borders-lg",name:"lq",label:"\u7BEE\u7403"})]),_:1},8,["modelValue"])]),"header-right":l(()=>[i(O,{flat:"",dense:"",color:"white",to:{path:"/win/notices",query:{t:Date.now()}}},{default:l(()=>[r(" \u5F00\u5956\u516C\u544A ")]),_:1},8,["to"])]),"header-append":l(()=>[y("",!0)]),footer:l(()=>[i(se)]),default:l(()=>[i(g,{load:v(D),list:v(C),ref_key:"scrollRef",ref:R},{prepend:l(()=>[i(ee,{ref_key:"scrollAreaRef",ref:p,style:{height:"60px"},class:"scroll-area-no-y",visible:!1,"bar-style":{opacity:0},thumbStyle:{width:"0px",opacity:.2,height:"0px"}},{default:l(()=>[n("div",Ve,[(a(!0),s(u,null,B(w.value,(d,N)=>(a(),z(J,{modelValue:m.value,"onUpdate:modelValue":c[2]||(c[2]=b=>m.value=b),key:N,val:d.date,ref_for:!0,ref:b=>{m.value==d.date&&b&&(_.value=b.$el)},class:K(["no-icon q-mx-xs q-py-xs q-px-sm text-center text-caption rounded-borders",m.value===d.date?"bg-primary text-white":"bg-white text-grey-7"])},{default:l(()=>[r(t(d.week_str),1),Qe,r(t(d.date_str),1)]),_:2},1032,["modelValue","val","class"]))),128))])]),_:1},8,["thumbStyle"])]),default:l(({item:d})=>[i(Se,{class:"q-mb-sm",item:d,matchType:h.value},null,8,["item","matchType"])]),_:1},8,["load","list"])]),_:1})}}};var We=I(ze,[["__scopeId","data-v-7100e52a"]]);export{We as default};
|