| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700 |
- <!--
- * @Description: In User Settings Edit
- * @Author: your name
- * @Date: 2019-08-26 10:58:22
- * @LastEditTime: 2019-08-27 18:43:34
- * @LastEditors: Please set LastEditors
- -->
- <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('co')">
- <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.startsWith('coh')"
- @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.startsWith('cog')"
- @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('gs')"
- 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.startsWith('gsb')"
- >
- <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.startsWith('gss')"
- @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('gsb')">
- <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;">{{ ballType == 'bq'?'让球':'让分'}}</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('co')">
- <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('coh')"
- @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('cog')"
- @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('tn')">
- <div
- :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
- class="bigHome column center"
- v-if="items.odds_code == 'tnb'"
- @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 == 'tns'"
- @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('c')">
- <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('ch')"
- @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('cg')"
- @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('ld')"
- 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('ldg')"
- >
- <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('ldh')"
- @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 :[],
- ballType:'zq',//球类别
- };
- },
- /**
- * 函数方法
- */
- 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 == 'CO'){
- 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 =='TS'){
- 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 == 'C'){
- 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 == "C") {
- 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 == 'C'){
- 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 == 'ldh'){
- 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;
- this.ballType = ball;
- 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('CO' == e.title || 'GS' == e.title || 'C' == e.title){
- this.betting.push(e.data);
- }
- })
- }else if(ball == 'lq'){
- getBetting.forEach((e,index) =>{
- if('CO' == e.title || 'TS' == e.title){
- this.betting.push(e.data);
- }
- })
- }else if(ball == 'bq'){
- getBetting.forEach((e,index) =>{
- if('C' == e.title || 'CO' == e.title || 'TS' == e.title){
- this.betting.push(e.data);
- }
- })
- }else if(ball == 'wq'){
- getBetting.forEach((e,index) =>{
- if('LD' == e.title || 'C' == 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>
|