689a954d28c15c6f05ea7b497b3ba505614b0c31.svn-base 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  1. <template>
  2. <div>
  3. <div class="Serch">
  4. <div class="Soccer-game row center">
  5. <div class="Soccer-game-title row center">
  6. <img class="returnimg" :src="img.searchreturn" @click="isreturn()">
  7. <span class="tit">{{title}}</span>
  8. </div>
  9. <div
  10. class="row center"
  11. style="height:0.88rem;padding-left:0.1rem;"
  12. @click="IsSoccerGameClick(isSoccerGameClick)"
  13. >
  14. <img
  15. :class="isSoccerGameClick==true?'Soccer-game-src act':'Soccer-game-src return'"
  16. :src="img.Soccerimg1"
  17. >
  18. </div>
  19. </div>
  20. <div class="Serch-box">
  21. <div class="Serch-box-home">
  22. <img class="Serch-box-img" :src="img.Serchimg">
  23. <input
  24. v-model="SerchValue"
  25. @input="serchchange(SerchValue)"
  26. class="Serch-box-input"
  27. type="text"
  28. placeholder="请输入联赛名称"
  29. >
  30. <img
  31. class="Serch-box-del"
  32. @click="delinputvalue()"
  33. v-if="Serchchange==true"
  34. :src="img.Serchdel"
  35. >
  36. </div>
  37. </div>
  38. </div>
  39. <div class="Soccer-game-box row" v-if="isSoccerGameClick==true">
  40. <p
  41. class="row item-center"
  42. v-for="(i,index) in Regulations.list"
  43. @click="listActive(i.id,i.name,i.num)"
  44. :key="index"
  45. :class="listnum==i.id?'active':''"
  46. >
  47. {{i.name}}
  48. <span
  49. class="Soccer-game-num"
  50. v-if="i.name!='冠军盘口'"
  51. :class="listnum==i.id?'active':''"
  52. >
  53. <!--Soccer 导航数字 -->
  54. {{i.num}}
  55. </span>
  56. </p>
  57. </div>
  58. <div
  59. v-if="isShow"
  60. class="event_prompt row item-center"
  61. >目前暂无可适用的{{event_prompt_name==''?'':event_prompt_name}}赛事</div>
  62. <div v-else class='ChampionsCup_content' >
  63. <div v-if="listnum==1">
  64. </div>
  65. <div v-if="listnum==2">
  66. </div>
  67. <div v-if="listnum==3">
  68. <div
  69. v-for=" (item,index) in data.matchData"
  70. :key="index"
  71. class="Match-box"
  72. >
  73. <div class="row allAlignment Match-box-top">
  74. <div class="Match-box-top-left">
  75. <span>{{item.match_date}}</span>
  76. <span>{{item.match_time}}</span>
  77. </div>
  78. <div class="Match-box-top-right row">
  79. <span style="margin-right: .15rem;" class="Match-box-top-num">{{item.tag}}</span>
  80. <span style="margin-right: .15rem;">让球</span>
  81. <span style="margin-right: .15rem;">大小</span>
  82. </div>
  83. </div>
  84. <div
  85. class="row allAlignment center"
  86. @click="matchInfo(item.match_id);"
  87. style="padding:0 .32rem"
  88. >
  89. <div class="column average name-box">
  90. <div>{{item.home_team}}</div>
  91. <div>{{item.guest_team}}</div>
  92. </div>
  93. <div class="Match-bottom-right">
  94. <!-- 主队 -->
  95. <div class="row">
  96. <div
  97. class="Match-list-left"
  98. v-for="(items,indexs) in item.oddsData.homeOdds"
  99. :key="indexs"
  100. @click.stop="isBetting(items.id,item.home_team,item.guest_team,item.home_team,items.odds,items.condition,items.odds_only,'homeOdds')"
  101. >
  102. <div :class="{ 'active' : items.isTrue == true}" class="column center">
  103. <span style="color:#FD8F26">{{items.condition}}</span>
  104. <span>{{items.odds}}</span>
  105. </div>
  106. </div>
  107. </div>
  108. <!-- 客队 -->
  109. <div class="row">
  110. <div
  111. class="Match-list-right row"
  112. v-for="(items,indexs) in item.oddsData.guestOdds"
  113. :key="indexs"
  114. @click.stop="isBetting(items.id,item.home_team,item.guest_team,item.guest_team,items.odds,items.condition,items.odds_only,'guestOdds')"
  115. >
  116. <div :class="{'active':items.isTrue==true}" class="column center">
  117. <span>
  118. <i style="color:#FD8F26">{{items.condition}}</i>
  119. </span>
  120. <span>{{items.odds}}</span>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. <div v-show="listnum==4">
  129. <!-- 冠军组件 -->
  130. <div class="champion">
  131. <div v-for="item in ChampionData" :key="item.id">
  132. <div class="title">
  133. <span>{{item.name}}</span>
  134. <div class="time">
  135. <!-- <span>2019年5月29日</span> -->
  136. <span>{{item.last_time}}</span>
  137. </div>
  138. </div>
  139. <div v-for="(items) in item.data" :key="items.id">
  140. <div class="chmpTit">{{items.title}}</div>
  141. <div v-for="itemList in items.datas" :key="itemList.id">
  142. <div class="list">
  143. <span class="chmName">{{itemList.team}}</span>
  144. <span class="num">{{itemList.odds}}</span>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. <!-- <div v-if="noData">
  150. <NotOpend :title="this.info"/>
  151. </div> -->
  152. </div>
  153. </div>
  154. </div>
  155. <div class="BettingWindow" v-show="isWindow">
  156. <BettingWindow/>
  157. </div>
  158. </div>
  159. </template>
  160. <script>
  161. import "@/css/index.css";
  162. import BettingWindow from "@/components/StBettingWindow";
  163. export default {
  164. name: "ChampionsCup",
  165. components:{BettingWindow},
  166. data() {
  167. return {
  168. title:'',
  169. // 日期时间数组
  170. arr: [],
  171. // 本页面的数据
  172. data: "",
  173. isShow : true, //显示无数据
  174. //冠军盘口提示显示隐藏
  175. event_prompt: false,
  176. scorll: "", //背景滚动
  177. //冠军盘口提示区分盘口名
  178. event_prompt_name: "",
  179. isSoccerGameClick: true,
  180. Serchchange: false,
  181. listnum: 2, //赛事类型
  182. SerchValue: "",
  183. betting: 10000, //vuex里面玩法投注数据
  184. thisNum: 10000, //vuex里面
  185. ChampionData :'', //冠军数据
  186. isWindow:false,
  187. img: {
  188. Soccerimg1: require("@/assets/st-imges/soccer1.png"),
  189. Soccerimg2: require("@/assets/st-imges/soccer1.png"),
  190. Serchimg: require("@/assets/st-imges/sousuo.png"),
  191. Serchdel: require("@/assets/st-imges/del.png"),
  192. searchreturn: require("@/assets/st-imges/returnbox.png")
  193. },
  194. Regulations: {
  195. title: " ",
  196. list: [
  197. { id: 1, name: "滚球", num:''},
  198. { id: 2, name: "今日", num:''},
  199. { id: 3, name: "早盘", num:''},
  200. { id: 4, name: "冠军盘口" }
  201. ]
  202. }
  203. };
  204. },
  205. created() {
  206. this.fun_date();
  207. },
  208. methods: {
  209. // 获取一周赛事
  210. fun_date: function() {
  211. let date = new Date();
  212. let date2 = new Date(date);
  213. for (let i = 1; i < 7; i++) {
  214. date2.setDate(date.getDate() + i);
  215. let years = date2.getFullYear();
  216. let month =
  217. date2.getMonth() + 1 < 10
  218. ? "0" + (date2.getMonth() + 1)
  219. : date2.getMonth() + 1;
  220. let day =
  221. date2.getDate() < 10 ? "0" + date2.getDate() : date2.getDate();
  222. let time2 = {};
  223. time2.id = years + "-" + month + "-" + day;
  224. time2.title = years + "-" + month + "-" + day;
  225. this.arr.push(time2);
  226. if (i == 6) {
  227. this.arr.push({ id: "morning", title: "早盘" });
  228. }
  229. }
  230. },
  231. //切换赛事类型
  232. listActive(id, name, num) {
  233. let time;
  234. this.listnum = id;
  235. this.event_prompt_name = name;
  236. if (num == 0) {
  237. this.event_prompt = true;
  238. time = setTimeout(() => {
  239. this.event_prompt = false;
  240. clearTimeout(time);
  241. }, 1500);
  242. }
  243. clearTimeout(time);
  244. if (this.listnum == id) return false;
  245. this.SerchValue = "";
  246. this.listnum = id;
  247. },
  248. //删除搜索框数据
  249. delinputvalue() {
  250. this.SerchValue = "";
  251. this.Serchchange = false;
  252. },
  253. toggle: function(index, id) {
  254. this.active = index;
  255. this.datetimeNum = id;
  256. console.log("id", this.datetimeNum);
  257. this.SerchValue = "";
  258. },
  259. // 返回上一层页面
  260. isreturn() {
  261. history.go(-1);
  262. },
  263. //获取input输入的值查询数据
  264. serchchange(val) {
  265. if (val.length >= 1) {
  266. this.Serchchange = true;
  267. } else {
  268. this.Serchchange = false;
  269. }
  270. },
  271. //显示隐藏赛事类型
  272. IsSoccerGameClick(isclick) {
  273. this.isSoccerGameClick = !isclick;
  274. },
  275. getAjax(){
  276. this.$store.dispatch('GETSHOW',true);
  277. this.$http.get(this.$ports.match.ChampionsCup).then(res => {
  278. if (res.data.data && res.data.status == 1) {
  279. console.log('res', res.data.data.StMorningPlate)
  280. this.Regulations.list.forEach(e => {
  281. if (e.id == 1) {
  282. this.$set(e, "name", res.data.data.StRollBall.typeName);
  283. this.$set(e, "num", res.data.data.StRollBall.matchNum);
  284. } else if (e.id == 2) {
  285. this.$set(e, "name", res.data.data.StToday.typeName);
  286. this.$set(e, "num", (e.num = res.data.data.StToday.matchNum));
  287. } else if (e.id == 3) {
  288. this.$set(e, "name", res.data.data.StMorningPlate.typeName);
  289. this.$set(e, "num", res.data.data.StMorningPlate.matchNum);
  290. } else if (e.id == 4) {
  291. this.$set(e, "name", res.data.data.StChampion.typeName);
  292. this.$set(e, "num", res.data.data.StChampion.matchNum);
  293. }
  294. });
  295. console.log('list',this.Regulations)
  296. if(this.listnum == 1){
  297. this.data = res.data.data.StRollBall;
  298. }else if(this.listnum == 2){
  299. this.data = res.data.data.StToday;
  300. }else if(this.listnum == 3){
  301. this.data = res.data.data.StMorningPlate;
  302. }else {
  303. this.data = res.data.data.StChampion;
  304. let champion = {},
  305. title = "",
  306. stiTime='',
  307. //matchData = [],
  308. chamData = [];
  309. title = Object.keys(this.data.matchData);
  310. let val = Object.values(this.data.matchData);
  311. title.forEach((e,index) =>{
  312. chamData.push({
  313. name:e,
  314. data:val[index],
  315. })
  316. })
  317. chamData.forEach((res)=>{
  318. res.last_time =res.data.last_time;
  319. let resData = Object.values(res.data);
  320. let resTitle = Object.keys(res.data);
  321. res.data = [];
  322. resTitle.forEach((e,index)=>{
  323. if(e !=='last_time'){
  324. res.data.push({
  325. title:e,
  326. datas:resData[index]
  327. })
  328. }
  329. })
  330. })
  331. this.ChampionData =chamData;
  332. console.log(this.ChampionData);
  333. }
  334. // 取值出来进行判定
  335. if(this.data.matchData && this.data.matchData.length < 1){
  336. this.isShow = true;
  337. }else if (
  338. this.data.matchData &&
  339. this.data.matchData.length > 0
  340. ){
  341. this.isShow = false;
  342. // console.log('dtaa',this.data)
  343. console.log('找不到',this.data)
  344. this.dataGroup(this.data);
  345. }
  346. if(this.listnum == 4){
  347. if(this.data.matchData == null){
  348. this.isShow = true;
  349. }else {
  350. this.isShow = false;
  351. }
  352. }
  353. }
  354. this.title=res.data.data.leagueName
  355. this.$store.dispatch('GETSHOW',false);
  356. });
  357. },
  358. /*--------------------------------------------------------------------------------*/
  359. // 添加、删除vuex投注数据公共方法
  360. AddDelete: function(id, home, guest, name, odds, condition, odds_only) {
  361. let isAdd = true;
  362. let bettingInfo = {
  363. id,
  364. home_team: home,
  365. guest_team: guest,
  366. name,
  367. odds,
  368. condition,
  369. ganame: "concede_size",
  370. score: this.score,
  371. bettingTime: "",
  372. odds_only
  373. };
  374. let matchList = this.$store.getters.getBetting;
  375. if (this.thisNum != 10000) {
  376. //删除vuex投注数据
  377. matchList[this.thisNum].data.forEach((res, index) => {
  378. if (res.id == id) {
  379. matchList[this.thisNum].data.splice(index, 1);
  380. this.$store.dispatch("BETTING", matchList);
  381. isAdd = false;
  382. }
  383. });
  384. //添加vuex投注数据
  385. if (isAdd) {
  386. matchList[this.thisNum].data.push(bettingInfo);
  387. this.$store.dispatch("BETTING", []);
  388. this.$store.dispatch("BETTING", matchList);
  389. if (this.$store.getters.getIsBetting) return false;
  390. this.$store.dispatch("ISBETTING", true);
  391. }
  392. } else {
  393. //添加新的玩法赔率数据
  394. let obj = {
  395. title: "concede_size",
  396. data: [bettingInfo]
  397. };
  398. //判断vuex有误其它玩法数据
  399. if (matchList) {
  400. matchList.push(obj);
  401. } else {
  402. this.$store.dispatch("BETTING", [obj]);
  403. }
  404. }
  405. // console.log(this.$store.getters.getIsBetting);
  406. if (this.$store.getters.getIsBetting) return false;
  407. this.$store.dispatch("ISBETTING", true);
  408. },
  409. /*--------------------------------------------------------------------------------*/
  410. // 添加、删除vuex投注数据公共方法
  411. AddDelete: function(id, home, guest, name, odds, condition, odds_only) {
  412. let isAdd = true;
  413. let bettingInfo = {
  414. id,
  415. home_team: home,
  416. guest_team: guest,
  417. name,
  418. odds,
  419. condition,
  420. ganame: "concede_size",
  421. score: this.score,
  422. bettingTime: "",
  423. odds_only
  424. };
  425. let matchList = this.$store.getters.getBetting;
  426. if (this.thisNum != 10000) {
  427. //删除vuex投注数据
  428. matchList[this.thisNum].data.forEach((res, index) => {
  429. if (res.id == id) {
  430. matchList[this.thisNum].data.splice(index, 1);
  431. this.$store.dispatch("BETTING", matchList);
  432. isAdd = false;
  433. }
  434. });
  435. //添加vuex投注数据
  436. if (isAdd) {
  437. matchList[this.thisNum].data.push(bettingInfo);
  438. this.$store.dispatch("BETTING", []);
  439. this.$store.dispatch("BETTING", matchList);
  440. if (this.$store.getters.getIsBetting) return false;
  441. this.$store.dispatch("ISBETTING", true);
  442. }
  443. } else {
  444. //添加新的玩法赔率数据
  445. let obj = {
  446. title: "concede_size",
  447. data: [bettingInfo]
  448. };
  449. //判断vuex有误其它玩法数据
  450. if (matchList) {
  451. matchList.push(obj);
  452. } else {
  453. this.$store.dispatch("BETTING", [obj]);
  454. }
  455. }
  456. // console.log(this.$store.getters.getIsBetting);
  457. if (this.$store.getters.getIsBetting) return false;
  458. this.$store.dispatch("ISBETTING", true);
  459. },
  460. /*--------------------------------------------------------------------------------*/
  461. //修改当前页面样式公共方法
  462. modifyStyle: function(id, type) {
  463. console.log(id, type);
  464. this.data.matchData.every(e => {
  465. let ret = false;
  466. if (type == "homeOdds") {
  467. e.oddsData.homeOdds.every((res, index) => {
  468. if (res.id == id) {
  469. this.$set(
  470. e.oddsData.homeOdds[index],
  471. "isTrue",
  472. res.isTrue ? false : true
  473. );
  474. ret = true;
  475. return false;
  476. }
  477. return true;
  478. });
  479. } else if (type == "guestOdds") {
  480. e.oddsData.guestOdds.every((res, index) => {
  481. if (res.id == id) {
  482. this.$set(
  483. e.oddsData.guestOdds[index],
  484. "isTrue",
  485. res.isTrue ? false : true
  486. );
  487. ret = true;
  488. return false;
  489. }
  490. return true;
  491. });
  492. }
  493. if (ret) {
  494. return false;
  495. } else {
  496. return true;
  497. }
  498. });
  499. },
  500. /*--------------------------------------------------------------------------------*/
  501. // 修改投注样式
  502. isBetting(id, home, guest, name, odds, condition, odds_only, type) {
  503. console.log(this.data);
  504. if (this.data) {
  505. //处理vuex里面数据
  506. this.AddDelete(id, home, guest, name, odds, condition, odds_only);
  507. //处理当前页面样式
  508. this.modifyStyle(id, type);
  509. }
  510. },
  511. /*--------------------------------------------------------------------------------*/
  512. // 赛事赔率玩法数据组合方法
  513. dataGroup: function(data) {
  514. let homeOdds = [],
  515. guestOdds = [];
  516. let A, B, C, D;
  517. data.matchData.forEach((column, index) => {
  518. if (column.oddsData == null || column.oddsData.length == 0) {
  519. column.oddsData = {
  520. homeOdds: [{ status: -1 }, { status: -1 }],
  521. guestOdds: [{ status: -1 }, { status: -1 }]
  522. };
  523. } else {
  524. column.oddsData.forEach(val => {
  525. if (this.betting != 10000) {
  526. this.betting.forEach(e => {
  527. if (val.id == e.id) {
  528. val.isTrue = true;
  529. //this.$set(val,'isTrue',true);
  530. }
  531. });
  532. }else{
  533. val.isTrue = false;
  534. }
  535. if (val.odds_code == "concede_home") {
  536. A = val;
  537. } else if (val.odds_code == "size_home") {
  538. B = val;
  539. } else if (val.odds_code == "concede_guest") {
  540. C = val;
  541. } else if (val.odds_code == "size_guest") {
  542. D = val;
  543. }
  544. });
  545. column.oddsData = {};
  546. column.oddsData.homeOdds = [];
  547. if(A != undefined){
  548. column.oddsData.homeOdds.push(A);
  549. }
  550. if(B != undefined){
  551. column.oddsData.homeOdds.push(B);
  552. }
  553. column.oddsData.guestOdds = [];
  554. if(C != undefined){
  555. column.oddsData.guestOdds.push(C);
  556. }
  557. if(D != undefined){
  558. column.oddsData.guestOdds.push(D);
  559. }
  560. }
  561. });
  562. this.data = data;
  563. console.log('data`````', this.data);
  564. }
  565. },
  566. mounted() {
  567. // 默认选中数据
  568. this.listnum = 3;
  569. // 获取是否滑动信息
  570. if (this.$public.getCache("box_size") == 1) {
  571. this.isshrink = true;
  572. }
  573. //是否展示投注框
  574. if (this.$store.getters.getIsBetting) {
  575. this.isWindow = true;
  576. }
  577. //获取vuex玩法已投注相对应的数据
  578. let getBetting = this.$store.getters.getBetting;
  579. if (getBetting) {
  580. getBetting.forEach((e, index) => {
  581. if ("concede_size" == e.title) {
  582. console.log('数据源',e);
  583. this.thisNum = index;
  584. if(e.data.length > 0){
  585. this.betting = e.data;
  586. }
  587. }
  588. });
  589. }
  590. this.getAjax();
  591. },
  592. computed:{
  593. changeData:function(){
  594. return this.listnum
  595. },
  596. getBetting() {
  597. return this.$store.getters.getBetting;
  598. },
  599. IsWindow() {
  600. return this.$store.getters.getIsBetting;
  601. },
  602. //获取投注框删除的投注信息
  603. getDeleteType() {
  604. return this.$store.getters.getDeleteType;
  605. }
  606. },
  607. watch:{
  608. changeData(val){
  609. console.log(val)
  610. // 监听改变状态修改值。
  611. this.getAjax();
  612. },
  613. // 监听滚动状态变化赋值滚动
  614. getscorllcode(val) {
  615. console.log(val);
  616. this.scorll = val;
  617. },
  618. getDeleteType(val) {
  619. let flag = true;
  620. this.data.matchData.forEach(e => {
  621. if (val == "all") {
  622. e.oddsData.guestOdds.forEach(data => {
  623. this.$set(data, "isTrue", false);
  624. });
  625. e.oddsData.homeOdds.forEach(data => {
  626. this.$set(data, "isTrue", false);
  627. });
  628. } else {
  629. let showData = true;
  630. e.oddsData.guestOdds.forEach(data => {
  631. if (data.id == val) {
  632. this.$set(data, "isTrue", false);
  633. showData = false;
  634. }
  635. });
  636. if (showData) {
  637. e.oddsData.homeOdds.forEach(data => {
  638. if (data.id == val) {
  639. this.$set(data, "isTrue", false);
  640. }
  641. });
  642. }
  643. }
  644. });
  645. },
  646. /*--------------------------------------------------------------------------------*/
  647. //获取已投注信息
  648. getBetting(val) {
  649. //获取vuex玩法已投注相对应的数据
  650. if (val) {
  651. val.forEach((e, index) => {
  652. if ("concede_size" == e.title) {
  653. this.thisNum = index;
  654. this.betting = e.data;
  655. }
  656. });
  657. }
  658. },
  659. /*--------------------------------------------------------------------------------*/
  660. // 监听投注框开关
  661. IsWindow(val) {
  662. this.isWindow = val;
  663. }
  664. }
  665. };
  666. </script>
  667. <style scoped>
  668. .event_prompt {
  669. height: 0.88rem;
  670. background: #737373;
  671. color: #a6a6a6;
  672. padding-left: 0.3rem;
  673. }
  674. .Soccer-game-num {
  675. display: inline-block;
  676. width: 0.4rem;
  677. height: 0.4rem;
  678. border-radius: 50%;
  679. background: #a6a6a6;
  680. color: #626262;
  681. margin-left: 0.1rem;
  682. line-height: 0.4rem;
  683. text-align: center;
  684. }
  685. .Soccer-game-num.active {
  686. background: #f76649;
  687. color: #f8f8f8;
  688. }
  689. .act {
  690. transform: rotate(180deg);
  691. transition: 0.2s;
  692. }
  693. .return {
  694. transform: rotate(0deg);
  695. transition: 0.2s;
  696. }
  697. .Serch {
  698. height: 0.88rem;
  699. display: flex;
  700. justify-content: space-between;
  701. align-items: center;
  702. background: linear-gradient(to bottom, #6a6a6a, #565656);
  703. color: #f76649;
  704. font-family: "PingFang-SC-Regular";
  705. padding: 0 0.33rem;
  706. }
  707. .returnimg {
  708. width: 0.37rem;
  709. height: 0.3rem;
  710. margin-right: 0.1rem;
  711. }
  712. .Serch-box {
  713. display: flex;
  714. align-items: center;
  715. }
  716. .Serch-box-input {
  717. width: 3.8rem;
  718. border: none;
  719. position: absolute;
  720. height: 0.44rem;
  721. line-height: 0.44rem;
  722. left: 0.5rem;
  723. color: #aaa;
  724. }
  725. .Serch-box-img {
  726. width: 0.3rem;
  727. height: 0.3rem;
  728. position: absolute;
  729. left: 0.1rem;
  730. top: 0.06rem;
  731. }
  732. .Serch-box-del {
  733. width: 0.2rem;
  734. height: 0.2rem;
  735. position: absolute;
  736. right: 0.2rem;
  737. }
  738. .Serch-box-home {
  739. height: 0.45rem;
  740. line-height: 0.45rem;
  741. width: 4.2rem;
  742. background: #e4e4e4;
  743. border-radius: 0.2rem;
  744. display: flex;
  745. justify-content: space-around;
  746. align-items: center;
  747. padding-left: 0.1rem;
  748. padding-right: 0.1rem;
  749. position: relative;
  750. }
  751. .Soccer-game-title {
  752. height: 0.88rem;
  753. font-size: 0.23rem;
  754. }
  755. .Soccer-game-title .tit{
  756. font-size: 0.3rem;
  757. }
  758. .Soccer-game-box {
  759. height: 0.88rem;
  760. background-color: #626262;
  761. }
  762. .Soccer-game-box > p {
  763. margin-left: 0.3rem;
  764. color: #a6a6a6;
  765. }
  766. .Soccer-game-box p.active {
  767. color: #f76649;
  768. }
  769. .Soccer-game-src {
  770. width: 0.25rem;
  771. height: 0.15rem;
  772. /* margin-left: .3rem */
  773. }
  774. .Match-title-num {
  775. width: 0.46rem;
  776. height: 0.46rem;
  777. line-height: 0.46rem;
  778. text-align: center;
  779. background: #f76649;
  780. font-size: 0.26rem;
  781. border-radius: 50%;
  782. color: #f5f5f5;
  783. }
  784. .Match-box-top-right > span {
  785. width: 1.07rem;
  786. text-align: center;
  787. }
  788. .Match-box {
  789. height: 2.45rem;
  790. }
  791. .name-box {
  792. height: 1.76rem;
  793. }
  794. .Match-box-top {
  795. height: 0.45rem;
  796. line-height: 0.45rem;
  797. background: #dcdcdc;
  798. font-size: 0.23rem;
  799. padding: 0 0.32rem;
  800. }
  801. .Match-box-top-num {
  802. width: 0.64rem !important;
  803. height: 0.45rem;
  804. background: #ebebeb;
  805. font-size: 0.24rem;
  806. }
  807. .Match-box {
  808. background: #f8f8f8;
  809. }
  810. .Match-bottom-right {
  811. height: 2rem;
  812. padding: 0.1rem 0.1rem 0 0.14rem;
  813. }
  814. .Match-list-left div {
  815. width: 1.07rem;
  816. height: 0.76rem;
  817. border: 1px solid #e4e4e4;
  818. border-radius: 0.1rem;
  819. padding: 0.1rem;
  820. margin: 0.06rem 0.08rem;
  821. }
  822. .Match-list-right div {
  823. width: 1.07rem;
  824. height: 0.76rem;
  825. border: 1px solid #e4e4e4;
  826. border-radius: 0.1rem;
  827. margin: 0.06rem 0.08rem;
  828. }
  829. /* 冠军 */
  830. .champion .title {
  831. height: 1rem;
  832. padding: 0.15rem 0.2rem;
  833. background-color: #626262;
  834. }
  835. .champion .title span {
  836. font-size: 0.28rem;
  837. font-weight: bold;
  838. color: #e1e1df;
  839. }
  840. .champion .title .time span:nth-child(2) {
  841. color: #f76649;
  842. }
  843. .chmpTit {
  844. height: 0.7rem;
  845. line-height: 0.7rem;
  846. padding: 0 0.2rem;
  847. background: #e4e4e4;
  848. }
  849. .champion .list {
  850. height: 1rem;
  851. line-height: 0.6rem;
  852. padding: 0.1rem 0.2rem;
  853. width: 100%;
  854. display: -webkit-box;
  855. display: -ms-flexbox;
  856. display: flex;
  857. -webkit-box-pack: justify;
  858. -ms-flex-pack: justify;
  859. justify-content: space-between;
  860. border-bottom: 1px solid #aaa;
  861. font-size: 0.28rem;
  862. background: #ffffff;
  863. }
  864. .champion .list span:nth-child(1) {
  865. margin-top: 0.1rem;
  866. }
  867. .champion .list .num {
  868. width: 1.07rem;
  869. height: 0.76rem;
  870. border: 1px solid #e4e4e4;
  871. border-radius: 0.1rem;
  872. padding: 0.1rem;
  873. text-align: center;
  874. }
  875. </style>