a3debdbe400e01ecf2435441f3bb703b59982cb6.svn-base 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154
  1. <template>
  2. <div :class="getBettingIsShow?'noscoll':''">
  3. <div class="lod">
  4. <Loading></Loading>
  5. </div>
  6. <div>
  7. <SportsHead></SportsHead>
  8. <div class="Serch">
  9. <div class="Soccer-game row center">
  10. <div class="Soccer-game-title row center" @click="isreturn()">
  11. <img class="returnimg" :src="searchreturn">
  12. {{name}}
  13. </div>
  14. </div>
  15. </div>
  16. <!-- 足球头部 -->
  17. <div class="bqHead zqHead" v-if="headStatus == 1">
  18. <div class="pd-10">
  19. <div class="match">
  20. <div class="tit">
  21. <span>{{list.leagueName}}</span>
  22. <div>
  23. <!-- <span v-if="list.match_time" class="scene">{{list.match_time.split(' ')[0]}} </span>
  24. &nbsp; -->
  25. <span v-if="list.match_time" class="time">{{list.match_ptime ? list.match_ptime : list.match_time.split(' ')[0]}}</span>
  26. </div>
  27. </div>
  28. <div class="info">
  29. <span>{{list.home_team}}</span>
  30. <span class="live-score">{{list.match_score ? list.match_score :'0-0'}}</span>
  31. <span>{{list.guest_team}}</span>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. <!-- 篮球头部 -->
  37. <!-- 篮球头部 -->
  38. <div class="header" v-if="headStatus == 2">
  39. <div class=" match">
  40. <div class="live">
  41. <div class="tit">{{list.leagueName}}</div>
  42. <div class="info">
  43. <div class="infoBody flex">
  44. <div class="matchTime" style="width:25%;">
  45. <span class="scene">第四节</span>
  46. <span class="time">00:00</span>
  47. </div>
  48. <div class="flex" style="width:75%;">
  49. <div class="right_info_row_qt">第一节</div>
  50. <div class="right_info_row_qt">第二节</div>
  51. <div class="right_info_row_qt">第三节</div>
  52. <div class="right_info_row_qt">第四节</div>
  53. <div class="right_info_row_qt">加时</div>
  54. <!-- <div class="right_info_row_qt scence">上半场</div>
  55. <div class="right_info_row_qt scence">下半场</div> -->
  56. <div class="right_info_row_qt scence">总计</div>
  57. </div>
  58. </div>
  59. <div class="infoRow">
  60. <div class="infoItem flex">
  61. <div style="width:25%;">
  62. <span class="team">{{list.home_team}}</span>
  63. </div>
  64. <div class="infoBox" style="width:75%">
  65. <div class="infoNum">22</div>
  66. <div class="infoNum">8</div>
  67. <div class="infoNum">13</div>
  68. <div class="infoNum col">13</div>
  69. <div class="infoNum"></div>
  70. <!-- <div class="infoNum scenceNum">30</div>
  71. <div class="infoNum col scenceNum">26</div> -->
  72. <div class="infoNum ycol scenceNum">54</div>
  73. </div>
  74. </div>
  75. <div class="infoItem flex">
  76. <div style="width:25%;">
  77. <span class="team">{{list.guest_team}}</span>
  78. </div>
  79. <div class="infoBox" style="width:75%">
  80. <div class="infoNum">22</div>
  81. <div class="infoNum">8</div>
  82. <div class="infoNum">13</div>
  83. <div class="infoNum col">13</div>
  84. <div class="infoNum"></div>
  85. <!-- <div class="infoNum scenceNum">30</div>
  86. <div class="infoNum col scenceNum">26</div> -->
  87. <div class="infoNum ycol scenceNum">54</div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <!-- 棒球头部 -->
  96. <div class="tennisHead" v-if="headStatus == 3">
  97. <div style="padding:0.1rem;">
  98. <div class="match">
  99. <div class="tit">
  100. <span>{{list.leagueName}}</span>
  101. </div>
  102. <div class="ballTable">
  103. <div class="listHead row allAlignment">
  104. <div class="txt-c-0">
  105. <div class="section">{{matchScoreDetails.schedule}}
  106. <span v-if="matchScoreDetails.type == 'h'">▲</span>
  107. <span v-else>▼</span>
  108. <!-- <span>▲</span> -->
  109. </div>
  110. </div>
  111. <div class="row ">
  112. <span class="session row center" v-for="(tiem,i) in 9" :key="tiem.id">
  113. {{i+1}}
  114. </span>
  115. <!-- <span class="mg-5">盘</span> -->
  116. <span class="mg-session row center">加时</span>
  117. <!-- <span class="mg-session row center">当前</span> -->
  118. <span class="mg-session row center" style="width:0.85rem;">总局数</span>
  119. </div>
  120. </div>
  121. <div class="row allAlignment scoreInfo">
  122. <div class="row">
  123. <div class="ballhold " :class="{attack:matchScoreDetails.type == 'h'}">•</div>
  124. <div class="team" style="text-align:left;">{{ list.home_team}}</div>
  125. </div>
  126. <div class="row">
  127. <span :class="{current:matchScoreDetails.schedule ==1}"
  128. class="session row center">{{matchScoreDetails.sc_1th_H}}</span>
  129. <span :class="{current:matchScoreDetails.schedule ==2}"
  130. class="session row center">{{matchScoreDetails.sc_2th_H}}</span>
  131. <span :class="{current:matchScoreDetails.schedule ==3}"
  132. class="session row center ">{{matchScoreDetails.sc_3th_H}}</span>
  133. <span :class="{current:matchScoreDetails.schedule ==4}"
  134. class="session row center">{{matchScoreDetails.sc_4th_H}}</span>
  135. <span :class="{current:matchScoreDetails.schedule ==5}"
  136. class="session row center">{{matchScoreDetails.sc_5th_H}}</span>
  137. <span :class="{current:matchScoreDetails.schedule ==6}"
  138. class="session row center">{{matchScoreDetails.sc_6th_H}}</span>
  139. <span :class="{current:matchScoreDetails.schedule ==7}"
  140. class="session row center">{{matchScoreDetails.sc_7th_H}}</span>
  141. <span :class="{current:matchScoreDetails.schedule ==8}"
  142. class="session row center">{{matchScoreDetails.sc_8th_H}}</span>
  143. <span :class="{current:matchScoreDetails.schedule ==9}"
  144. class="session row center">{{matchScoreDetails.sc_9th_H}}</span>
  145. <span class=" mg-session row center " style="background: rgba(255, 165, 0, 0.49);">{{matchScoreDetails.OT_H}}</span>
  146. <!-- <span class=" mg-session row center mark">{{matchScoreDetails.sc_ov_H}}</span> -->
  147. <span class="mg-session row center mark " style="width:0.85rem">{{matchScoreDetails.game_num_H}}</span>
  148. </div>
  149. </div>
  150. <div class="row allAlignment scoreInfo">
  151. <div class="row">
  152. <div class="ballhold" :class="{attack:matchScoreDetails.type == 'g'}">•</div>
  153. <div class="team" style="text-align:left;">{{list.guest_team}}</div>
  154. </div>
  155. <div class="row">
  156. <span :class="{current:matchScoreDetails.schedule ==1}" class="session row center">{{matchScoreDetails.sc_1th_C}}</span>
  157. <span :class="{current:matchScoreDetails.schedule ==2}" class="session row center">{{matchScoreDetails.sc_2th_C}}</span>
  158. <span :class="{current:matchScoreDetails.schedule ==3}" class="session row center">{{matchScoreDetails.sc_3th_C}}</span>
  159. <span :class="{current:matchScoreDetails.schedule ==4}" class="session row center">{{matchScoreDetails.sc_4th_C}}</span>
  160. <span :class="{current:matchScoreDetails.schedule ==5}" class="session row center">{{matchScoreDetails.sc_5th_C}}</span>
  161. <span :class="{current:matchScoreDetails.schedule ==6}" class="session row center">{{matchScoreDetails.sc_6th_C}}</span>
  162. <span :class="{current:matchScoreDetails.schedule ==7}" class="session row center">{{matchScoreDetails.sc_7th_C}}</span>
  163. <span :class="{current:matchScoreDetails.schedule ==8}" class="session row center">{{matchScoreDetails.sc_8th_C}}</span>
  164. <span :class="{current:matchScoreDetails.schedule ==9}" class="session row center">{{matchScoreDetails.sc_9th_C}}</span>
  165. <span class=" mg-session row center " style="background: rgba(255, 165, 0, 0.49);">{{matchScoreDetails.OT_C}}</span>
  166. <!-- <span class=" mg-session row center mark">{{matchScoreDetails.sc_ov_A}}</span> -->
  167. <span class="mg-session row center mark " style="width:0.85rem">{{matchScoreDetails.game_num_C}}</span>
  168. </div>
  169. </div>
  170. <div class="listHead row allAlignment">
  171. <div class="row center">
  172. <div class="eliminate ">
  173. <span :class="{spanBox:matchScoreDetails.baseman_2 !='N'}" style="margin-left:.11rem;"></span>
  174. <div style="width:.31rem;" class="row allAlignment">
  175. <span :class="{spanBox:matchScoreDetails.baseman_3 !='N'}"></span>
  176. <span :class="{spanBox:matchScoreDetails.baseman_1 !='N'}"></span>
  177. </div>
  178. </div>
  179. </div>
  180. <div>
  181. <span>出局:</span>
  182. <span>{{matchScoreDetails.out_game_num}}</span>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. <!-- 网球头部 -->
  190. <div class="tennisHead" style="padding:0.1rem;" v-if="headStatus == 4">
  191. <div class="ballTable">
  192. <div class="txt" style=" color:#fff">
  193. <span>{{list.leagueName}}</span>
  194. </div>
  195. <div class="listHead row allAlignment">
  196. <div class="txt">
  197. <!-- <div class="spanCol">第{{scoreDetails.cp == 1?'一' : scoreDetails.cp ==2 ? "二": scoreDetails.cp ==3 ? "三":scoreDetails.cp== 4 ? "四":"五" }}节</div> -->
  198. <div class="spanCol">第一节</div>
  199. <!-- <div class="delay">天气原因延期</div> -->
  200. </div>
  201. <div class="headerTop row rightAlignment">
  202. <span v-for="(item,i) in 5" :key="item.id">{{i+1}}</span>
  203. <span class="mg-5">分数</span>
  204. <span class="mg-5">盘</span>
  205. <span class="mg-5" style="width:0.8rem;">总局</span>
  206. </div>
  207. </div>
  208. <!-- 主队 -->
  209. <div class="row allAlignment list">
  210. <div class="row">
  211. <!-- <div class="ballhold" style="color: rgb(197, 210, 60);">•</div> -->
  212. <div class="team" style="text-align:left;">{{list.home_team}}</div>
  213. </div>
  214. <div class="score row rightAlignment">
  215. <span class="spanCol">6</span>
  216. <span class="spanCol">3</span>
  217. <span class="spanCol">0</span>
  218. <span class="spanCol">0</span>
  219. <span class="spanCol">0</span>
  220. <span class="mg-5 mark cl" style="background: rgba(255, 165, 0, 0.49);">40</span>
  221. <span class="mg-5 mark">0</span>
  222. <span class="mg-5 mark sumCl" style="width:0.8rem">4</span>
  223. </div>
  224. </div>
  225. <!-- 客队 -->
  226. <div class="row allAlignment list">
  227. <div class="row">
  228. <!-- <span class="ballhold" style="color:#fff;">•</span> -->
  229. <span class="team" style="text-align:left;">{{list.guest_team}}</span>
  230. </div>
  231. <div class="score row rightAlignment">
  232. <span class="spanCol">2</span>
  233. <span class="spanCol">2</span>
  234. <span class="spanCol">0</span>
  235. <span class="spanCol">0</span>
  236. <span class="spanCol">0</span>
  237. <span class="mg-5 mark cl" style="background: rgba(255, 165, 0, 0.49);">40</span>
  238. <span class="mg-5 mark">0</span>
  239. <span class="mg-5 mark sumCl" style="width:0.8rem;">2</span>
  240. </div>
  241. </div>
  242. <div></div>
  243. </div>
  244. <!-- </div>
  245. </div>-->
  246. </div>
  247. <!-- 原始头部 -->
  248. <div class="gambling" v-show="this.list" v-if="headStatus == 0">
  249. <div class="leagueMatch row average">
  250. <yd-button size="large" @click.native="show = true"></yd-button>
  251. <div class="leagueName">
  252. <span>{{list.leagueName}}</span>
  253. </div>
  254. <div class="teamName">
  255. <span>{{list.home_team}}</span>
  256. <div class="vs">vs</div>
  257. <span>{{list.guest_team}}</span>
  258. </div>
  259. <div class="time" :style="status == true?'':'width:2rem;'">
  260. <span>{{list.match_ptime? list.match_ptime :list.match_time }}</span>
  261. </div>
  262. <div v-if="satatus" class="icon" :class="status == true ? 'rotate':'backRotate'">
  263. <i></i>
  264. </div>
  265. </div>
  266. <div class="box">
  267. <div id="NavSlide">
  268. <nav>
  269. <p v-for="(item,$index) in key" @click="toggleNav($index)" :key="$index">
  270. <span :class="{active:$index==active}">{{item}}</span>
  271. </p>
  272. </nav>
  273. </div>
  274. </div>
  275. <!-- 模态框 -->
  276. <yd-popup v-if="satatus" v-model="show" position="center" width="90%">
  277. <div class="modality">
  278. <div
  279. class="list"
  280. v-for="(item,index) in list.league"
  281. :key="index"
  282. @click="check(index,item.match_id)"
  283. >
  284. <span :class="match_id == item.match_id?'col':''">{{item.home_team}}</span>
  285. <span :class="match_id == item.match_id?'col':''">v</span>
  286. <span :class="match_id == item.match_id?'col':''">{{item.guest_team}}</span>
  287. </div>
  288. </div>
  289. </yd-popup>
  290. </div>
  291. <div v-show="isShow">
  292. <!--让球大小-->
  293. <div v-show="Single =='进球:大/小' || isAll ">
  294. <goal></goal>
  295. </div>
  296. <!--让球-->
  297. <div v-show="Single =='让球' || isAll ">
  298. <LetBall></LetBall>
  299. </div>
  300. <!--最先/最后进球-->
  301. <div v-show="Single =='首粒入球/最后一粒入球' || isAll ">
  302. <StartEnd></StartEnd>
  303. </div>
  304. <!-- 总进球数 -->
  305. <div v-show="Single =='总进球数' || isAll ">
  306. <GoalSize></GoalSize>
  307. </div>
  308. <!--独赢-->
  309. <div v-show="Single =='独赢'|| Single =='独赢盘'|| isAll ">
  310. <OnlyWin></OnlyWin>
  311. </div>
  312. <!-- 波胆 -->
  313. <div v-show="Single =='波胆' || isAll ">
  314. <div v-if="name == '网球'">
  315. <TennisWaveBravery/>
  316. </div>
  317. <div v-else>
  318. <WaveBladder></WaveBladder>
  319. </div>
  320. </div>
  321. <!--入球数单双-->
  322. <div v-show="Single =='进球:单/双'|| Single =='总分:单/双' || isAll ">
  323. <div v-if="name =='篮球' || name =='棒球'">
  324. <TotalScoreSingleDouble/>
  325. </div>
  326. <div v-else>
  327. <GoalSingleAndDouble></GoalSingleAndDouble>
  328. </div>
  329. </div>
  330. <!--半场/全场-->
  331. <div v-show="Single =='半场/全场'|| isAll ">
  332. <FullHalf></FullHalf>
  333. </div>
  334. <!-- 角球
  335. <div v-show="Single =='角球' || isAll ">
  336. <Corner></Corner>
  337. </div> -->
  338. <!-- 球队进球大小 -->
  339. <div v-show="Single =='球队进球数:大/小' || isAll ">
  340. <TeamGoalSize></TeamGoalSize>
  341. </div>
  342. <!-- 总得分:大/小 -->
  343. <div v-show="Single =='总得分:大/小' || isAll ">
  344. <TotalScoreSize></TotalScoreSize>
  345. </div>
  346. <!-- 总得分:大/小 前五 -->
  347. <div v-show="Single =='总得分:大/小' || isAll ">
  348. <TotalScoreSizeFive></TotalScoreSizeFive>
  349. </div>
  350. <!-- 总得分:大/小 上半场 -->
  351. <div v-show="Single =='总得分:大/小' || isAll ">
  352. <TotalScoreHalfSize></TotalScoreHalfSize>
  353. </div>
  354. <!-- 总得分:大/小 节数-->
  355. <div v-show="Single =='总得分:大/小' || isAll ">
  356. <TotalScoreSectionSize></TotalScoreSectionSize>
  357. </div>
  358. <!-- 球队得分最后一位数 -->
  359. <div v-show="Single =='球队得分最后一位数' || isAll ">
  360. <TeamScoreLast></TeamScoreLast>
  361. </div>
  362. <!-- 总局数:大/小 -->
  363. <div v-show="Single =='总局数:大/小' || isAll ">
  364. <InningsSize></InningsSize>
  365. </div>
  366. <!-- 总局数:单/双 -->
  367. <div v-show="Single =='总局数单双' || isAll ">
  368. <InningsSingleDouble></InningsSingleDouble>
  369. </div>
  370. <!-- 冠军 -->
  371. <div v-show="Single =='冠军' || isAll ">
  372. <MatchChampion></MatchChampion>
  373. </div>
  374. <!-- 让盘 -->
  375. <div v-show="Single =='让盘' || isAll ">
  376. <LetPlate></LetPlate>
  377. </div>
  378. <!-- 让局 -->
  379. <div v-show="Single =='让局' || isAll ">
  380. <LetBureau></LetBureau>
  381. </div>
  382. </div>
  383. <div v-if="!isShow">
  384. <NotOpend :title="tipsTitle"></NotOpend>
  385. </div>
  386. <!-- <StLinkFooter></StLinkFooter> -->
  387. <BettingWindow v-if="isBettingWindow== '100'"/>
  388. </div>
  389. </div>
  390. </template>
  391. <script>
  392. import Goal from "@/components/StGoal";
  393. import LetBall from "@/components/StLetBall";
  394. import NotOpend from "@/components/StNotOpend";
  395. import Loading from "@/components/StLoading";
  396. import WaveBladder from "@/components/StWaveBladder";
  397. import StLinkFooter from "@/components/StLinkFooter";
  398. import SportsHead from "@/components/StSportsHead";
  399. import OnlyWin from "@/components/StOnlyWin";
  400. import GoalSize from "@/components/StGoalSize";
  401. import StartEnd from "@/components/StStartEnd";
  402. import FullHalf from "@/components/StFullHalf";
  403. import TeamGoalSize from "@/components/StTeamGoalSize";
  404. import TotalScoreSize from "@/components/StTotalScoreSize";
  405. import TotalScoreSizeFive from "@/components/StTotalScoreSizeFive";
  406. import TotalScoreHalfSize from "@/components/StTotalScoreHalfSize";
  407. import TotalScoreSectionSize from "@/components/StTotalScoreSectionSize";
  408. import TeamScoreLast from "@/components/StTeamScoreLast";
  409. import GoalSingleAndDouble from "@/components/StGoalSingleAndDouble";
  410. import Corner from "@/components/StCorner";
  411. import TotalScoreSingleDouble from "@/components/StTotalScoreSingleDouble";
  412. import BettingWindow from "@/components/StBettingWindow";
  413. import MatchChampion from "@/components/StMatchChampion";
  414. import InningsSingleDouble from "@/components/StInningsSingleDouble";
  415. import InningsSize from "@/components/StInningsSize";
  416. import LetPlate from "@/components/StLetPlate";
  417. import LetBureau from "@/components/StLetBureau";
  418. import TennisWaveBravery from "@/components/StTennisWaveBravery";
  419. export default {
  420. data() {
  421. return {
  422. name:this.$route.query.name, // 球名
  423. searchreturn: require("@/assets/st-imges/returnbox.png"),
  424. gameCode: this.$route.query.gameCode, //别名
  425. match_id: "",
  426. list:'', //数据
  427. previousStorage:'',//前一次list储存数据
  428. key: [], //存储key值进行判定
  429. isShow: "", //更具数据是否显示
  430. getBettingIsShow:false,// 判断投注框背景可否滚动
  431. status: false,
  432. tipsTitle: "暂无相关数据信息",
  433. active: 0,// 投注页是否打开
  434. isBettingWindow: '-1',
  435. // isIphone: false,//是否ios
  436. // isAndroid: false,//是否Android
  437. show: false, //是否显示模态框
  438. satatus: true,
  439. isAll: true,
  440. Single: "",
  441. timers : true,//是否开启轮询
  442. headStatus : 0 ,// 头部显示滚球(1为足球,2为篮球,3为棒球,4为网球),0为普通
  443. matchScoreDetails:'',//比赛得分详情
  444. };
  445. },
  446. methods: {
  447. // 返回上一页
  448. isreturn() {
  449. history.go(-1);
  450. },
  451. //滚球比赛比分详情
  452. scoreDetails(data){
  453. //比赛得分详细
  454. let matchScoreDetails = JSON.parse(data);
  455. if(matchScoreDetails.schedule){
  456. if(matchScoreDetails.schedule.startsWith('Topof')){
  457. matchScoreDetails.type = 'h'
  458. }else if(matchScoreDetails.schedule.startsWith('Bottomof')){
  459. matchScoreDetails.type = 'g'
  460. }
  461. matchScoreDetails.schedule = matchScoreDetails.schedule.match(/\d+/g)[0]
  462. this.matchScoreDetails = matchScoreDetails;
  463. }
  464. },
  465. //页面初始化接口请求
  466. getAjax: function(game_code, matchID,oddsType) {
  467. this.$http.get(this.$ports.gambling.matchOdds, {
  468. oddsType,
  469. game_code,
  470. matchID
  471. }).then(res => {
  472. if (res.data.status == 1 && res.data.data) {
  473. // console.log(res.data.data,'1');
  474. //result_mark
  475. //滚球头部数据处理
  476. if(res.data.data.result_mark){
  477. this.scoreDetails(res.data.data.result_mark);
  478. }
  479. // console.log(res.data.data.result_mark,'比赛得分详细');
  480. this.key = [];
  481. if ( res.data.data.oddsData == [] ||res.data.data.oddsData.length == 0 ||res.data.data.oddsData == null) {
  482. this.$store.dispatch("GETSHOW", false);
  483. this.isShow = false;
  484. return false;
  485. }
  486. this.list = res.data.data;
  487. this.satatus = this.list.league.length > 1 ? true :false;
  488. let arrayData = [];
  489. let key =res.data.data.p_code_array ;//Object.keys(res.data.data.p_code_array);
  490. let values = this.$store.getters.getPlayAlias;
  491. //this.$store.getters.getPlayAlias;
  492. this.isShow = true;
  493. this.key = ["所有盘口"];
  494. key.forEach((e, index) => {
  495. //console.log('e',e);
  496. values.forEach(val=>{
  497. if(e == val.odds_code && this.$store.getters.getBallId == val.game_code){
  498. if((this.name == '篮球' && val.odds_name =='入球数单双') || (this.name == '棒球' && val.odds_name =='入球数单双')){
  499. val.odds_name ='总分:单双'
  500. }
  501. this.key.push(val.odds_name);
  502. }
  503. })
  504. let stripData = [];
  505. this.list.oddsData.forEach(data => {
  506. if (data.p_code == e) {
  507. stripData.push(data);
  508. }
  509. arrayData[index] = stripData;
  510. });
  511. });
  512. //更新数据和上一次的数据匹配
  513. let storage =this.previousStorage;
  514. //console.log('storage',arrayData)
  515. if(storage && storage.match_id == this.list.match_id && storage.oddsData.length > 0){
  516. arrayData.forEach(e=>{
  517. storage.oddsData.forEach((res,index)=>{
  518. if(e[0].p_code == res[0].p_code){
  519. e.forEach(dat=>{
  520. res.forEach((val,i)=>{
  521. if(dat.id == val.id){
  522. if(dat.odds > val.odds){
  523. dat.change ='add';
  524. }else if(dat.odds < val.odds){
  525. dat.change = 'red';
  526. }else{
  527. dat.change ='';
  528. }
  529. res.splice(i,1)
  530. }
  531. })
  532. })
  533. storage.oddsData.splice(index,1)
  534. }
  535. })
  536. })
  537. }
  538. // console.log(this.previousStorage);
  539. this.list.oddsData = arrayData;
  540. this.previousStorage =this.list;
  541. this.$store.dispatch("GETGAMERATIO", this.list);
  542. //console.log("数据源", arrayData);
  543. }
  544. let _this=this;
  545. setTimeout(()=>{
  546. this.$store.dispatch("GETSHOW", false);
  547. },1000)
  548. });
  549. },
  550. /**
  551. * 切换赛事
  552. */
  553. check(index, match_id) {
  554. let oddsType = localStorage.getItem('activity');
  555. this.show = false;
  556. if (this.list.match_id == match_id) return false;
  557. this.match_id = match_id;
  558. this.$store.dispatch("MACTH_ID", match_id);
  559. this.$store.dispatch("GETSHOW", true);
  560. this.getAjax(this.gameCode, match_id,oddsType);
  561. },
  562. /**
  563. * 切换玩法类型
  564. */
  565. toggleNav: function(index) {
  566. this.active = index;
  567. if (this.key[index] == "所有盘口") {
  568. this.isAll = true;
  569. } else {
  570. this.isAll = false;
  571. this.Single = this.key[index];
  572. }
  573. }
  574. },
  575. /**
  576. * 计算属性
  577. */
  578. computed: {
  579. getIsBettingType() {
  580. return this.$store.getters.getIsBetting;
  581. },
  582. // 获取投注框展示状态
  583. getBettingCase(){
  584. //console.log(this.$store.getters.getNoRoll,'aaaaa')
  585. return this.$store.getters.getNoRoll
  586. },
  587. },
  588. /**
  589. * 监听器
  590. */
  591. watch: {
  592. // 监听投注框开关
  593. getIsBettingType(val) {
  594. if(val=='-1'){
  595. this.$store.dispatch('SET_NOROLL',false)
  596. }
  597. this.isBettingWindow = val;
  598. },
  599. getBettingCase(val){
  600. this.getBettingIsShow=val
  601. },
  602. },
  603. /**
  604. *
  605. */
  606. mounted() {
  607. let ballId = this.$store.getters.getBallId;
  608. let acty = this.$store.getters.getActivity;
  609. if(acty == 'StRollBall'){
  610. if(ballId == 'zq'){
  611. this.headStatus = 1;
  612. }else if(ballId == 'lq'){
  613. this.headStatus = 2;
  614. }else if(ballId == 'bq'){
  615. this.headStatus = 3;
  616. }else if(ballId == 'wq'){
  617. this.headStatus = 4
  618. }
  619. }else{
  620. this.headStatus = 0;
  621. }
  622. let _this = this;
  623. this.match_id = this.$store.getters.getMatchId;
  624. let oddsType = localStorage.getItem('activity');
  625. this.$store.dispatch("GETSHOW", true);
  626. this.getAjax(this.gameCode, this.match_id,oddsType);
  627. //this.timers =true;
  628. this.$public.ajaxTimerFun(function(timing) {
  629. if (_this.timers) {
  630. _this.getAjax(_this.gameCode, _this.match_id,oddsType);
  631. // _this.updateAjax(_this.gameCode, _this.match_id);
  632. }else{
  633. clearInterval(timing);
  634. }
  635. },(1000*15));
  636. if (this.$store.getters.getIsBetting == '100') {
  637. this.isBettingWindow = 100;
  638. }
  639. },
  640. /**
  641. * 关闭当前页面钩子函数
  642. */
  643. beforeDestroy() {
  644. this.timers = false;
  645. },
  646. components: {
  647. Corner,
  648. LetBall,
  649. Goal,
  650. WaveBladder,
  651. StLinkFooter,
  652. SportsHead,
  653. OnlyWin,
  654. StartEnd,
  655. GoalSize,
  656. FullHalf,
  657. GoalSingleAndDouble,
  658. TeamGoalSize,
  659. Loading,
  660. NotOpend,
  661. BettingWindow,
  662. TotalScoreSize,
  663. TotalScoreSizeFive,
  664. TotalScoreHalfSize,
  665. TotalScoreSectionSize,
  666. TeamScoreLast,
  667. TotalScoreSingleDouble,
  668. MatchChampion,
  669. InningsSingleDouble,
  670. InningsSize,
  671. LetPlate,
  672. LetBureau,
  673. TennisWaveBravery
  674. }
  675. };
  676. </script>
  677. <style scoped>
  678. /* 禁止滚动 */
  679. .noscoll{
  680. position: fixed;
  681. width: 100%;
  682. top: 0;
  683. left: 0;
  684. }
  685. /* 头部 */
  686. .Serch {
  687. height: 0.88rem;
  688. display: flex;
  689. justify-content: space-between;
  690. align-items: center;
  691. background: linear-gradient(to bottom, #6a6a6a, #565656);
  692. color: #f76649;
  693. font-family: "PingFang-SC-Regular";
  694. padding: 0 0.33rem;
  695. }
  696. .returnimg {
  697. width: 0.37rem;
  698. height: 0.3rem;
  699. margin-right: 0.1rem;
  700. }
  701. .Soccer-game-title {
  702. height: 0.88rem;
  703. font-size: 0.3rem;
  704. }
  705. .Soccer-game-box {
  706. height: 0.88rem;
  707. /* padding: 0 0.32rem; */
  708. background-color: #626262;
  709. }
  710. .gambling {
  711. background: #f8f8f8;
  712. }
  713. .leagueMatch {
  714. position: relative;
  715. padding: 0.3rem 0.32rem;
  716. display: flex;
  717. justify-content: space-between;
  718. align-items: center;
  719. flex-wrap: nowrap;
  720. border-bottom: 1px solid #e4e4e4;
  721. background: linear-gradient(to top, #ffe9c9, #fff3e2);
  722. }
  723. .leagueMatch div {
  724. font-size: 0.28rem;
  725. text-align: left;
  726. color: #333333;
  727. }
  728. .leagueName {
  729. width: 2.26rem;
  730. }
  731. .leagueMatch .teamName {
  732. text-align: center;
  733. }
  734. .teamName .vs {
  735. text-align: center;
  736. font-size: 0.24rem;
  737. color: #fd8f26;
  738. }
  739. .leagueMatch .time {
  740. width: 1.3rem;
  741. color: #333333;
  742. font-size: 0.24rem;
  743. text-align: center;
  744. }
  745. .leagueMatch .icon i {
  746. display: inline-block;
  747. width: 0.4rem;
  748. height: 0.4rem;
  749. background: url("../../../assets/st-imges/xiangxia.png") no-repeat;
  750. background-size: 100% 100%;
  751. transform: rotate(180deg);
  752. }
  753. .leagueMatch .rotate {
  754. transform: rotate(180deg);
  755. transition: 0.2s;
  756. }
  757. .leagueMatch .backRotate {
  758. transform: rotate(0deg);
  759. transition: 0.2s;
  760. }
  761. .box {
  762. padding: 0 0.14rem;
  763. background: #f8f8f8;
  764. }
  765. #NavSlide {
  766. width: 100%;
  767. overflow: hidden;
  768. height: 0.88rem;
  769. }
  770. #NavSlide nav {
  771. display: -webkit-box;
  772. display: -ms-flexbox;
  773. display: flex;
  774. -webkit-box-align: middle;
  775. -ms-flex-align: middle;
  776. align-items: middle;
  777. overflow: auto;
  778. }
  779. #NavSlide p {
  780. text-align: center;
  781. font-size: 0.28rem;
  782. -ms-flex-negative: 0;
  783. flex-shrink: 0;
  784. padding: 0 0.2rem 0 0;
  785. margin: 0 0.1rem 0 0;
  786. color: #b8b8b8;
  787. height: 0.88rem;
  788. line-height: 0.88rem;
  789. }
  790. /* #NavSlide p a{
  791. color: #E5E5E5;
  792. text-decoration: none;
  793. } */
  794. #NavSlide p span.active {
  795. color: #363636;
  796. }
  797. #NavSlide .fixadd {
  798. position: absolute;
  799. right: -4px;
  800. background-color: #31c17b;
  801. }
  802. button.yd-btn-block {
  803. background: #f8f8f8;
  804. position: absolute;
  805. left: 0;
  806. top: 0;
  807. width: 100%;
  808. height: 100%;
  809. /* z-index: -1; */
  810. margin: 0;
  811. opacity: 0;
  812. }
  813. .modality {
  814. text-align: center;
  815. background: #fbfbfb;
  816. padding: 0.2rem 0;
  817. height: 5rem;
  818. /* overflow: hidden; */
  819. }
  820. .modality span {
  821. color: #000000;
  822. font-size: 0.28rem;
  823. }
  824. .modality div {
  825. /* margin: 0.06rem 0; */
  826. padding: 0.2rem 0;
  827. background: #fbfbfb;
  828. border-bottom: 1px solid #e4e4e4;
  829. }
  830. .modality div .col {
  831. color: #fd8f26;
  832. }
  833. .lod{
  834. z-index: 999;
  835. position: fixed;
  836. width: 100%;
  837. }
  838. /* 滚球足球头部 */
  839. /* 棒球头部 */
  840. .bqHead {
  841. background: url("../../../assets/st-imges/1baseball.png") no-repeat;
  842. background-size: 100% 100%;
  843. font-size: 0.18rem;
  844. }
  845. .zqHead {
  846. color: #fff;
  847. background: url("../../../assets/st-imges/1football.png") no-repeat;
  848. background-size: 100% 100%;
  849. font-size: 0.18rem;
  850. }
  851. .eliminate span {
  852. display: block;
  853. width: 0.1rem;
  854. height: 0.1rem;
  855. background: #ccc;
  856. transform: rotate(45deg);
  857. }
  858. .spanBox {
  859. background: orange !important;
  860. }
  861. .ballhold{
  862. /* color:#fff; */
  863. font-size: 0.2rem;
  864. margin-right: 4px;
  865. }
  866. .current{
  867. color: orange;
  868. }
  869. .session{
  870. width:0.3rem;
  871. }
  872. .mark{
  873. background: hsla(0, 0%, 100%, 0.25);
  874. }
  875. .scoreInfo{
  876. line-height: 0.5rem;
  877. padding: 0 0.1rem ;
  878. }
  879. .mg-session{
  880. width:0.7rem;
  881. }
  882. .bqHead .pd-10 {
  883. padding: 0.1rem;
  884. }
  885. .bqHead .tit {
  886. display: flex;
  887. align-items: center;
  888. justify-content: space-between;
  889. }
  890. .match .info {
  891. background: rgba(0, 0, 0, 0.5);
  892. height: 0.52rem;
  893. line-height: 0.52rem;
  894. font-size: 15px;
  895. text-align: center;
  896. font-size: 0.28rem;
  897. }
  898. .match .info .pk,
  899. .match .tit .scene {
  900. font-weight: bold;
  901. color: rgb(254, 146, 0);
  902. }
  903. .tit .time {
  904. color: #bd4700;
  905. }
  906. .tit span{
  907. font-size: 0.26rem;
  908. }
  909. .welcome {
  910. height: 0.36rem;
  911. line-height: 0.36rem;
  912. font-size: 0.16rem;
  913. padding: 0 0.1rem;
  914. background: #4e4e4e;
  915. color: black;
  916. }
  917. /* 篮球头部 */
  918. .header .match{
  919. background: #c28d47;
  920. background-image: url("../../../assets/st-imges/1basketball.png") no-repeat;
  921. background-size: 100% 100%;
  922. color: #fff;
  923. }
  924. .flex{
  925. display: flex;
  926. justify-content: space-between;
  927. align-items: center;
  928. }
  929. .header .match .live{
  930. padding: 0.06rem;
  931. }
  932. /* .live .tit{
  933. height: 30px;
  934. line-height: 30px;
  935. font-size: 0.14rem;
  936. } */
  937. .match .info{
  938. margin-top: 0.1rem;
  939. position: relative;
  940. height: auto;
  941. background: rgba(0,0,0,.5);
  942. line-height: 52px;
  943. font-size: 15px;
  944. text-align: center;
  945. }
  946. .infoBody{
  947. background: #000;
  948. opacity: .85;
  949. height: 0.52rem;
  950. padding-left: 0.1rem;
  951. font-size: 0.14rem;
  952. }
  953. .matchTime span{
  954. display: inline-block;
  955. }
  956. .matchTime .scene{
  957. color: #ff9200;
  958. margin-right: 0.06rem;
  959. }
  960. .matchTime .time{
  961. color: #b4b4b4;
  962. }
  963. .right_info_row_qt{
  964. width: 0.85rem;
  965. font-size: 0.12rem;
  966. text-align: center;
  967. /* padding: 0.04rem; */
  968. color: #787878;
  969. /* box-sizing: border-box; */
  970. /* font-weight: 700;
  971. font-family: serif; */
  972. }
  973. .infoRow{
  974. padding-left: 0.1rem;
  975. }
  976. .scence{
  977. width: 0.75rem;
  978. padding: 0;
  979. /* padding-top: 0.19rem; */
  980. }
  981. .infoItem{
  982. height: 0.5rem;
  983. line-height: 0.24rem;
  984. width: auto
  985. }
  986. .infoBox{
  987. width: 2.73rem;
  988. height:0.5rem;
  989. display: flex;
  990. align-items: center;
  991. justify-content: space-between;
  992. /* right: 0; */
  993. /* position: absolute; */
  994. }
  995. .infoBox > div{
  996. width: .75rem;
  997. }
  998. .infoNum{
  999. width: 0.25rem;
  1000. font-size: 0.13rem;
  1001. line-height: 0.28rem;
  1002. padding: 0;
  1003. height: 100%;
  1004. line-height: 0.5rem;
  1005. color: #fff;
  1006. font-weight: 400;
  1007. text-align: center;
  1008. font-family: sans-serif;
  1009. }
  1010. .scenceNum{
  1011. background: hsla(0,0%,100%,.16);
  1012. width: 0.52rem;
  1013. margin-left: 1px;
  1014. }
  1015. .infoItem .team{
  1016. font-size: 0.16rem;
  1017. }
  1018. .col{
  1019. color: #ff9200;
  1020. }
  1021. .ycol{
  1022. color:#dcbc4c;
  1023. }
  1024. /* 网球头部 */
  1025. .tennisHead {
  1026. background: url("../../../assets/st-imges/tennisball.png") no-repeat;
  1027. background-size: 100% 100%;
  1028. width: 100%;
  1029. height: auto;
  1030. }
  1031. .ordinaryHead .match .info{
  1032. display: flex;
  1033. }
  1034. .match {
  1035. color: #fff;
  1036. height: auto;
  1037. }
  1038. .match .tit {
  1039. height: 0.32rem;
  1040. line-height: 0.32rem;
  1041. /* margin-top: -4px; */
  1042. }
  1043. .ballTable{
  1044. background: rgba(0, 0, 0, 0.2);
  1045. }
  1046. .listHead {
  1047. padding: 0 0.1rem;
  1048. line-height: 0.5rem;
  1049. background: rgba(0, 0, 0, 0.15);
  1050. color: #fff;
  1051. }
  1052. .listHead .txt-c-0 {
  1053. color: orange;
  1054. }
  1055. .listHead .spanCol{
  1056. color: orange;
  1057. }
  1058. .headerTop {
  1059. width: 50%;
  1060. }
  1061. .score {
  1062. width: 50%;
  1063. }
  1064. .score span {
  1065. display: inline-block;
  1066. width: 0.3rem;
  1067. text-align: center;
  1068. }
  1069. .score span.mg-5 {
  1070. width: 0.7rem;
  1071. }
  1072. .headerTop span {
  1073. display: inline-block;
  1074. width: 0.3rem;
  1075. text-align: center;
  1076. }
  1077. .headerTop span.mg-5 {
  1078. width: 0.7rem;
  1079. }
  1080. .mark {
  1081. background: hsla(0, 0%, 100%, 0.25);
  1082. }
  1083. .list {
  1084. background: hsla(0, 0%, 100%, 0.2);
  1085. line-height: 0.4rem;
  1086. padding: 0 0.1rem;
  1087. color: #fff;
  1088. }
  1089. .cl {
  1090. color: orange;
  1091. }
  1092. .sumCl {
  1093. color: #ff0;
  1094. }
  1095. .welcome{
  1096. height: .5rem;
  1097. line-height: 0.5rem;
  1098. font-size: 0.16rem;
  1099. padding: 0 0.1rem;
  1100. background: #898989;
  1101. color: #fff;
  1102. }
  1103. .ordinaryHead {
  1104. background: url("../../../assets/st-imges/1football.png") no-repeat;
  1105. background-size: 100% 100%;
  1106. /* padding: 0.04rem; */
  1107. /* height: 1.2rem; */
  1108. /* line-height: 1.2rem; */
  1109. }
  1110. .ordinaryHead .match {
  1111. color: #fff;
  1112. }
  1113. .ordinaryHead .match .info {
  1114. padding: 0 0.2rem;
  1115. display: flex;
  1116. justify-content: space-between;
  1117. align-items: center;
  1118. }
  1119. .ordinaryHead .match .info div span{
  1120. font-size: 0.22rem;
  1121. }
  1122. .match .time {
  1123. font-weight: 400;
  1124. color: #bd4700;
  1125. margin-left: 0.05rem;
  1126. }
  1127. .live-score {
  1128. padding: 0 8%;
  1129. }
  1130. .attack{
  1131. color: rgb(197, 210, 60);
  1132. }
  1133. </style>