ccb40438df5466da8b5e9155833aac8a1afed68f.svn-base 63 KB

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