| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692 |
- <template>
- <div>
- <div v-if="noData">
- <NotOpend :title="this.info"/>
- </div>
- <!-- 足球 -->
- <!-- 让球&大小 -->
- <div class="match" v-if="isShow && wq_show && zlBallShow">
- <div v-for="(item,$index) in letBallData" :key="$index" class="mg">
- <div class="row allAlignment haderBox center">
- <span>{{item.leagueName}}</span>
- <div class="row Match-title-num">
- <span>{{item.matchNum}}</span>
- </div>
- </div>
- <div class="Match-box">
- <div v-for="(itemList,index) in item.matchData" :key="index" @click="matchInfo(itemList.match_id)">
- <div class="row allAlignment Match-box-top">
- <div class="Match-box-top-left">
- <span>{{itemList.match_process}}</span>
- <span class="texttop" v-if="activity == 'StRollBall'">{{itemList.a_time}}</span>
- <span class="texttop" v-if="activity == 'StSoon' && itemList.wait_time > 0">{{itemList.wait_time}}分钟</span>
- <span class="texttop" v-else-if="activity == 'StSoon' && itemList.wait_time < 0">--分钟</span>
- </div>
- <div class="Match-box-top-right row">
- <span style="margin-right: .1rem;" class="Match-box-top-num">{{itemList.tag}}</span>
- <span style="margin-right: .1rem;">让球</span>
- <span style="margin-right: .1rem;">大小</span>
- </div>
- </div>
- <div class="row allAlignment center listbox">
- <div class="column average name-box">
- <div class="box noBox row item-center main-box">
- <span
- v-if="itemList.home_score == '0' || itemList.home_score"
- class="num-box"
- style="color:#eb921e"
- >{{itemList.home_score}}</span>
- <span v-else style="color:#eb921e">{{itemList.home_score}}</span>
- {{itemList.home_team}}
- </div>
- <div class="box noBox row item-center main-box">
- <span
- v-if="itemList.guest_score || itemList.guest_score == '0'"
- class="num-box"
- style="color:#eb921e"
- >{{itemList.guest_score}}</span>
- <span v-else style="color:#eb921e">{{itemList.guest_score}}</span>
- {{itemList.guest_team}}
- </div>
- </div>
- <div class="Match-list-box row item-center average">
- <div class="Match-bottom-right">
- <!-- 主队 -->
- <div class v-for="(items,indexs) in itemList.oddsData[0]" :key="indexs" :class="items.odds == 0?'locking':''" >
- <div v-if="items.odds ">
- <div class v-if="items.odds_code.startsWith('concede')">
- <div>
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="letballHome column center"
- v-if="items.odds_code.endsWith('home')"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.home_team,items.odds,items.condition,items.odds_only,items.odds_code,'homeOdds',items.p_code,items.status,item.lg_id,'让球',items.oddsType)"
- >
- <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- </div>
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="letballGuest column center"
- v-if="items.odds_code.endsWith('guest')"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.home_team,items.odds,items.condition,items.odds_only,items.odds_code,'homeOdds',items.p_code,items.status,item.lg_id,'让球',items.oddsType)"
- >
- <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- </div>
- <div
- v-if="items.odds_code.startsWith('goal')"
- class="row bigSmall"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.guest_team,items.odds,items.condition,items.odds_only,items.odds_code,'guestOdds',items.p_code,items.status,item.lg_id,'大小',items.oddsType)"
- >
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="bigHome column center"
- v-if="items.odds_code.endsWith('big')"
- >
- <div style="color: rgb(247, 102, 73);" class="stardBig" v-if="items.odds > 0">
- <span class="bigSmall">大</span>
- <span v-if="items.condition !='大'">{{items.condition}}</span>
-
- </div>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="bigGuest column center"
- v-if="items.odds_code.endsWith('small')"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.guest_team,items.odds,items.condition,items.odds_only,items.odds_code,'guestOdds',items.p_code,items.status,item.lg_id,'大小',items.oddsType)"
- >
- <div style="color: rgb(247, 102, 73); " class="stardBig" v-if="items.odds > 0">
- <span class="bigSmall">小</span>
- <span v-if="items.condition !='小'">{{items.condition}}</span>
- </div>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- </div>
- <div v-if="items.odds_code.startsWith('total')" class="row bigSmall"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.guest_team,items.odds,items.condition,items.odds_only,items.odds_code,'guestOdds',items.p_code,items.status,item.lg_id,'大小',items.oddsType)"
- >
- <div :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="bigHome column center" v-if="items.odds_code.endsWith('big')">
- <div style="color: rgb(247, 102, 73);" class="stardBig">
- <span class="bigSmall">大</span>
- <span>{{items.condition}}</span>
-
- </div>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="bigGuest column center"
- v-if="items.odds_code.endsWith('small')"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.guest_team,items.odds,items.condition,items.odds_only,items.odds_code,'guestOdds',items.p_code,items.status,item.lg_id,'大小',items.oddsType)"
- >
- <div style="color: rgb(247, 102, 73); " class="stardBig" v-if="items.odds > 0">
- <span class="bigSmall">小</span>
- <span>{{items.condition}}</span>
- </div>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 1x2 -->
- <div v-if="!isShow && !ishow && wq_show">
- <div v-for="(item,$index) in letBallData" :key="item.id" @click="bettingChange()">
- <div class="row allAlignment haderBox center">
- <span>{{item.leagueName}}</span>
- <div class="Match-title-num">
- <span>{{item.matchNum}}</span>
- </div>
- </div>
- <div
- v-for="(itemList,idx) in item.matchData"
- :key="idx"
- @click="matchInfo(itemList.match_id)"
- >
- <div class="box noPd">
- <div class="row allAlignment item-center top-box">
- <span>
- <span>{{itemList.match_process}}</span>
- <span class="texttop" v-if="activity == 'StRollBall'">{{itemList.a_time}}</span>
- <span class="texttop" v-if="activity == 'StSoon' && itemList.wait_time > 0">{{itemList.wait_time}}分钟</span>
- <span class="texttop" v-else-if="activity == 'StSoon' && itemList.wait_time < 0">--分钟</span>
- </span>
- <span class="top-num">{{itemList.tag}}</span>
- </div>
- </div>
- <div class="box-bottom">
- <div class="box row item-center main-box">
- <span
- v-if="itemList.home_score == '0' || itemList.home_score"
- class="num-box"
- style="color:#eb921e"
- >{{itemList.home_score}}</span>
- <span v-else style="color:#eb921e">{{itemList.home_score}}</span>
- {{itemList.home_team}}
- </div>
- <div class="box row item-center main-box">
- <span
- v-if="itemList.guest_score || itemList.guest_score == '0'"
- class="num-box"
- style="color:#eb921e"
- >{{itemList.guest_score}}</span>
- <span v-else style="color:#eb921e">{{itemList.guest_score}}</span>
- {{itemList.guest_team}}
- </div>
- <div class="footBox" style="position:relative">
- <div class="box row allAlignment bottom-box center" v-for="(items,i) in itemList.oddsData[1]"
- :key="i" v-if="items != null">
- <div v-if="items.condition == 1" class="item-center bottom-num stardLeft"
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- @click.stop="isClick($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.guest_team,items.odds,items.condition,items.odds_only,items.odds_code,'capot',items.p_code,items.oddsType,item.lg_id,'1X2')"
- >
- <p style="color:#eb921e">{{items.condition}}</p>
- <p>{{items.odds}}</p>
- </div>
- <div v-if="items.condition == 'X'" class="item-center bottom-num stardCenter"
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- @click.stop="isClick($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.guest_team,items.odds,items.condition,items.odds_only,items.odds_code,'capot',items.p_code,items.oddsType,item.lg_id,'1X2')"
- >
- <p style="color:#eb921e">{{items.condition}}</p>
- <p>{{items.odds}}</p>
- </div>
- <div v-if="items.condition == 2" class="item-center bottom-num stardRight"
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- @click.stop="isClick($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.guest_team,items.odds,items.condition,items.odds_only,items.odds_code,'capot',items.p_code,items.oddsType,item.lg_id,'1X2')"
- >
- <p style="color:#eb921e">{{items.condition}}</p>
- <p>{{items.odds}}</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 篮球 -->
- <div class="match" v-if="isShow && wq_show && !zlBallShow">
- <div v-for="(item,$index) in letBallData" :key="$index" class="mg">
- <div class="row allAlignment haderBox center">
- <span>{{item.leagueName}}</span>
- <div class="row Match-title-num">
- <span>{{item.matchNum}}</span>
- </div>
- </div>
- <div class="Match-box">
- <div
- v-for="(itemList,index) in item.matchData"
- :key="index"
- @click="matchInfo(itemList.match_id)"
- >
- <div class="row allAlignment Match-box-top">
- <div class="Match-box-top-left">
- <span>{{itemList.match_process}}</span>
- <span class="texttop" v-if="activity == 'StRollBall'">{{itemList.wait_time}}</span>
- <span class="texttop" v-if="activity == 'StSoon' && itemList.wait_time > 0">{{itemList.wait_time}}分钟</span>
- <span class="texttop" v-else-if="activity == 'StSoon' && itemList.wait_time < 0">--分钟</span>
- </div>
- <div class="Match-box-top-right row">
- <span style="margin-right: .1rem;" class="Match-box-top-num">{{itemList.tag}}</span>
- <span style="margin-right: .1rem;">让球</span>
- <span style="margin-right: .1rem;">大小</span>
- </div>
- </div>
- <div class="row allAlignment center listbox">
- <div class="column average name-box">
- <div class="box noBox row item-center main-box">
- <span
- v-if="itemList.home_score == '0' || itemList.home_score"
- class="num-box"
- style="color:#eb921e"
- >{{itemList.home_score}}</span>
- <span v-else style="color:#eb921e">{{itemList.home_score}}</span>
- {{itemList.home_team}}
- </div>
- <div class="box noBox row item-center main-box">
- <span
- v-if="itemList.guest_score || itemList.guest_score == '0'"
- class="num-box"
- style="color:#eb921e"
- >{{itemList.guest_score}}</span>
- <span v-else style="color:#eb921e">{{itemList.guest_score}}</span>
- {{itemList.guest_team}}
- </div>
- </div>
- <div class="Match-list-box row item-center average">
- <div class="Match-bottom-right">
- <!-- 主队 -->
- <div class v-for="(items,idx) in itemList.oddsData[0]" :key="idx">
- <div v-if="items != null">
- <div class v-if="items.odds_code.startsWith('concede')">
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="letballHome column center"
- v-if="items.odds_code.endsWith('home')"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.home_team,items.odds,items.condition,items.odds_only,items.odds_code,'concede',items.p_code,items.status,item.lg_id,'让球',items.oddsType)"
- >
- <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="letballGuest column center"
- v-if="items.odds_code.endsWith('guest')"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.home_team,items.odds,items.condition,items.odds_only,items.odds_code,'concede',items.p_code,items.status,item.lg_id,'让球',items.oddsType)"
- >
- <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- </div>
- <div class="row bigSmall" v-if="items.odds_code.startsWith('total')">
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="bigHome column center"
- v-if="items.odds_code.endsWith('big')"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.home_team,items.odds,items.condition,items.odds_only,items.odds_code,'total_size',items.p_code,items.status,item.lg_id,'大小',items.oddsType)"
- >
- <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="bigGuest column center"
- v-if="items.odds_code.endsWith('small')"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.home_team,items.odds,items.condition,items.odds_only,items.odds_code,'total_size',items.p_code,items.status,item.lg_id,'大小',items.oddsType)"
- >
- <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 独赢盘 -->
- <div class="match" v-if="!isShow && ishow && wq_show">
- <div v-for="(item,$index) in letBallData" :key="$index" class="mg">
- <div class="row allAlignment letBallBox center">
- <span>{{item.leagueName}}</span>
- <div class="row Match-title-num">
- <span>{{item.matchNum}}</span>
- </div>
- </div>
- <div class="Match-box">
- <div
- v-for="(itemList,index) in item.matchData"
- :key="index"
- class="Match-box"
- @click="matchInfo(itemList.match_id)"
- >
- <div class="row allAlignment Match-box-top">
- <div class="Match-box-top-left">
- <span class="texttop" v-if="activity == 'StRollBall'">{{itemList.a_time}}</span>
- <span class="texttop" v-if="activity == 'StSoon' && itemList.wait_time > 0">{{itemList.wait_time}}分钟</span>
- <span class="texttop" v-else-if="activity == 'StSoon' && itemList.wait_time < 0">--分钟</span>
- </div>
- <div class="Match-box-top-right row">
- <span style="margin-right: .1rem;" class="Match-box-top-num">{{itemList.tag}}</span>
- <span style="margin-right: .1rem;">独赢盘</span>
- </div>
- </div>
- <div class="row allAlignment center listbox">
- <div class="column average name-box">
- <div>{{itemList.home_team}}</div>
- <div>{{itemList.guest_team}}</div>
- </div>
- <div class="Match-list-box row item-center average">
- <div class="Match-bottom-right" style="width:1.3rem;">
- <!-- 主队 -->
- <div class="capotBox">
- <div
- class="Match-list-left"
- v-for="(items,indexs) in itemList.oddsData[1]"
- :key="indexs"
-
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.home_team,items.odds,items.condition,items.odds_only,items.odds_code,'capot',items.p_code,items.status,item.lg_id,'独赢盘',items.oddsType)"
- >
- <div :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}" class="column center">
- <span style="color:#f76649">{{items.condition}}</span>
- <span>{{items.odds}}</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 如过是网球则显示 -->
- <div class="match" v-if="isShow && !wq_show">
- <div v-for="(item,$index) in letBallData" :key="$index" class="mg">
- <!-- <div v-for="items in list[index]" :key="items.id"> -->
- <div class="row allAlignment letBallBox center">
- <span>{{item.leagueName}}</span>
- <div class="row Match-title-num">
- <span>{{item.matchNum}}</span>
- </div>
- </div>
- <div class="Match-box">
- <div
- v-for="(itemList,index) in item.matchData"
- :key="index"
- class="Match-box"
- @click="matchInfo(itemList.match_id)"
- >
- <div class="row allAlignment Match-box-top">
- <div class="Match-box-top-left">
- <!-- <span>{{itemList.match_date}}</span> -->
- <span class="texttop">{{itemList.match_process}}</span>
- <span class="texttop" v-if="activity == 'StRollBall'">{{itemList.a_time}}</span>
- <span class="texttop" v-if="activity == 'StSoon' && itemList.wait_time > 0">{{itemList.wait_time}}分钟</span>
- <span class="texttop" v-else-if="activity == 'StSoon' && itemList.wait_time < 0">--分钟</span>
- </div>
- <div class="Match-box-top-right row">
- <span style="margin-right: .1rem;" class="Match-box-top-num">{{itemList.tag}}</span>
- <span style="margin-right: .1rem;">独赢盘</span>
- <span style="margin-right: .1rem;">让盘</span>
- </div>
- </div>
- <div class="row allAlignment center listbox">
- <div class="column average name-box">
- <div>{{itemList.home_team}}</div>
- <div>{{itemList.guest_team}}</div>
- </div>
- <div class="Match-list-box row item-center average">
- <div class="Match-bottom-right">
- <!-- 主队 -->
- <div class v-for="(items,indexs) in itemList.oddsData" :key="indexs">
- <div v-if="items.odds">
- <div class v-if="items.odds_code.startsWith('kemp')">
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="letballHome column center"
- v-if="items.odds_code.endsWith('home')"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.home_team,items.odds,items.condition,items.odds_only,items.odds_code,'kemp',items.p_code,items.status,item.lg_id,'独赢盘',items.oddsType)"
- >
- <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="letballGuest column center"
- v-if="items.odds_code.endsWith('guest')"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.home_team,items.odds,items.condition,items.odds_only,items.odds_code,'kemp',items.p_code,items.status,item.lg_id,'独赢盘',items.oddsType)"
- >
- <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- </div>
- <div
- v-if="items.odds_code.startsWith('dishes')"
- class="row bigSmall"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.guest_team,items.odds,items.condition,items.odds_only,items.odds_code,'dishes_home',items.p_code,items.status,item.lg_id,'让盘',items.oddsType)"
- >
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="bigHome column center"
- v-if="items.odds_code.endsWith('guest')"
- >
- <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="bigGuest column center"
- v-if="items.odds_code.endsWith('home')"
- @click.stop="isBetting($index,itemList.match_id,items.id,itemList.home_team,itemList.guest_team,itemList.guest_team,items.odds,items.condition,items.odds_only,items.odds_code,'dishes_home',items.p_code,items.status,item.lg_id,'让盘',items.oddsType)"
- >
- <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
- <span v-if="items.odds >0" >{{items.odds}}</span>
- <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div v-if="isBettingWindow == '100'">
- <BettingWindow/>
- </div>
- </div>
- </template>
- <script>
- import Bus from "../assets/bus.js";
- import NotOpend from "@/components/StNotOpend";
- import BettingWindow from "@/components/StBettingWindow";
- export default {
- props: ["gameCode", "name", "ishow"],
- components: { NotOpend, BettingWindow },
- data() {
- return {
- show: false, //暂时状态
- isShow: true,
- noData: true, //显示暂无数据
- wq_show: true, //是否为棒球与网球,是则不显示
- info: "没有相关比赛信息",
- status: false,
- isBettingWindow: -1, //投注组件隐藏
- isAjax: false, //开关
- list: [],
- letBallData: [], //让球大小和1X2数据
- timers: true,
- activity: "",
- betting: [], //vuex里面玩法投注数据
- thisNum: 10000, //vuex里面
- index: "", //
- data: "", //玩法赔率数据源
- getIsShow: true,
- score: "0", //比分
- actydy: "", // 切换独赢状态BUG
- ball: this.$store.getters.getBallId, // 球类bm
- zlBallShow: true, //显示足球还是篮球
- previousStorage:[],
- wqPreviousStorage :[]
- };
- },
- /**
- * 函数方法
- */
- methods: {
- matchInfo(id) {
- this.$router.push({
- path: "/StRollBallBettingPage",
- query: {
- gameCode: this.$store.getters.getBallId,
- number: 1,
- home: true,
- name: this.name
- }
- });
- this.$store.dispatch("MACTH_ID", id);
- },
- //打开联赛投注页面
- goMatchInfo: function() {
- let ball = this.$store.getters.getBallId;
- // this.$store.dispatch("GETSHOW", true);
- Bus.$on("show", data => {
- this.isShow = data;
- if (this.isShow == false && this.ishow == true) {
- this.actydy = true;
- } else {
- this.actydy = false;
- }
- // // 暂时注释,有BUG
- // if (ball == "wq" || ball == "zq") {
-
- // } else {
-
- // // for(var i = 0; i < this.letBallData.length; i++){
- // // this.letBallData[i].matchData.forEach(val =>{
- // // // console.log('val',val)
- // // if(val.oddsData[0].homeOdds || val.oddsData[0].guestOdds){
- // // val.oddsData = [];
- // // }
- // // })
- // // this.dataGroup(this.letBallData[i],i)
- // // }
- // }
- });
- },
- getAjax: function(game_code, type_code) {
- if (!game_code || !type_code) return false;
- this.$http
- .get(this.$ports.match.matchState, { game_code, type_code })
- .then(res => {
- //console.log('数据结构',res.data.data);
- this.isAjax = true;
- if (
- res.data.status == 1 &&
- res.data.data.length > 0 &&
- res.data != null
- ) {
- this.letBallData = res.data.data;
- // console.log(this.letBallData)
- this.noData = false;
- //让球大小组合
- // for (var i = 0; i < res.data.data.length; i++) {
- this.dataGroup(this.letBallData);
- // }
- // //滚球比赛时间倒计时
- // if (this.activity == "StRollBall" && this.ball == 'zq') {
- // let _this = this;
- // _this.letBallData.forEach(val => {
- // val.matchData.forEach(e => {
- // if(e.a_time){
- // let [f, s] = e.a_time.split(":");
- // if (e.a_time != "") {
- // let [f, s] = e.a_time.split(":");
- // this.$public.timer(f, s, function(f, s) {
- // e.a_time = f + ":" + s;
- // });
- // }
- // }
- // });
- // });
- // }
- } else {
- // 是否显示组件
- this.noData = true;
- //console.log('data',this.noData)
- // 每次更新数据没有数据时则置空。
- this.letBallData = [];
- }
- });
- let _this = this;
- setTimeout(() => {
- _this.$store.dispatch("GETSHOW", false);
- }, 1000);
- },
- /*--------------------------------------------------------------------------------*/
- // 添加、删除vuex投注数据公共方法
- AddDelete: function(array, $index, type) {
- let bettingInfo = array;
- let isAdd = true,isNew=true;
- let matchList = this.$store.getters.getBetting;
- let ball = this.$store.getters.getBallId;
- //添加新的玩法赔率数据
- let obj = {
- title:bettingInfo.p_code,
- data: [bettingInfo]
- };
- if(matchList != null){
- for(let i = 0; i < matchList.length;i++){
- if(matchList[i].title == bettingInfo.p_code){
- //删除vuex投注数据
- // console.log(matchList[i].data)
- matchList[i].data.forEach((res, index) => {
-
- // console.log(res.id,id)
- if (res.id == array.id) {
- matchList[i].data.splice(index, 1);
- this.$store.dispatch("SET_LIMIT", false);
- this.$store.dispatch("BETTING", []);
- this.$store.dispatch("BETTING", matchList);
- isAdd = false;
- isNew = false;
- //处理当前页面样式
- this.modifyStyle($index, array.id,type);
- }
- });
- //添加vuex投注数据
- if (isAdd){
- isNew = false;
- if (this.$store.getters.getLimit * 1 >= 10) return false;
- //处理当前页面样式
- this.modifyStyle($index, array.id, type);
- matchList[i].data.push(bettingInfo);
- this.$store.dispatch("BETTING",[]);
- this.$store.dispatch("BETTING",matchList);
- if (this.$store.getters.getIsBetting == "100") return false;
- this.$store.dispatch("ISBETTING",100);
- }
- break;
- }
- }
- if(isNew){
- matchList.push(obj)
- this.$store.dispatch("BETTING",[]);
- this.$store.dispatch("BETTING",matchList);
- this.modifyStyle($index, array.id, type);
- if (this.$store.getters.getIsBetting == "100") return false;
- this.$store.dispatch("ISBETTING", "100");
- }
- }else{
- this.$store.dispatch("BETTING",[obj]);
- this.modifyStyle($index, array.id, type);
- if (this.$store.getters.getIsBetting == "100") return false;
- this.$store.dispatch("ISBETTING", "100");
- }
- },
- /*--------------------------------------------------------------------------------*/
- //修改当前页面样式公共方法
- modifyStyle: function($index, id, type) {
- let ball = this.$store.getters.getBallId;
- this.letBallData[$index].matchData.every((e, i) => {
- let ret = false;
- if(ball == 'lq'){
- if(type == 'concede'){
- e.oddsData[0].forEach((res,index) =>{
- if(res != null){
- if(res.id == id){
- this.$forceUpdate();
- this.$set(res,'isTrue',res.isTrue ? false : true)
- }
- }
- })
- }else if(type =='total_size'){
- e.oddsData[0].forEach((res,index) =>{
- if(res.id == id){
- // console.log('id',res.id,id)
- this.$forceUpdate();
- this.$set(res,'isTrue',res.isTrue ? false : true)
- }
- })
- }else if(type == 'capot'){
- e.oddsData[1].forEach((res,index) =>{
- if(res.id == id){
- this.$forceUpdate();
- this.$set(res,'isTrue',res.isTrue ? false : true)
- }
- })
- }
-
- }else{
- if (type == "homeOdds") {
- e.oddsData[0].every((res, index) => {
- if (res.id == id) {
- this.$forceUpdate();
- this.$set(res, "isTrue", res.isTrue ? false : true);
- ret = true;
- return false;
- }
- return true;
- });
- } else if (type == "guestOdds") {
- e.oddsData[0].every((res, index) => {
- if (res.id == id) {
- this.$forceUpdate();
- this.$set(res, "isTrue", res.isTrue ? false : true);
- ret = true;
- return false;
- }
- return true;
- });
- } else if (type == "capot") {
- e.oddsData[1].every((res, index) => {
- if (res.id == id) {
- this.$forceUpdate();
- this.$set(res, "isTrue", res.isTrue ? false : true);
- ret = true;
- return false;
- }
- return true;
- });
- }else if(type == 'kemp'){
- e.oddsData.every((res,index) =>{
- if(res.id == id){
- this.$forceUpdate();
- this.$set(res,'isTrue',res.isTrue ? false : true);
- ret = true;
- return false;
- }
- return true;
- })
- }else if(type == 'dishes_home'){
- e.oddsData.forEach((res,index) =>{
- if(res.id == id){
- this.$forceUpdate();
- this.$set(res,'isTrue',res.isTrue ? false : true)
- }
- })
- }
- }
- if (ret) {
- return false;
- } else {
- return true;
- }
- });
- },
- /*--------------------------------------------------------------------------------*/
- // 修改投注样式
- isBetting(
- $index,
- match_id,
- id,
- home,
- guest,
- name,
- odds,
- condition,
- odds_only,
- odds_code,
- type,
- p_code,
- status,
- lg_id,
- play_name,
- oddsType
- ) {
- let ball = this.$store.getters.getBallId;
- let bettingInfo = {};
- if(odds > 0){
- let bettingInfo = {
- id,
- home_team: home,
- guest_team: guest,
- name,
- odds,
- match_id,
- condition,
- ballId: this.$store.getters.getBallId,
- odds_code: odds_code,
- p_code: p_code,
- play_name,
- score: this.score,
- bettingTime: "",
- odds_only,
- lg_id,
- oddsType
- };
-
- this.AddDelete(bettingInfo, $index, type);
- if (this.$store.getters.getLimit * 1 >= 10) {
- this.$dialog.alert({ mes: "你的注单已达到上限啦!" });
- }
- }
- },
- /*--------------------------------------------- */
- //让球大小数据组合
- dataGroup: function(data) {
- let ball = this.$store.getters.getBallId;
- data.forEach(item =>{
- item.matchData.forEach((column, index) => {
- if (this.$store.getters.getBallId == "wq") {
- column.oddsData.forEach(val =>{
- if(this.betting.length > 0){
- this.betting.forEach(e => {
- e.forEach(item =>{
- if (val.id == item.id) {
- this.$set(val, "isTrue", true);
- }
- })
- });
- }
- })
- }else {
- if(Array.isArray(column.oddsData[1]) == true){
- column.oddsData[1].forEach(val => {
- if (this.betting.length >0) {
- this.betting.forEach(e => {
- e.forEach(item =>{
- if (val.id == item.id) {
- this.$forceUpdate();
- this.$set(val, "isTrue", true);
- }
- })
- });
- }
- });
- }
- if(Array.isArray(column.oddsData[0]) == true){
- column.oddsData[0].forEach(val => {
- if(val != null){
- if (this.betting.length >0) {
- this.betting.forEach(e => {
- e.forEach(item =>{
- if (val.id == item.id) {
- this.$forceUpdate();
- this.$set(val, "isTrue", true);
- }
- })
- });
- }
- }
- });
- }
- }
- });
- })
- // 数据更新切换样式
- let storage = this.previousStorage;
- let wqStorage = this.wqPreviousStorage;
- // console.log('a',storage)
- // console.log('222',storage)
- if(storage && storage != null && storage != '' && storage.length > 0 ){
- if(ball == 'zq' || ball == 'lq' || ball == 'bq'){
- // let dataa = data;
- data.forEach(itemList =>{
- itemList.matchData.forEach((e,idx) =>{
- e.oddsData.forEach(item =>{
- if(item.length > 0){
- item.forEach((list,index) =>{
- if(list != null){
- storage.forEach((a,i) =>{
-
- a.forEach(b =>{
- b.forEach(k =>{
- if(k != null){
- if(list.id == k.id){
- if(list.odds > k.odds){
- // console.log("1")
- list.change = 'add'
- }else if(list.odds < k.odds){
- // console.log("2")
- list.change = 'red';
- }
- else if(list.odds == k.odds){
- // console.log("3")
- list.change = '';
- }
- }
- }
- })
- })
- // a.splice(i,1)
- })
- }
- })
- }
- // item.splice(idx,1)
- })
- })
- })
- }
- }else if(wqStorage && wqStorage != null && wqStorage != '' && wqStorage.length > 0 ){
- if(ball == 'wq'){
- data.forEach(list =>{
- list.matchData.forEach(e =>{
- e.oddsData.forEach(item =>{
- wqStorage.forEach(a =>{
- a.forEach(b =>{
- if(item.id == b.id){
- if(item.odds > b.odds){
- item.change = 'add'
- }else if(item.odds < b.odds){
- item.change = 'red';
- }else{
- item.change = '';
- }
- }
- })
- })
- })
- })
- })
- }
- }
- this.previousStorage = [];
- this.wqPreviousStorage = [];
- if(ball =='lq' || ball =='zq' || ball =='bq'){
- data.forEach(list =>{
- list.matchData.forEach(k =>{
- this.previousStorage.push(k.oddsData)
- })
- })
- }else{
- data.forEach(res =>{
- res.matchData.forEach(k =>{
- this.wqPreviousStorage.push(k.oddsData)
- })
- })
- }
- this.$store.dispatch('GETGAMERATIO',data)
- // console.log("处理数据", this.letBallData);
- },
- /*---------------------------------------------*/
- //
- isClick(
- $index,
- match_id,
- id,
- home,
- guest,
- name,
- odds,
- condition,
- odds_only,
- odds_code,
- type,
- p_code,
- oddsType
- ) {
- let bettingInfo = {
- id,
- home_team: home,
- guest_team: guest,
- name,
- odds,
- match_id,
- condition,
- ballId: this.$store.getters.getBallId,
- odds_code: odds_code,
- p_code: p_code,
- play_name: "1X2",
- score: this.score,
- bettingTime: "",
- odds_only,
- oddsType
- };
- this.AddDelete(bettingInfo, $index, type);
- if (this.$store.getters.getLimit * 1 >= 10) {
- this.$dialog.alert({ mes: "你的注单已达到上限啦!" });
- }
- },
- /*---------------------------------------------*/
- //
- bettingChange() {
- // this.isBettingWindow = '100';
- }
- /*---------------------------------------------*/
- },
- /**
- * 计算属性
- */
- computed: {
- // 监听vuex状态值的改变
- getInfo: function() {
- return {
- game_code: this.$store.getters.getBallId,
- type_code: this.$store.getters.getActivity
- };
- },
- getIsBetting: function() {
- return this.$store.getters.getIsBetting;
- },
- // // 获取滚动状态
- // getscorllcode() {
- // return this.$public.getCache("box_size");
- // },
- // getBetting() {
- // return this.$store.getters.getBetting;
- // },
- //获取投注框删除的投注信息
- getDeleteType() {
- return this.$store.getters.getDeleteType;
- },
- getActivity: function() {
- return this.$store.getters.getActivity;
- }
- },
- watch: {
- getActivity(val) {
- this.activity = val;
- },
- /*--------------------------------- */
- getInfo(obj) {
- let getBetting = this.$store.getters.getBetting;
- // console.log('111',getBetting)
- this.betting = [];
- if(getBetting){
- if(obj.game_code == 'zq'){
- getBetting.forEach((e,index) =>{
- if('concede' == e.title || 'goal_size' == e.title || 'capot' == e.title){
- this.betting.push(e.data);
- }
- })
- // console.log('zq',this.betting)
- }else if(obj.game_code == 'lq'){
- getBetting.forEach((e,index) =>{
- if('concede' == e.title || 'total_size' == e.title){
- this.betting.push(e.data);
- }
- })
- }else if(obj.game_code == 'bq'){
- getBetting.forEach((e,index) =>{
- if('capot' == e.title || 'concede' == e.title || 'total_size' == e.title){
- this.betting.push(e.data);
- }
- })
- }else if(obj.game_code == 'wq'){
- getBetting.forEach((e,index) =>{
- if('dishes' == e.title || 'kemp' == e.title){
- this.betting.push(e.data);
- }
- })
- }
- }
- //console.log("obj.game_code", obj.game_code);
- let getActivity = this.$store.getters.getActivity;
- this.goMatchInfo();
- // if (getActivity == "StSoon" || getActivity == "StRollBall") {
- // if (this.isAjax) {
- this.$store.dispatch("GETSHOW", true);
- this.letBallData = [];
- this.getAjax(obj.game_code, obj.type_code);
- // }
- // }
- if (obj.game_code == "zq") {
- this.zlBallShow = true;
- } else if (obj.game_code == "lq") {
- this.zlBallShow = false;
- }
- if (obj.game_code == "lq" || obj.game_code == "bq") {
- this.ishow = true;
- }
- if (obj.game_code == "wq") {
- //this.rShow = false;
- this.isShow = true;
- this.wq_show = false;
- } else {
- //this.rShow = true;
- this.wq_show = true;
- }
- },
- /*-------------------------------------*/
- // 监听投注框开关
- getIsBetting(val) {
- this.isBettingWindow = val;
- },
- getDeleteType(val) {
- let flag = true;
- // 下标问题
- let ball = this.$store.getters.getBallId;
- //("matchData", this.letBallData);
- this.letBallData.forEach((item, index) => {
- //console.log("item", item);
- item.matchData.forEach(e => {
- if (val == "all") {
- if(ball == 'lq'){
- e.oddsData[0].forEach(data =>{
- this.$set(data, "isTrue", false);
- })
- // e.oddsData[0].total_size.forEach(data =>{
- // this.$set(data, "isTrue", false);
- // })
- }else if(ball == 'wq'){
- e.oddsData.forEach(data =>{
- this.$set(data,'isTrue',false);
- })
- }
- else{
- e.oddsData[0].forEach(data => {
- this.$set(data, "isTrue", false);
- });
- e.oddsData[0].forEach(data => {
- this.$set(data, "isTrue", false);
- });
- e.oddsData[1].forEach(data => {
- this.$set(data, "isTrue", false);
- });
- }
- } else {
- let showData = true;
- if(ball == 'lq'){
- e.oddsData[0].forEach(data => {
- if (data.id == val) {
- this.$set(data, "isTrue", false);
- showData = false;
- }
- });
- // e.oddsData[0].total_size.forEach(data => {
- // if (data.id == val) {
- // this.$set(data, "isTrue", false);
- // showData = false;
- // }
- // });
- if (showData) {
- e.oddsData[0].forEach(data => {
- if (data.id == val) {
- this.$set(data, "isTrue", false);
- }
- });
- // e.oddsData[0].total_size.forEach(data => {
- // if (data.id == val) {
- // this.$set(data, "isTrue", false);
- // }
- // });
- }
- }else if(ball == 'wq'){
- e.oddsData.forEach(data =>{
- this.$set(data,'isTrue',false);
- })
- }
- else{
- e.oddsData[0].forEach(data => {
- if (data.id == val) {
- this.$set(data, "isTrue", false);
- showData = false;
- }
- });
- if (this.isShow == false && this.$store.getters.getBallId == "zq" || ball == 'bq') {
- e.oddsData[1].forEach(data => {
- if (data.id == val) {
- this.$set(data, "isTrue", false);
- showData = false;
- }
- });
- }
- if (showData) {
- e.oddsData[0].forEach(data => {
- if (data.id == val) {
- this.$set(data, "isTrue", false);
- }
- });
- }
- }
- }
- });
- });
- },
- /*--------------------------------------------------------------------------------*/
- /*--------------------------------------------------------------------------------*/
- },
- mounted() {
- // 调用bus传值
- this.goMatchInfo();
- //console.log("ssa", 123);
- this.activity = this.$store.getters.getActivity;
- let _this = this;
- let getters = this.$store.getters;
- if(getters.getBallId == 'wq'){
- this.wq_show = false;
- }
- // 获取是否滑动信息
- if (this.$public.getCache("box_size") == 1) {
- this.isshrink = true;
- }
- //是否展示投注框
- if (getters.getIsBetting == "100") {
- this.isBettingWindow = 100;
- }
- //获取vuex玩法已投注相对应的数据
- let getBetting = this.$store.getters.getBetting;
- let ball = this.$store.getters.getBallId;
- if(getBetting){
- if(ball == 'zq'){
- getBetting.forEach((e,index) =>{
- if('concede' == e.title || 'goal_size' == e.title || 'capot' == e.title){
- this.betting.push(e.data);
- }
- })
- }else if(ball == 'lq'){
- getBetting.forEach((e,index) =>{
- if('concede' == e.title || 'total_size' == e.title){
- this.betting.push(e.data);
- }
- })
- }else if(ball == 'bq'){
- getBetting.forEach((e,index) =>{
- if('capot' == e.title || 'concede' == e.title || 'total_size' == e.title){
- this.betting.push(e.data);
- }
- })
- }else if(ball == 'wq'){
- getBetting.forEach((e,index) =>{
- if('dishes' == e.title || 'kemp' == e.title){
- this.betting.push(e.data);
- }
- })
- }
- }
- if (this.getIsShow) {
- this.$store.dispatch("GETSHOW", true);
- this.getIsShow = false;
- }
- this.getAjax(ball,this.activity);
- this.$public.ajaxTimerFun(function(timing) {
- if (_this.timers) {
- _this.getAjax(getters.getBallId, getters.getActivity);
- } else {
- clearInterval(timing);
- }
- }, 1000 * 10);
- },
- beforeDestroy() {
- this.timers = false;
- }
- };
- </script>
- <style scoped>
- .yd-cell-box .yd-cell {
- z-index: 99;
- border-radius: 0.2rem;
- }
- .matchBox {
- background: #f9f9f9;
- padding: 0.27rem 0.34rem 0 0.32rem;
- }
- .match .tit {
- display: flex;
- justify-content: space-between;
- font-size: 0.32rem;
- margin-bottom: 0.3rem;
- }
- .match .list {
- overflow: hidden;
- transition: all 0.3s cubic-bezier(0.4, 0.6, 0.2, 1);
- }
- .match .list div {
- background: #dcdcdc;
- width: 100%;
- height: 0.88rem;
- padding: 0.26rem 0.56rem 0.3rem 0.3rem;
- display: flex;
- justify-content: space-between;
- border-radius: 0.08rem;
- margin-bottom: 0.12rem;
- }
- .match .list span {
- color: #333333;
- font-size: 0.28rem;
- }
- .match .list .num {
- width: 0.4rem;
- height: 0.4rem;
- display: inline-block;
- line-height: 0.4rem;
- text-align: center;
- color: #f5f5f5;
- border-radius: 50%;
- font-size: 0.2rem;
- background: #f76649;
- }
- .yd-accordion {
- background: transparent;
- }
- .match .list div:nth-last-child(1) {
- margin-bottom: 0.34rem;
- }
- div /deep/ .yd-accordion-head,
- div /deep/ .yd-accordion-head-content,
- div /deep/ .yd-accordion-title,
- div /deep/ .yd-accordion-title-full {
- height: 0.3rem;
- }
- div /deep/ .yd-accordion-title {
- min-height: 0;
- font-size: 0.28rem;
- }
- div /deep/ .yd-accordion-head {
- margin-bottom: 0.3rem;
- border: none;
- }
- .list-box {
- border: 2px solid #cecece;
- border-radius: 0.2rem;
- }
- div /deep/ .yd-accordion-head:after {
- height: 0px;
- }
- div /deep/ .yd-accordion-head-arrow:after {
- border: none;
- width: 0.4rem;
- height: 0.4rem;
- background: url("../assets/st-imges/xiangxia.png") no-repeat;
- background-size: 0.4rem 0.4rem;
- }
- /* 1x2 */
- .top-box {
- height: 0.45rem;
- /* font-size: 0.24rem;
- background: #fff; */
- border-bottom: 1px solid #e4e4e4;
- padding: 0 0.32rem;
- /* line-height: 0.44rem; */
- background: #dcdcdc;
- font-size: 0.23rem;
- }
- .box-bottom {
- padding: 0.1rem 0.32rem;
- background: #f8f8f8;
- }
- .top-num {
- display: inline-block;
- width: 0.64rem;
- height: 0.44rem;
- line-height: 0.44rem;
- color: #000000;
- text-align: center;
- background: #ebebeb;
- font-size: 0.24rem;
- }
- .noPd {
- padding: 0;
- }
- .noBox {
- padding: 0;
- background: #f4f4f4;
- }
- .Match-title-num {
- width: 0.46rem;
- height: 0.46rem;
- line-height: 0.46rem;
- text-align: center;
- background: #f76649;
- font-size: 0.26rem;
- border-radius: 50%;
- color: #e4e4e4;
- }
- .haderBox {
- margin-top: .05rem;
- padding: 0 0.32rem;
- height: 0.88rem;
- font-size: 0.32rem;
- background: #f8f8f8;
- }
- .main-box {
- height: 0.9rem;
- font-size: 0.24rem;
- }
- .bottom-box {
- height: 1.1rem;
- background: #f8f8f8;
- font-size: 0.24rem;
- }
- .bottom-box div {
- width: 1.07rem;
- height: 0.76rem;
- border: 1px solid #cecece;
- border-radius: 0.1rem;
- font-size: 0.24rem;
- }
- .bottom-num {
- display: flex;
- justify-content: center;
- align-items: center;
- flex-wrap: wrap;
- }
- .bottom-num p{
- width: 100%;
- text-align: center;
- }
- .active {
- background: #f76649;
- border: 2px solid #f76649 !important;
- }
- .active > p {
- color: #e4e4e4 !important;
- }
- .num-box {
- width: 0.66rem;
- height: 0.34rem;
- background: #f76649;
- border-radius: 0.17rem;
- color: #f5f5f5 !important;
- line-height: 0.34rem;
- text-align: center;
- }
- .footBox {
- height: 1rem;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-around;
- align-items: center;
- }
- .footBox .box {
- display: flex;
- align-items: center;
- }
- /* 让球&大小 */
- .letBallBox {
- padding: 0 0.32rem;
- height: 0.88rem;
- font-size: 0.32rem;
- background: #f4f4f4;
- }
- .mg {
- margin-bottom: 0.1rem;
- }
- .Match-title-num {
- width: 0.46rem;
- height: 0.46rem;
- align-items: center;
- justify-content: center;
- line-height: 0.46rem;
- text-align: center;
- background: #f76649;
- font-size: 0.2rem;
- border-radius: 50%;
- color: #f5f5f5;
- }
- .Match-box-top-right > span {
- width: 1.07rem;
- text-align: center;
- }
- .listbox {
- padding: 0.1rem 0.32rem;
- }
- .name-box {
- height: 1.76rem;
- width: 3.8rem;
- }
- .Match-box-top {
- height: 0.44rem;
- padding: 0 0.32rem;
- /* line-height: 0.44rem; */
- background: #dcdcdc;
- font-size: 0.23rem;
- }
- .Match-box-top-num {
- width: 0.64rem !important;
- height: 0.44rem;
- background: #ebebeb;
- font-size: 0.24rem;
- }
- .texttop {
- color: #f76649;
- }
- .Match-box {
- /* padding: 0 0 0.12rem; */
- background: #f8f8f8;
- }
- .Match-list-box {
- /* width: 35%; */
- height: 1.76rem;
- flex-wrap: wrap;
- position: relative;
- }
- .rbigMall{
- position: absolute;
- right: 0;
- top: 0.1rem;
- }
- .rbigMall .letballGuest{
- position: absolute;
- top: 0.81rem;
- right: 0;
- }
- .Match-list-box .match-list div {
- width: 1.07rem;
- height: 0.8rem;
- border: 1px solid #cecece;
- border-radius: 0.1rem;
- flex-wrap: wrap;
- }
- .active {
- background: #e4e4e4;
- }
- /* 后加 */
- .Match-title-num {
- width: 0.46rem;
- height: 0.46rem;
- line-height: 0.46rem;
- text-align: center;
- background: #f76649;
- font-size: 0.26rem;
- border-radius: 50%;
- color: #f5f5f5;
- }
- .Match-box-top-right > span {
- width: 1.07rem;
- text-align: center;
- }
- .name-box {
- height: 1.76rem;
- }
- .Match-box-top {
- height: 0.45rem;
- line-height: 0.45rem;
- background: #dcdcdc;
- font-size: 0.23rem;
- padding: 0 0.32rem;
- }
- .Match-box-top-num {
- width: 0.64rem !important;
- height: 0.45rem;
- background: #ebebeb;
- font-size: 0.24rem;
- }
- .Match-box {
- background: #f4f4f4;
- }
- .Match-bottom-right {
- padding: 0 0.14rem;
- }
- .Match-list-left div {
- width: 1.07rem;
- height: 0.76rem;
- border: 1px solid #e4e4e4;
- border-radius: 0.1rem;
- padding: 0.1rem;
- margin: 0.06rem 0.08rem;
- }
- .Match-list-right div {
- width: 1.07rem;
- height: 0.76rem;
- border: 1px solid #e4e4e4;
- border-radius: 0.1rem;
- margin: 0.06rem 0.08rem;
- }
- .active {
- background: #f76649;
- border: none;
- color: #e1e1df !important;
- }
- .active span {
- color: #e1e1df !important;
- }
- .active i {
- color: #e1e1df !important;
- }
- /* 赔率 */
- .Match-bottom-right {
- height: 2rem;
- width: 2.5rem;
- padding: 0.1rem 0.1rem 0 0.14rem;
- position: relative;
- }
- .letballHome,
- .letballGuest,
- .bigHome,
- .bigGuest {
- width: 1.07rem;
- height: 0.76rem;
- /* line-height: 0.76rem; */
- border: 1px solid #e4e4e4;
- border-radius: 0.1rem;
- margin: 0.06rem 0.08rem;
- /* padding: 0.1rem 0; */
- /* margin: 0.06rem 0.6rem 0.06rem 0; */
- text-align: center;
- }
- .letballGuest{
- position: absolute;
- bottom: 0.19rem;
- }
- .bigHome span,
- .bigGuest span,
- .letballHome span,
- .letballGuest span {
- display: block;
- }
- .bigHome {
- position: absolute;
- right: 0;
- top: 0.1rem;
- }
- .bigGuest {
- position: absolute;
- right: 0;
- top: 0.93rem;
- }
- .active span {
- color: #e1e1df !important;
- }
- .capotBox{
- display: flex;
- flex-direction: column;
- }
- .ratio {
- width: 1rem;
- height: 0.76rem;
- border: 1px solid #cecece;
- margin-right: 0.14rem;
- border-radius: 0.1rem;
- margin: 0.06rem;
- }
- .locking{
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- align-items: center;
- }
- .stardLeft{
- position: absolute;
- left: 0.2rem;
- }
- .stardCenter{
- position: absolute;
- left: 2.9rem;
- }
- .stardRight{
- position: absolute;
- right: 0.2rem;
- }
- .stardBig{
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .stardBig .bigSmall{
- color: #9b9999;
- }
- .mg{
- margin-top: 0.2rem;
- }
- </style>
|