f371f0d985aac2d6c4e046af3e830f849977b966.svn-base 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700
  1. <!--
  2. * @Description: In User Settings Edit
  3. * @Author: your name
  4. * @Date: 2019-08-26 10:58:22
  5. * @LastEditTime: 2019-08-27 18:43:34
  6. * @LastEditors: Please set LastEditors
  7. -->
  8. <template>
  9. <div>
  10. <div v-if="noData">
  11. <NotOpend :title="this.info"/>
  12. </div>
  13. <!-- 足球 -->
  14. <!-- 让球&大小 -->
  15. <div class="match" v-if="isShow && wq_show && zlBallShow">
  16. <div v-for="(item,$index) in letBallData" :key="$index" class="mg">
  17. <div class="row allAlignment haderBox center">
  18. <span>{{item.leagueName}}</span>
  19. <div class="row Match-title-num">
  20. <span>{{item.matchNum}}</span>
  21. </div>
  22. </div>
  23. <div class="Match-box">
  24. <div v-for="(itemList,index) in item.matchData" :key="index" @click="matchInfo(itemList.match_id)">
  25. <div class="row allAlignment Match-box-top">
  26. <div class="Match-box-top-left">
  27. <span>{{itemList.match_process}}</span>
  28. <span class="texttop" v-if="activity == 'StRollBall'">{{itemList.a_time}}</span>
  29. <span class="texttop" v-if="activity == 'StSoon' && itemList.wait_time > 0">{{itemList.wait_time}}分钟</span>
  30. <span class="texttop" v-else-if="activity == 'StSoon' && itemList.wait_time < 0">--分钟</span>
  31. </div>
  32. <div class="Match-box-top-right row">
  33. <span style="margin-right: .1rem;" class="Match-box-top-num">{{itemList.tag}}</span>
  34. <span style="margin-right: .1rem;">让球</span>
  35. <span style="margin-right: .1rem;">大小</span>
  36. </div>
  37. </div>
  38. <div class="row allAlignment center listbox">
  39. <div class="column average name-box">
  40. <div class="box noBox row item-center main-box">
  41. <span v-if="itemList.home_score == '0' || itemList.home_score" class="num-box" style="color:#eb921e" >{{itemList.home_score}}</span>
  42. <span v-else style="color:#eb921e">{{itemList.home_score}}</span>
  43. &nbsp;&nbsp;{{itemList.home_team}}
  44. </div>
  45. <div class="box noBox row item-center main-box">
  46. <span
  47. v-if="itemList.guest_score || itemList.guest_score == '0'"
  48. class="num-box"
  49. style="color:#eb921e"
  50. >{{itemList.guest_score}}</span>
  51. <span v-else style="color:#eb921e">{{itemList.guest_score}}</span>
  52. &nbsp;&nbsp;{{itemList.guest_team}}
  53. </div>
  54. </div>
  55. <div class="Match-list-box row item-center average">
  56. <div class="Match-bottom-right">
  57. <!-- 主队 -->
  58. <div class v-for="(items,indexs) in itemList.oddsData[0]" :key="indexs" :class="items.odds == 0?'locking':''" >
  59. <div v-if="items.odds ">
  60. <div class v-if="items.odds_code.startsWith('co')">
  61. <div>
  62. <div
  63. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  64. class="letballHome column center"
  65. v-if="items.odds_code.startsWith('coh')"
  66. @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)"
  67. >
  68. <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
  69. <span v-if="items.odds >0" >{{items.odds}}</span>
  70. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
  71. </div>
  72. </div>
  73. <div
  74. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  75. class="letballGuest column center"
  76. v-if="items.odds_code.startsWith('cog')"
  77. @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)"
  78. >
  79. <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
  80. <span v-if="items.odds >0" >{{items.odds}}</span>
  81. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
  82. </div>
  83. </div>
  84. <div
  85. v-if="items.odds_code.startsWith('gs')"
  86. class="row bigSmall"
  87. @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)"
  88. >
  89. <div
  90. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  91. class="bigHome column center"
  92. v-if="items.odds_code.startsWith('gsb')"
  93. >
  94. <div style="color: rgb(247, 102, 73);" class="stardBig" v-if="items.odds > 0">
  95. <span class="bigSmall">大</span>
  96. <span v-if="items.condition !='大'">{{items.condition}}</span>
  97. </div>
  98. <span v-if="items.odds >0" >{{items.odds}}</span>
  99. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
  100. </div>
  101. <div
  102. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  103. class="bigGuest column center"
  104. v-if="items.odds_code.startsWith('gss')"
  105. @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)"
  106. >
  107. <div style="color: rgb(247, 102, 73); " class="stardBig" v-if="items.odds > 0">
  108. <span class="bigSmall">小</span>
  109. <span v-if="items.condition !='小'">{{items.condition}}</span>
  110. </div>
  111. <span v-if="items.odds >0" >{{items.odds}}</span>
  112. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
  113. </div>
  114. </div>
  115. <div v-if="items.odds_code.startsWith('total')" class="row bigSmall"
  116. @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)"
  117. >
  118. <div :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  119. class="bigHome column center" v-if="items.odds_code.endsWith('gsb')">
  120. <div style="color: rgb(247, 102, 73);" class="stardBig">
  121. <span class="bigSmall">大</span>
  122. <span>{{items.condition}}</span>
  123. </div>
  124. <span v-if="items.odds >0" >{{items.odds}}</span>
  125. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
  126. </div>
  127. <div
  128. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  129. class="bigGuest column center"
  130. v-if="items.odds_code.endsWith('small')"
  131. @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)"
  132. >
  133. <div style="color: rgb(247, 102, 73); " class="stardBig" v-if="items.odds > 0">
  134. <span class="bigSmall">小</span>
  135. <span>{{items.condition}}</span>
  136. </div>
  137. <span v-if="items.odds >0" >{{items.odds}}</span>
  138. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <!-- 足球1x2 -->
  151. <div v-if="!isShow && !ishow && wq_show">
  152. <div v-for="(item,$index) in letBallData" :key="item.id" @click="bettingChange()">
  153. <div class="row allAlignment haderBox center">
  154. <span>{{item.leagueName}}</span>
  155. <div class="Match-title-num">
  156. <span>{{item.matchNum}}</span>
  157. </div>
  158. </div>
  159. <div
  160. v-for="(itemList,idx) in item.matchData"
  161. :key="idx"
  162. @click="matchInfo(itemList.match_id)"
  163. >
  164. <div class="box noPd">
  165. <div class="row allAlignment item-center top-box">
  166. <span>
  167. <span>{{itemList.match_process}}</span>
  168. <span class="texttop" v-if="activity == 'StRollBall'">{{itemList.a_time}}</span>
  169. <span class="texttop" v-if="activity == 'StSoon' && itemList.wait_time > 0">{{itemList.wait_time}}分钟</span>
  170. <span class="texttop" v-else-if="activity == 'StSoon' && itemList.wait_time < 0">--分钟</span>
  171. </span>
  172. <span class="top-num">{{itemList.tag}}</span>
  173. </div>
  174. </div>
  175. <div class="box-bottom">
  176. <div class="box row item-center main-box">
  177. <span
  178. v-if="itemList.home_score == '0' || itemList.home_score"
  179. class="num-box"
  180. style="color:#eb921e"
  181. >{{itemList.home_score}}</span>
  182. <span v-else style="color:#eb921e">{{itemList.home_score}}</span>
  183. &nbsp;&nbsp;{{itemList.home_team}}
  184. </div>
  185. <div class="box row item-center main-box">
  186. <span
  187. v-if="itemList.guest_score || itemList.guest_score == '0'"
  188. class="num-box"
  189. style="color:#eb921e"
  190. >{{itemList.guest_score}}</span>
  191. <span v-else style="color:#eb921e">{{itemList.guest_score}}</span>
  192. &nbsp;&nbsp;{{itemList.guest_team}}
  193. </div>
  194. <div class="footBox" style="position:relative">
  195. <div class="box row allAlignment bottom-box center" v-for="(items,i) in itemList.oddsData[1]"
  196. :key="i" v-if="items != null">
  197. <div v-if="items.condition == 1" class="item-center bottom-num stardLeft"
  198. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  199. @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')"
  200. >
  201. <p style="color:#eb921e">{{items.condition}}</p>
  202. <p>{{items.odds}}</p>
  203. </div>
  204. <div v-if="items.condition == 'X'" class="item-center bottom-num stardCenter"
  205. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  206. @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')"
  207. >
  208. <p style="color:#eb921e">{{items.condition}}</p>
  209. <p>{{items.odds}}</p>
  210. </div>
  211. <div v-if="items.condition == 2" class="item-center bottom-num stardRight"
  212. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  213. @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')"
  214. >
  215. <p style="color:#eb921e">{{items.condition}}</p>
  216. <p>{{items.odds}}</p>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <!-- 篮球 棒球 -->
  225. <div class="match" v-if="isShow && wq_show && !zlBallShow">
  226. <div v-for="(item,$index) in letBallData" :key="$index" class="mg">
  227. <div class="row allAlignment haderBox center">
  228. <span>{{item.leagueName}}</span>
  229. <div class="row Match-title-num">
  230. <span>{{item.matchNum}}</span>
  231. </div>
  232. </div>
  233. <div class="Match-box">
  234. <div
  235. v-for="(itemList,index) in item.matchData"
  236. :key="index"
  237. @click="matchInfo(itemList.match_id)"
  238. >
  239. <div class="row allAlignment Match-box-top">
  240. <div class="Match-box-top-left">
  241. <span>{{itemList.match_process}}</span>
  242. <span class="texttop" v-if="activity == 'StRollBall'">{{itemList.wait_time}}</span>
  243. <span class="texttop" v-if="activity == 'StSoon' && itemList.wait_time > 0">{{itemList.wait_time}}分钟</span>
  244. <span class="texttop" v-else-if="activity == 'StSoon' && itemList.wait_time < 0">--分钟</span>
  245. </div>
  246. <div class="Match-box-top-right row">
  247. <span style="margin-right: .1rem;" class="Match-box-top-num">{{itemList.tag}}</span>
  248. <span style="margin-right: .1rem;">{{ ballType == 'bq'?'让球':'让分'}}</span>
  249. <span style="margin-right: .1rem;">大小</span>
  250. </div>
  251. </div>
  252. <div class="row allAlignment center listbox">
  253. <div class="column average name-box">
  254. <div class="box noBox row item-center main-box">
  255. <span
  256. v-if="itemList.home_score == '0' || itemList.home_score"
  257. class="num-box"
  258. style="color:#eb921e"
  259. >{{itemList.home_score}}</span>
  260. <span v-else style="color:#eb921e">{{itemList.home_score}}</span>
  261. &nbsp;&nbsp;{{itemList.home_team}}
  262. </div>
  263. <div class="box noBox row item-center main-box">
  264. <span
  265. v-if="itemList.guest_score || itemList.guest_score == '0'"
  266. class="num-box"
  267. style="color:#eb921e"
  268. >{{itemList.guest_score}}</span>
  269. <span v-else style="color:#eb921e">{{itemList.guest_score}}</span>
  270. &nbsp;&nbsp;{{itemList.guest_team}}
  271. </div>
  272. </div>
  273. <div class="Match-list-box row item-center average">
  274. <div class="Match-bottom-right">
  275. <!-- 主队 -->
  276. <div class v-for="(items,idx) in itemList.oddsData[0]" :key="idx">
  277. <div v-if="items != null">
  278. <div class v-if="items.odds_code.startsWith('co')">
  279. <div
  280. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  281. class="letballHome column center"
  282. v-if="items.odds_code.endsWith('coh')"
  283. @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)"
  284. >
  285. <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
  286. <span v-if="items.odds >0" >{{items.odds}}</span>
  287. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;" src="@/assets/st-imges/mima.png"><img>
  288. </div>
  289. <div
  290. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  291. class="letballGuest column center"
  292. v-if="items.odds_code.endsWith('cog')"
  293. @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)"
  294. >
  295. <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
  296. <span v-if="items.odds >0" >{{items.odds}}</span>
  297. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;" src="@/assets/st-imges/mima.png"><img>
  298. </div>
  299. </div>
  300. <div class="row bigSmall" v-if="items.odds_code.startsWith('tn')">
  301. <div
  302. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  303. class="bigHome column center"
  304. v-if="items.odds_code == 'tnb'"
  305. @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)"
  306. >
  307. <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
  308. <span v-if="items.odds >0" >{{items.odds}}</span>
  309. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;" src="@/assets/st-imges/mima.png"><img>
  310. </div>
  311. <div
  312. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  313. class="bigGuest column center"
  314. v-if="items.odds_code == 'tns'"
  315. @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)"
  316. >
  317. <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
  318. <span v-if="items.odds >0" >{{items.odds}}</span>
  319. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;" src="@/assets/st-imges/mima.png"><img>
  320. </div>
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. </div>
  326. </div>
  327. </div>
  328. </div>
  329. </div>
  330. </div>
  331. <!-- 独赢盘 -->
  332. <div class="match" v-if="!isShow && ishow && wq_show">
  333. <div v-for="(item,$index) in letBallData" :key="$index" class="mg">
  334. <div class="row allAlignment letBallBox center">
  335. <span>{{item.leagueName}}</span>
  336. <div class="row Match-title-num">
  337. <span>{{item.matchNum}}</span>
  338. </div>
  339. </div>
  340. <div class="Match-box">
  341. <div
  342. v-for="(itemList,index) in item.matchData"
  343. :key="index"
  344. class="Match-box"
  345. @click="matchInfo(itemList.match_id)"
  346. >
  347. <div class="row allAlignment Match-box-top">
  348. <div class="Match-box-top-left">
  349. <span class="texttop" v-if="activity == 'StRollBall'">{{itemList.a_time}}</span>
  350. <span class="texttop" v-if="activity == 'StSoon' && itemList.wait_time > 0">{{itemList.wait_time}}分钟</span>
  351. <span class="texttop" v-else-if="activity == 'StSoon' && itemList.wait_time < 0">--分钟</span>
  352. </div>
  353. <div class="Match-box-top-right row">
  354. <span style="margin-right: .1rem;" class="Match-box-top-num">{{itemList.tag}}</span>
  355. <span style="margin-right: .1rem;">独赢盘</span>
  356. </div>
  357. </div>
  358. <div class="row allAlignment center listbox">
  359. <div class="column average name-box">
  360. <div>{{itemList.home_team}}</div>
  361. <div>{{itemList.guest_team}}</div>
  362. </div>
  363. <div class="Match-list-box row item-center average">
  364. <div class="Match-bottom-right" style="width:1.3rem;">
  365. <!-- 主队 -->
  366. <div class="capotBox">
  367. <div
  368. class="Match-list-left"
  369. v-for="(items,indexs) in itemList.oddsData[1]"
  370. :key="indexs"
  371. @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)"
  372. >
  373. <div :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}" class="column center">
  374. <span style="color:#f76649">{{items.condition}}</span>
  375. <span>{{items.odds}}</span>
  376. </div>
  377. </div>
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. </div>
  383. </div>
  384. </div>
  385. </div>
  386. <!-- 如过是网球则显示 -->
  387. <div class="match" v-if="isShow && !wq_show">
  388. <div v-for="(item,$index) in letBallData" :key="$index" class="mg">
  389. <!-- <div v-for="items in list[index]" :key="items.id"> -->
  390. <div class="row allAlignment letBallBox center">
  391. <span>{{item.leagueName}}</span>
  392. <div class="row Match-title-num">
  393. <span>{{item.matchNum}}</span>
  394. </div>
  395. </div>
  396. <div class="Match-box">
  397. <div
  398. v-for="(itemList,index) in item.matchData"
  399. :key="index"
  400. class="Match-box"
  401. @click="matchInfo(itemList.match_id)"
  402. >
  403. <div class="row allAlignment Match-box-top">
  404. <div class="Match-box-top-left">
  405. <!-- <span>{{itemList.match_date}}</span> -->
  406. <span class="texttop">{{itemList.match_process}}</span>
  407. <span class="texttop" v-if="activity == 'StRollBall'">{{itemList.a_time}}</span>
  408. <span class="texttop" v-if="activity == 'StSoon' && itemList.wait_time > 0">{{itemList.wait_time}}分钟</span>
  409. <span class="texttop" v-else-if="activity == 'StSoon' && itemList.wait_time < 0">--分钟</span>
  410. </div>
  411. <div class="Match-box-top-right row">
  412. <span style="margin-right: .1rem;" class="Match-box-top-num">{{itemList.tag}}</span>
  413. <span style="margin-right: .1rem;">独赢盘</span>
  414. <span style="margin-right: .1rem;">让盘</span>
  415. </div>
  416. </div>
  417. <div class="row allAlignment center listbox">
  418. <div class="column average name-box">
  419. <div>{{itemList.home_team}}</div>
  420. <div>{{itemList.guest_team}}</div>
  421. </div>
  422. <div class="Match-list-box row item-center average">
  423. <div class="Match-bottom-right">
  424. <!-- 主队 -->
  425. <div class v-for="(items,indexs) in itemList.oddsData" :key="indexs">
  426. <div v-if="items.odds">
  427. <div class v-if="items.odds_code.startsWith('c')">
  428. <div
  429. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  430. class="letballHome column center"
  431. v-if="items.odds_code.endsWith('ch')"
  432. @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)"
  433. >
  434. <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
  435. <span v-if="items.odds >0" >{{items.odds}}</span>
  436. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
  437. </div>
  438. <div
  439. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  440. class="letballGuest column center"
  441. v-if="items.odds_code.endsWith('cg')"
  442. @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)"
  443. >
  444. <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
  445. <span v-if="items.odds >0" >{{items.odds}}</span>
  446. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
  447. </div>
  448. </div>
  449. <div
  450. v-if="items.odds_code.startsWith('ld')"
  451. class="row bigSmall"
  452. @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)"
  453. >
  454. <div
  455. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  456. class="bigHome column center"
  457. v-if="items.odds_code.endsWith('ldg')"
  458. >
  459. <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
  460. <span v-if="items.odds >0" >{{items.odds}}</span>
  461. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
  462. </div>
  463. <div
  464. :class="{active:items.isTrue,increased_color:items.change == 'add',reduce_color:items.change == 'red'}"
  465. class="bigGuest column center"
  466. v-if="items.odds_code.endsWith('ldh')"
  467. @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)"
  468. >
  469. <span style="color: rgb(247, 102, 73); " v-if="items.odds > 0">{{items.condition}}</span>
  470. <span v-if="items.odds >0" >{{items.odds}}</span>
  471. <img v-if="items.odds <= 0" style="width: 0.7rem;height: 0.5rem;margin-top:0.1rem;" src="@/assets/st-imges/mima.png"><img>
  472. </div>
  473. </div>
  474. </div>
  475. </div>
  476. </div>
  477. </div>
  478. </div>
  479. </div>
  480. </div>
  481. </div>
  482. </div>
  483. <div v-if="isBettingWindow == '100'">
  484. <BettingWindow/>
  485. </div>
  486. </div>
  487. </template>
  488. <script>
  489. import Bus from "../assets/bus.js";
  490. import NotOpend from "@/components/StNotOpend";
  491. import BettingWindow from "@/components/StBettingWindow";
  492. export default {
  493. props: ["gameCode", "name", "ishow"],
  494. components: { NotOpend, BettingWindow },
  495. data() {
  496. return {
  497. show: false, //暂时状态
  498. isShow: true,
  499. noData: true, //显示暂无数据
  500. wq_show: true, //是否为棒球与网球,是则不显示
  501. info: "没有相关比赛信息",
  502. status: false,
  503. isBettingWindow: -1, //投注组件隐藏
  504. isAjax: false, //开关
  505. list: [],
  506. letBallData: [], //让球大小和1X2数据
  507. timers: true,
  508. activity: "",
  509. betting: [], //vuex里面玩法投注数据
  510. thisNum: 10000, //vuex里面
  511. index: "", //
  512. data: "", //玩法赔率数据源
  513. getIsShow: true,
  514. score: "0", //比分
  515. actydy: "", // 切换独赢状态BUG
  516. ball: this.$store.getters.getBallId, // 球类bm
  517. zlBallShow: true, //显示足球还是篮球
  518. previousStorage:[],
  519. wqPreviousStorage :[],
  520. ballType:'zq',//球类别
  521. };
  522. },
  523. /**
  524. * 函数方法
  525. */
  526. methods: {
  527. matchInfo(id) {
  528. this.$router.push({
  529. path: "/StRollBallBettingPage",
  530. query: {
  531. gameCode: this.$store.getters.getBallId,
  532. number: 1,
  533. home: true,
  534. name: this.name
  535. }
  536. });
  537. this.$store.dispatch("MACTH_ID", id);
  538. },
  539. //打开联赛投注页面
  540. goMatchInfo: function() {
  541. let ball = this.$store.getters.getBallId;
  542. // this.$store.dispatch("GETSHOW", true);
  543. Bus.$on("show", data => {
  544. this.isShow = data;
  545. if (this.isShow == false && this.ishow == true) {
  546. this.actydy = true;
  547. } else {
  548. this.actydy = false;
  549. }
  550. // // 暂时注释,有BUG
  551. // if (ball == "wq" || ball == "zq") {
  552. // } else {
  553. // // for(var i = 0; i < this.letBallData.length; i++){
  554. // // this.letBallData[i].matchData.forEach(val =>{
  555. // // // console.log('val',val)
  556. // // if(val.oddsData[0].homeOdds || val.oddsData[0].guestOdds){
  557. // // val.oddsData = [];
  558. // // }
  559. // // })
  560. // // this.dataGroup(this.letBallData[i],i)
  561. // // }
  562. // }
  563. });
  564. },
  565. getAjax: function(game_code, type_code) {
  566. if (!game_code || !type_code) return false;
  567. this.$http
  568. .get(this.$ports.match.matchState, { game_code, type_code })
  569. .then(res => {
  570. //console.log('数据结构',res.data.data);
  571. this.isAjax = true;
  572. if (
  573. res.data.status == 1 &&
  574. res.data.data.length > 0 &&
  575. res.data != null
  576. ) {
  577. this.letBallData = res.data.data;
  578. // console.log(this.letBallData)
  579. this.noData = false;
  580. //让球大小组合
  581. // for (var i = 0; i < res.data.data.length; i++) {
  582. this.dataGroup(this.letBallData);
  583. // }
  584. // //滚球比赛时间倒计时
  585. // if (this.activity == "StRollBall" && this.ball == 'zq') {
  586. // let _this = this;
  587. // _this.letBallData.forEach(val => {
  588. // val.matchData.forEach(e => {
  589. // if(e.a_time){
  590. // let [f, s] = e.a_time.split(":");
  591. // if (e.a_time != "") {
  592. // let [f, s] = e.a_time.split(":");
  593. // this.$public.timer(f, s, function(f, s) {
  594. // e.a_time = f + ":" + s;
  595. // });
  596. // }
  597. // }
  598. // });
  599. // });
  600. // }
  601. } else {
  602. // 是否显示组件
  603. this.noData = true;
  604. //console.log('data',this.noData)
  605. // 每次更新数据没有数据时则置空。
  606. this.letBallData = [];
  607. }
  608. });
  609. let _this = this;
  610. setTimeout(() => {
  611. _this.$store.dispatch("GETSHOW", false);
  612. }, 1000);
  613. },
  614. /*--------------------------------------------------------------------------------*/
  615. // 添加、删除vuex投注数据公共方法
  616. AddDelete: function(array, $index, type) {
  617. let bettingInfo = array;
  618. let isAdd = true,isNew=true;
  619. let matchList = this.$store.getters.getBetting;
  620. let ball = this.$store.getters.getBallId;
  621. //添加新的玩法赔率数据
  622. let obj = {
  623. title:bettingInfo.p_code,
  624. data: [bettingInfo]
  625. };
  626. if(matchList != null){
  627. for(let i = 0; i < matchList.length;i++){
  628. if(matchList[i].title == bettingInfo.p_code){
  629. //删除vuex投注数据
  630. // console.log(matchList[i].data)
  631. matchList[i].data.forEach((res, index) => {
  632. // console.log(res.id,id)
  633. if (res.id == array.id) {
  634. matchList[i].data.splice(index, 1);
  635. this.$store.dispatch("SET_LIMIT", false);
  636. this.$store.dispatch("BETTING", []);
  637. this.$store.dispatch("BETTING", matchList);
  638. isAdd = false;
  639. isNew = false;
  640. //处理当前页面样式
  641. this.modifyStyle($index, array.id,type);
  642. }
  643. });
  644. //添加vuex投注数据
  645. if (isAdd){
  646. isNew = false;
  647. if (this.$store.getters.getLimit * 1 >= 10) return false;
  648. //处理当前页面样式
  649. this.modifyStyle($index, array.id, type);
  650. matchList[i].data.push(bettingInfo);
  651. this.$store.dispatch("BETTING",[]);
  652. this.$store.dispatch("BETTING",matchList);
  653. if (this.$store.getters.getIsBetting == "100") return false;
  654. this.$store.dispatch("ISBETTING",100);
  655. }
  656. break;
  657. }
  658. }
  659. if(isNew){
  660. matchList.push(obj)
  661. this.$store.dispatch("BETTING",[]);
  662. this.$store.dispatch("BETTING",matchList);
  663. this.modifyStyle($index, array.id, type);
  664. if (this.$store.getters.getIsBetting == "100") return false;
  665. this.$store.dispatch("ISBETTING", "100");
  666. }
  667. }else{
  668. this.$store.dispatch("BETTING",[obj]);
  669. this.modifyStyle($index, array.id, type);
  670. if (this.$store.getters.getIsBetting == "100") return false;
  671. this.$store.dispatch("ISBETTING", "100");
  672. }
  673. },
  674. /*--------------------------------------------------------------------------------*/
  675. //修改当前页面样式公共方法
  676. modifyStyle: function($index, id, type) {
  677. let ball = this.$store.getters.getBallId;
  678. this.letBallData[$index].matchData.every((e, i) => {
  679. let ret = false;
  680. if(ball == 'lq'){
  681. if(type == 'CO'){
  682. e.oddsData[0].forEach((res,index) =>{
  683. if(res != null){
  684. if(res.id == id){
  685. this.$forceUpdate();
  686. this.$set(res,'isTrue',res.isTrue ? false : true)
  687. }
  688. }
  689. })
  690. }else if(type =='TS'){
  691. e.oddsData[0].forEach((res,index) =>{
  692. if(res.id == id){
  693. // console.log('id',res.id,id)
  694. this.$forceUpdate();
  695. this.$set(res,'isTrue',res.isTrue ? false : true)
  696. }
  697. })
  698. }else if(type == 'C'){
  699. e.oddsData[1].forEach((res,index) =>{
  700. if(res.id == id){
  701. this.$forceUpdate();
  702. this.$set(res,'isTrue',res.isTrue ? false : true)
  703. }
  704. })
  705. }
  706. }else{
  707. if (type == "homeOdds") {
  708. e.oddsData[0].every((res, index) => {
  709. if (res.id == id) {
  710. this.$forceUpdate();
  711. this.$set(res, "isTrue", res.isTrue ? false : true);
  712. ret = true;
  713. return false;
  714. }
  715. return true;
  716. });
  717. } else if (type == "guestOdds") {
  718. e.oddsData[0].every((res, index) => {
  719. if (res.id == id) {
  720. this.$forceUpdate();
  721. this.$set(res, "isTrue", res.isTrue ? false : true);
  722. ret = true;
  723. return false;
  724. }
  725. return true;
  726. });
  727. } else if (type == "C") {
  728. e.oddsData[1].every((res, index) => {
  729. if (res.id == id) {
  730. this.$forceUpdate();
  731. this.$set(res, "isTrue", res.isTrue ? false : true);
  732. ret = true;
  733. return false;
  734. }
  735. return true;
  736. });
  737. }else if(type == 'C'){
  738. e.oddsData.every((res,index) =>{
  739. if(res.id == id){
  740. this.$forceUpdate();
  741. this.$set(res,'isTrue',res.isTrue ? false : true);
  742. ret = true;
  743. return false;
  744. }
  745. return true;
  746. })
  747. }else if(type == 'ldh'){
  748. e.oddsData.forEach((res,index) =>{
  749. if(res.id == id){
  750. this.$forceUpdate();
  751. this.$set(res,'isTrue',res.isTrue ? false : true)
  752. }
  753. })
  754. }
  755. }
  756. if (ret) {
  757. return false;
  758. } else {
  759. return true;
  760. }
  761. });
  762. },
  763. /*--------------------------------------------------------------------------------*/
  764. // 修改投注样式
  765. isBetting(
  766. $index,
  767. match_id,
  768. id,
  769. home,
  770. guest,
  771. name,
  772. odds,
  773. condition,
  774. odds_only,
  775. odds_code,
  776. type,
  777. p_code,
  778. status,
  779. lg_id,
  780. play_name,
  781. oddsType
  782. ) {
  783. let ball = this.$store.getters.getBallId;
  784. let bettingInfo = {};
  785. if(odds > 0){
  786. let bettingInfo = {
  787. id,
  788. home_team: home,
  789. guest_team: guest,
  790. name,
  791. odds,
  792. match_id,
  793. condition,
  794. ballId: this.$store.getters.getBallId,
  795. odds_code: odds_code,
  796. p_code: p_code,
  797. play_name,
  798. score: this.score,
  799. bettingTime: "",
  800. odds_only,
  801. lg_id,
  802. oddsType
  803. };
  804. this.AddDelete(bettingInfo, $index, type);
  805. if (this.$store.getters.getLimit * 1 >= 10) {
  806. this.$dialog.alert({ mes: "你的注单已达到上限啦!" });
  807. }
  808. }
  809. },
  810. /*--------------------------------------------- */
  811. //让球大小数据组合
  812. dataGroup: function(data) {
  813. let ball = this.$store.getters.getBallId;
  814. this.ballType = ball;
  815. data.forEach(item =>{
  816. item.matchData.forEach((column, index) => {
  817. if (this.$store.getters.getBallId == "wq") {
  818. column.oddsData.forEach(val =>{
  819. if(this.betting.length > 0){
  820. this.betting.forEach(e => {
  821. e.forEach(item =>{
  822. if (val.id == item.id) {
  823. this.$set(val, "isTrue", true);
  824. }
  825. })
  826. });
  827. }
  828. })
  829. }else {
  830. if(Array.isArray(column.oddsData[1]) == true){
  831. column.oddsData[1].forEach(val => {
  832. if (this.betting.length >0) {
  833. this.betting.forEach(e => {
  834. e.forEach(item =>{
  835. if (val.id == item.id) {
  836. this.$forceUpdate();
  837. this.$set(val, "isTrue", true);
  838. }
  839. })
  840. });
  841. }
  842. });
  843. }
  844. if(Array.isArray(column.oddsData[0]) == true){
  845. column.oddsData[0].forEach(val => {
  846. if(val != null){
  847. if (this.betting.length >0) {
  848. this.betting.forEach(e => {
  849. e.forEach(item =>{
  850. if (val.id == item.id) {
  851. this.$forceUpdate();
  852. this.$set(val, "isTrue", true);
  853. }
  854. })
  855. });
  856. }
  857. }
  858. });
  859. }
  860. }
  861. });
  862. })
  863. // 数据更新切换样式
  864. let storage = this.previousStorage;
  865. let wqStorage = this.wqPreviousStorage;
  866. // console.log('a',storage)
  867. // console.log('222',storage)
  868. if(storage && storage != null && storage != '' && storage.length > 0 ){
  869. if(ball == 'zq' || ball == 'lq' || ball == 'bq'){
  870. // let dataa = data;
  871. data.forEach(itemList =>{
  872. itemList.matchData.forEach((e,idx) =>{
  873. e.oddsData.forEach(item =>{
  874. if(item.length > 0){
  875. item.forEach((list,index) =>{
  876. if(list != null){
  877. storage.forEach((a,i) =>{
  878. a.forEach(b =>{
  879. b.forEach(k =>{
  880. if(k != null){
  881. if(list.id == k.id){
  882. if(list.odds > k.odds){
  883. // console.log("1")
  884. list.change = 'add'
  885. }else if(list.odds < k.odds){
  886. // console.log("2")
  887. list.change = 'red';
  888. }
  889. else if(list.odds == k.odds){
  890. // console.log("3")
  891. list.change = '';
  892. }
  893. }
  894. }
  895. })
  896. })
  897. // a.splice(i,1)
  898. })
  899. }
  900. })
  901. }
  902. // item.splice(idx,1)
  903. })
  904. })
  905. })
  906. }
  907. }else if(wqStorage && wqStorage != null && wqStorage != '' && wqStorage.length > 0 ){
  908. if(ball == 'wq'){
  909. data.forEach(list =>{
  910. list.matchData.forEach(e =>{
  911. e.oddsData.forEach(item =>{
  912. wqStorage.forEach(a =>{
  913. a.forEach(b =>{
  914. if(item.id == b.id){
  915. if(item.odds > b.odds){
  916. item.change = 'add'
  917. }else if(item.odds < b.odds){
  918. item.change = 'red';
  919. }else{
  920. item.change = '';
  921. }
  922. }
  923. })
  924. })
  925. })
  926. })
  927. })
  928. }
  929. }
  930. this.previousStorage = [];
  931. this.wqPreviousStorage = [];
  932. if(ball =='lq' || ball =='zq' || ball =='bq'){
  933. data.forEach(list =>{
  934. list.matchData.forEach(k =>{
  935. this.previousStorage.push(k.oddsData)
  936. })
  937. })
  938. }else{
  939. data.forEach(res =>{
  940. res.matchData.forEach(k =>{
  941. this.wqPreviousStorage.push(k.oddsData)
  942. })
  943. })
  944. }
  945. this.$store.dispatch('GETGAMERATIO',data)
  946. // console.log("处理数据", this.letBallData);
  947. },
  948. /*---------------------------------------------*/
  949. //
  950. isClick(
  951. $index,
  952. match_id,
  953. id,
  954. home,
  955. guest,
  956. name,
  957. odds,
  958. condition,
  959. odds_only,
  960. odds_code,
  961. type,
  962. p_code,
  963. oddsType
  964. ) {
  965. let bettingInfo = {
  966. id,
  967. home_team: home,
  968. guest_team: guest,
  969. name,
  970. odds,
  971. match_id,
  972. condition,
  973. ballId: this.$store.getters.getBallId,
  974. odds_code: odds_code,
  975. p_code: p_code,
  976. play_name: "1X2",
  977. score: this.score,
  978. bettingTime: "",
  979. odds_only,
  980. oddsType
  981. };
  982. this.AddDelete(bettingInfo, $index, type);
  983. if (this.$store.getters.getLimit * 1 >= 10) {
  984. this.$dialog.alert({ mes: "你的注单已达到上限啦!" });
  985. }
  986. },
  987. /*---------------------------------------------*/
  988. //
  989. bettingChange() {
  990. // this.isBettingWindow = '100';
  991. }
  992. /*---------------------------------------------*/
  993. },
  994. /**
  995. * 计算属性
  996. */
  997. computed: {
  998. // 监听vuex状态值的改变
  999. getInfo: function() {
  1000. return {
  1001. game_code: this.$store.getters.getBallId,
  1002. type_code: this.$store.getters.getActivity
  1003. };
  1004. },
  1005. getIsBetting: function() {
  1006. return this.$store.getters.getIsBetting;
  1007. },
  1008. // // 获取滚动状态
  1009. // getscorllcode() {
  1010. // return this.$public.getCache("box_size");
  1011. // },
  1012. // getBetting() {
  1013. // return this.$store.getters.getBetting;
  1014. // },
  1015. //获取投注框删除的投注信息
  1016. getDeleteType() {
  1017. return this.$store.getters.getDeleteType;
  1018. },
  1019. getActivity: function() {
  1020. return this.$store.getters.getActivity;
  1021. }
  1022. },
  1023. watch: {
  1024. getActivity(val) {
  1025. this.activity = val;
  1026. },
  1027. /*--------------------------------- */
  1028. getInfo(obj) {
  1029. let getBetting = this.$store.getters.getBetting;
  1030. // console.log('111',getBetting)
  1031. this.betting = [];
  1032. if(getBetting){
  1033. if(obj.game_code == 'zq'){
  1034. getBetting.forEach((e,index) =>{
  1035. if('concede' == e.title || 'goal_size' == e.title || 'capot' == e.title){
  1036. this.betting.push(e.data);
  1037. }
  1038. })
  1039. // console.log('zq',this.betting)
  1040. }else if(obj.game_code == 'lq'){
  1041. getBetting.forEach((e,index) =>{
  1042. if('concede' == e.title || 'total_size' == e.title){
  1043. this.betting.push(e.data);
  1044. }
  1045. })
  1046. }else if(obj.game_code == 'bq'){
  1047. getBetting.forEach((e,index) =>{
  1048. if('capot' == e.title || 'concede' == e.title || 'total_size' == e.title){
  1049. this.betting.push(e.data);
  1050. }
  1051. })
  1052. }else if(obj.game_code == 'wq'){
  1053. getBetting.forEach((e,index) =>{
  1054. if('dishes' == e.title || 'kemp' == e.title){
  1055. this.betting.push(e.data);
  1056. }
  1057. })
  1058. }
  1059. }
  1060. //console.log("obj.game_code", obj.game_code);
  1061. let getActivity = this.$store.getters.getActivity;
  1062. this.goMatchInfo();
  1063. // if (getActivity == "StSoon" || getActivity == "StRollBall") {
  1064. // if (this.isAjax) {
  1065. this.$store.dispatch("GETSHOW", true);
  1066. this.letBallData = [];
  1067. this.getAjax(obj.game_code, obj.type_code);
  1068. // }
  1069. // }
  1070. if (obj.game_code == "zq") {
  1071. this.zlBallShow = true;
  1072. } else if (obj.game_code == "lq") {
  1073. this.zlBallShow = false;
  1074. }
  1075. if (obj.game_code == "lq" || obj.game_code == "bq") {
  1076. this.ishow = true;
  1077. }
  1078. if (obj.game_code == "wq") {
  1079. //this.rShow = false;
  1080. this.isShow = true;
  1081. this.wq_show = false;
  1082. } else {
  1083. //this.rShow = true;
  1084. this.wq_show = true;
  1085. }
  1086. },
  1087. /*-------------------------------------*/
  1088. // 监听投注框开关
  1089. getIsBetting(val) {
  1090. this.isBettingWindow = val;
  1091. },
  1092. getDeleteType(val) {
  1093. let flag = true;
  1094. // 下标问题
  1095. let ball = this.$store.getters.getBallId;
  1096. //("matchData", this.letBallData);
  1097. this.letBallData.forEach((item, index) => {
  1098. //console.log("item", item);
  1099. item.matchData.forEach(e => {
  1100. if (val == "all") {
  1101. if(ball == 'lq'){
  1102. e.oddsData[0].forEach(data =>{
  1103. this.$set(data, "isTrue", false);
  1104. })
  1105. // e.oddsData[0].total_size.forEach(data =>{
  1106. // this.$set(data, "isTrue", false);
  1107. // })
  1108. }else if(ball == 'wq'){
  1109. e.oddsData.forEach(data =>{
  1110. this.$set(data,'isTrue',false);
  1111. })
  1112. }
  1113. else{
  1114. e.oddsData[0].forEach(data => {
  1115. this.$set(data, "isTrue", false);
  1116. });
  1117. e.oddsData[0].forEach(data => {
  1118. this.$set(data, "isTrue", false);
  1119. });
  1120. e.oddsData[1].forEach(data => {
  1121. this.$set(data, "isTrue", false);
  1122. });
  1123. }
  1124. } else {
  1125. let showData = true;
  1126. if(ball == 'lq'){
  1127. e.oddsData[0].forEach(data => {
  1128. if (data.id == val) {
  1129. this.$set(data, "isTrue", false);
  1130. showData = false;
  1131. }
  1132. });
  1133. // e.oddsData[0].total_size.forEach(data => {
  1134. // if (data.id == val) {
  1135. // this.$set(data, "isTrue", false);
  1136. // showData = false;
  1137. // }
  1138. // });
  1139. if (showData) {
  1140. e.oddsData[0].forEach(data => {
  1141. if (data.id == val) {
  1142. this.$set(data, "isTrue", false);
  1143. }
  1144. });
  1145. // e.oddsData[0].total_size.forEach(data => {
  1146. // if (data.id == val) {
  1147. // this.$set(data, "isTrue", false);
  1148. // }
  1149. // });
  1150. }
  1151. }else if(ball == 'wq'){
  1152. e.oddsData.forEach(data =>{
  1153. this.$set(data,'isTrue',false);
  1154. })
  1155. }
  1156. else{
  1157. e.oddsData[0].forEach(data => {
  1158. if (data.id == val) {
  1159. this.$set(data, "isTrue", false);
  1160. showData = false;
  1161. }
  1162. });
  1163. if (this.isShow == false && this.$store.getters.getBallId == "zq" || ball == 'bq') {
  1164. e.oddsData[1].forEach(data => {
  1165. if (data.id == val) {
  1166. this.$set(data, "isTrue", false);
  1167. showData = false;
  1168. }
  1169. });
  1170. }
  1171. if (showData) {
  1172. e.oddsData[0].forEach(data => {
  1173. if (data.id == val) {
  1174. this.$set(data, "isTrue", false);
  1175. }
  1176. });
  1177. }
  1178. }
  1179. }
  1180. });
  1181. });
  1182. },
  1183. /*--------------------------------------------------------------------------------*/
  1184. /*--------------------------------------------------------------------------------*/
  1185. },
  1186. mounted() {
  1187. // 调用bus传值
  1188. this.goMatchInfo();
  1189. //console.log("ssa", 123);
  1190. this.activity = this.$store.getters.getActivity;
  1191. let _this = this;
  1192. let getters = this.$store.getters;
  1193. if(getters.getBallId == 'wq'){
  1194. this.wq_show = false;
  1195. }
  1196. // 获取是否滑动信息
  1197. if (this.$public.getCache("box_size") == 1) {
  1198. this.isshrink = true;
  1199. }
  1200. //是否展示投注框
  1201. if (getters.getIsBetting == "100") {
  1202. this.isBettingWindow = 100;
  1203. }
  1204. //获取vuex玩法已投注相对应的数据
  1205. let getBetting = this.$store.getters.getBetting;
  1206. let ball = this.$store.getters.getBallId;
  1207. if(getBetting){
  1208. if(ball == 'zq'){
  1209. getBetting.forEach((e,index) =>{
  1210. if('CO' == e.title || 'GS' == e.title || 'C' == e.title){
  1211. this.betting.push(e.data);
  1212. }
  1213. })
  1214. }else if(ball == 'lq'){
  1215. getBetting.forEach((e,index) =>{
  1216. if('CO' == e.title || 'TS' == e.title){
  1217. this.betting.push(e.data);
  1218. }
  1219. })
  1220. }else if(ball == 'bq'){
  1221. getBetting.forEach((e,index) =>{
  1222. if('C' == e.title || 'CO' == e.title || 'TS' == e.title){
  1223. this.betting.push(e.data);
  1224. }
  1225. })
  1226. }else if(ball == 'wq'){
  1227. getBetting.forEach((e,index) =>{
  1228. if('LD' == e.title || 'C' == e.title){
  1229. this.betting.push(e.data);
  1230. }
  1231. })
  1232. }
  1233. }
  1234. if (this.getIsShow) {
  1235. this.$store.dispatch("GETSHOW", true);
  1236. this.getIsShow = false;
  1237. }
  1238. this.getAjax(ball,this.activity);
  1239. this.$public.ajaxTimerFun(function(timing) {
  1240. if (_this.timers) {
  1241. _this.getAjax(getters.getBallId, getters.getActivity);
  1242. } else {
  1243. clearInterval(timing);
  1244. }
  1245. }, 1000 * 10);
  1246. },
  1247. beforeDestroy() {
  1248. this.timers = false;
  1249. }
  1250. };
  1251. </script>
  1252. <style scoped>
  1253. .yd-cell-box .yd-cell {
  1254. z-index: 99;
  1255. border-radius: 0.2rem;
  1256. }
  1257. .matchBox {
  1258. background: #f9f9f9;
  1259. padding: 0.27rem 0.34rem 0 0.32rem;
  1260. }
  1261. .match .tit {
  1262. display: flex;
  1263. justify-content: space-between;
  1264. font-size: 0.32rem;
  1265. margin-bottom: 0.3rem;
  1266. }
  1267. .match .list {
  1268. overflow: hidden;
  1269. transition: all 0.3s cubic-bezier(0.4, 0.6, 0.2, 1);
  1270. }
  1271. .match .list div {
  1272. background: #dcdcdc;
  1273. width: 100%;
  1274. height: 0.88rem;
  1275. padding: 0.26rem 0.56rem 0.3rem 0.3rem;
  1276. display: flex;
  1277. justify-content: space-between;
  1278. border-radius: 0.08rem;
  1279. margin-bottom: 0.12rem;
  1280. }
  1281. .match .list span {
  1282. color: #333333;
  1283. font-size: 0.28rem;
  1284. }
  1285. .match .list .num {
  1286. width: 0.4rem;
  1287. height: 0.4rem;
  1288. display: inline-block;
  1289. line-height: 0.4rem;
  1290. text-align: center;
  1291. color: #f5f5f5;
  1292. border-radius: 50%;
  1293. font-size: 0.2rem;
  1294. background: #f76649;
  1295. }
  1296. .yd-accordion {
  1297. background: transparent;
  1298. }
  1299. .match .list div:nth-last-child(1) {
  1300. margin-bottom: 0.34rem;
  1301. }
  1302. div /deep/ .yd-accordion-head,
  1303. div /deep/ .yd-accordion-head-content,
  1304. div /deep/ .yd-accordion-title,
  1305. div /deep/ .yd-accordion-title-full {
  1306. height: 0.3rem;
  1307. }
  1308. div /deep/ .yd-accordion-title {
  1309. min-height: 0;
  1310. font-size: 0.28rem;
  1311. }
  1312. div /deep/ .yd-accordion-head {
  1313. margin-bottom: 0.3rem;
  1314. border: none;
  1315. }
  1316. .list-box {
  1317. border: 2px solid #cecece;
  1318. border-radius: 0.2rem;
  1319. }
  1320. div /deep/ .yd-accordion-head:after {
  1321. height: 0px;
  1322. }
  1323. div /deep/ .yd-accordion-head-arrow:after {
  1324. border: none;
  1325. width: 0.4rem;
  1326. height: 0.4rem;
  1327. background: url("../assets/st-imges/xiangxia.png") no-repeat;
  1328. background-size: 0.4rem 0.4rem;
  1329. }
  1330. /* 1x2 */
  1331. .top-box {
  1332. height: 0.45rem;
  1333. /* font-size: 0.24rem;
  1334. background: #fff; */
  1335. border-bottom: 1px solid #e4e4e4;
  1336. padding: 0 0.32rem;
  1337. /* line-height: 0.44rem; */
  1338. background: #dcdcdc;
  1339. font-size: 0.23rem;
  1340. }
  1341. .box-bottom {
  1342. padding: 0.1rem 0.32rem;
  1343. background: #f8f8f8;
  1344. }
  1345. .top-num {
  1346. display: inline-block;
  1347. width: 0.64rem;
  1348. height: 0.44rem;
  1349. line-height: 0.44rem;
  1350. color: #000000;
  1351. text-align: center;
  1352. background: #ebebeb;
  1353. font-size: 0.24rem;
  1354. }
  1355. .noPd {
  1356. padding: 0;
  1357. }
  1358. .noBox {
  1359. padding: 0;
  1360. background: #f4f4f4;
  1361. }
  1362. .Match-title-num {
  1363. width: 0.46rem;
  1364. height: 0.46rem;
  1365. line-height: 0.46rem;
  1366. text-align: center;
  1367. background: #f76649;
  1368. font-size: 0.26rem;
  1369. border-radius: 50%;
  1370. color: #e4e4e4;
  1371. }
  1372. .haderBox {
  1373. margin-top: .05rem;
  1374. padding: 0 0.32rem;
  1375. height: 0.88rem;
  1376. font-size: 0.32rem;
  1377. background: #f8f8f8;
  1378. }
  1379. .main-box {
  1380. height: 0.9rem;
  1381. font-size: 0.24rem;
  1382. }
  1383. .bottom-box {
  1384. height: 1.1rem;
  1385. background: #f8f8f8;
  1386. font-size: 0.24rem;
  1387. }
  1388. .bottom-box div {
  1389. width: 1.07rem;
  1390. height: 0.76rem;
  1391. border: 1px solid #cecece;
  1392. border-radius: 0.1rem;
  1393. font-size: 0.24rem;
  1394. }
  1395. .bottom-num {
  1396. display: flex;
  1397. justify-content: center;
  1398. align-items: center;
  1399. flex-wrap: wrap;
  1400. }
  1401. .bottom-num p{
  1402. width: 100%;
  1403. text-align: center;
  1404. }
  1405. .active {
  1406. background: #f76649;
  1407. border: 2px solid #f76649 !important;
  1408. }
  1409. .active > p {
  1410. color: #e4e4e4 !important;
  1411. }
  1412. .num-box {
  1413. width: 0.66rem;
  1414. height: 0.34rem;
  1415. background: #f76649;
  1416. border-radius: 0.17rem;
  1417. color: #f5f5f5 !important;
  1418. line-height: 0.34rem;
  1419. text-align: center;
  1420. }
  1421. .footBox {
  1422. height: 1rem;
  1423. display: flex;
  1424. flex-wrap: wrap;
  1425. justify-content: space-around;
  1426. align-items: center;
  1427. }
  1428. .footBox .box {
  1429. display: flex;
  1430. align-items: center;
  1431. }
  1432. /* 让球&大小 */
  1433. .letBallBox {
  1434. padding: 0 0.32rem;
  1435. height: 0.88rem;
  1436. font-size: 0.32rem;
  1437. background: #f4f4f4;
  1438. }
  1439. .mg {
  1440. margin-bottom: 0.1rem;
  1441. }
  1442. .Match-title-num {
  1443. width: 0.46rem;
  1444. height: 0.46rem;
  1445. align-items: center;
  1446. justify-content: center;
  1447. line-height: 0.46rem;
  1448. text-align: center;
  1449. background: #f76649;
  1450. font-size: 0.2rem;
  1451. border-radius: 50%;
  1452. color: #f5f5f5;
  1453. }
  1454. .Match-box-top-right > span {
  1455. width: 1.07rem;
  1456. text-align: center;
  1457. }
  1458. .listbox {
  1459. padding: 0.1rem 0.32rem;
  1460. }
  1461. .name-box {
  1462. height: 1.76rem;
  1463. width: 3.8rem;
  1464. }
  1465. .Match-box-top {
  1466. height: 0.44rem;
  1467. padding: 0 0.32rem;
  1468. /* line-height: 0.44rem; */
  1469. background: #dcdcdc;
  1470. font-size: 0.23rem;
  1471. }
  1472. .Match-box-top-num {
  1473. width: 0.64rem !important;
  1474. height: 0.44rem;
  1475. background: #ebebeb;
  1476. font-size: 0.24rem;
  1477. }
  1478. .texttop {
  1479. color: #f76649;
  1480. }
  1481. .Match-box {
  1482. /* padding: 0 0 0.12rem; */
  1483. background: #f8f8f8;
  1484. }
  1485. .Match-list-box {
  1486. /* width: 35%; */
  1487. height: 1.76rem;
  1488. flex-wrap: wrap;
  1489. position: relative;
  1490. }
  1491. .rbigMall{
  1492. position: absolute;
  1493. right: 0;
  1494. top: 0.1rem;
  1495. }
  1496. .rbigMall .letballGuest{
  1497. position: absolute;
  1498. top: 0.81rem;
  1499. right: 0;
  1500. }
  1501. .Match-list-box .match-list div {
  1502. width: 1.07rem;
  1503. height: 0.8rem;
  1504. border: 1px solid #cecece;
  1505. border-radius: 0.1rem;
  1506. flex-wrap: wrap;
  1507. }
  1508. .active {
  1509. background: #e4e4e4;
  1510. }
  1511. /* 后加 */
  1512. .Match-title-num {
  1513. width: 0.46rem;
  1514. height: 0.46rem;
  1515. line-height: 0.46rem;
  1516. text-align: center;
  1517. background: #f76649;
  1518. font-size: 0.26rem;
  1519. border-radius: 50%;
  1520. color: #f5f5f5;
  1521. }
  1522. .Match-box-top-right > span {
  1523. width: 1.07rem;
  1524. text-align: center;
  1525. }
  1526. .name-box {
  1527. height: 1.76rem;
  1528. }
  1529. .Match-box-top {
  1530. height: 0.45rem;
  1531. line-height: 0.45rem;
  1532. background: #dcdcdc;
  1533. font-size: 0.23rem;
  1534. padding: 0 0.32rem;
  1535. }
  1536. .Match-box-top-num {
  1537. width: 0.64rem !important;
  1538. height: 0.45rem;
  1539. background: #ebebeb;
  1540. font-size: 0.24rem;
  1541. }
  1542. .Match-box {
  1543. background: #f4f4f4;
  1544. }
  1545. .Match-bottom-right {
  1546. padding: 0 0.14rem;
  1547. }
  1548. .Match-list-left div {
  1549. width: 1.07rem;
  1550. height: 0.76rem;
  1551. border: 1px solid #e4e4e4;
  1552. border-radius: 0.1rem;
  1553. padding: 0.1rem;
  1554. margin: 0.06rem 0.08rem;
  1555. }
  1556. .Match-list-right div {
  1557. width: 1.07rem;
  1558. height: 0.76rem;
  1559. border: 1px solid #e4e4e4;
  1560. border-radius: 0.1rem;
  1561. margin: 0.06rem 0.08rem;
  1562. }
  1563. .active {
  1564. background: #f76649;
  1565. border: none;
  1566. color: #e1e1df !important;
  1567. }
  1568. .active span {
  1569. color: #e1e1df !important;
  1570. }
  1571. .active i {
  1572. color: #e1e1df !important;
  1573. }
  1574. /* 赔率 */
  1575. .Match-bottom-right {
  1576. height: 2rem;
  1577. width: 2.5rem;
  1578. padding: 0.1rem 0.1rem 0 0.14rem;
  1579. position: relative;
  1580. }
  1581. .letballHome,
  1582. .letballGuest,
  1583. .bigHome,
  1584. .bigGuest {
  1585. width: 1.07rem;
  1586. height: 0.76rem;
  1587. /* line-height: 0.76rem; */
  1588. border: 1px solid #e4e4e4;
  1589. border-radius: 0.1rem;
  1590. margin: 0.06rem 0.08rem;
  1591. /* padding: 0.1rem 0; */
  1592. /* margin: 0.06rem 0.6rem 0.06rem 0; */
  1593. text-align: center;
  1594. }
  1595. .letballGuest{
  1596. position: absolute;
  1597. bottom: 0.19rem;
  1598. }
  1599. .bigHome span,
  1600. .bigGuest span,
  1601. .letballHome span,
  1602. .letballGuest span {
  1603. display: block;
  1604. }
  1605. .bigHome {
  1606. position: absolute;
  1607. right: 0;
  1608. top: 0.1rem;
  1609. }
  1610. .bigGuest {
  1611. position: absolute;
  1612. right: 0;
  1613. top: 0.93rem;
  1614. }
  1615. .active span {
  1616. color: #e1e1df !important;
  1617. }
  1618. .capotBox{
  1619. display: flex;
  1620. flex-direction: column;
  1621. }
  1622. .ratio {
  1623. width: 1rem;
  1624. height: 0.76rem;
  1625. border: 1px solid #cecece;
  1626. margin-right: 0.14rem;
  1627. border-radius: 0.1rem;
  1628. margin: 0.06rem;
  1629. }
  1630. .locking{
  1631. display: flex;
  1632. justify-content: space-between;
  1633. flex-wrap: wrap;
  1634. align-items: center;
  1635. }
  1636. .stardLeft{
  1637. position: absolute;
  1638. left: 0.2rem;
  1639. }
  1640. .stardCenter{
  1641. position: absolute;
  1642. left: 2.9rem;
  1643. }
  1644. .stardRight{
  1645. position: absolute;
  1646. right: 0.2rem;
  1647. }
  1648. .stardBig{
  1649. display: flex;
  1650. align-items: center;
  1651. justify-content: center;
  1652. }
  1653. .stardBig .bigSmall{
  1654. color: #9b9999;
  1655. }
  1656. .mg{
  1657. margin-top: 0.2rem;
  1658. }
  1659. </style>