ba8256e17879e88b28a60d36d6b54af9ae6c5b4f.svn-base 62 KB

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