8d35a2e5975fa00a41a946447c5d9edb9dab2936.svn-base 62 KB

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