53b0448ae94c4b5b27b0e816de9c657c3118bf0d.svn-base 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. <template>
  2. <div>
  3. <div class="Serch">
  4. <!-- <div class="Serch" v-if="headShow"> -->
  5. <div class="Soccer-game row center">
  6. <div class="Soccer-game-title row center" @click="isreturn()">
  7. <img class="returnimg" :src="img.searchreturn">
  8. <!-- {{Regulations.title}} -->
  9. {{name}}
  10. </div>
  11. <div
  12. v-if="isShow"
  13. style="height:0.88rem;margin-left:0.16rem;padding:0 0.1rem;"
  14. class="row center"
  15. @click="IsSoccerGameClick(isSoccerGameClick)"
  16. >
  17. <img
  18. :class="isSoccerGameClick==true?'Soccer-game-src act':'Soccer-game-src return'"
  19. :src="img.Soccerimg1"
  20. >
  21. </div>
  22. </div>
  23. <div class="Serch-box">
  24. <div class="Serch-box-home">
  25. <img class="Serch-box-img" :src="img.Serchimg">
  26. <input
  27. v-model="SerchValue"
  28. @input="serchchange(SerchValue)"
  29. class="Serch-box-input"
  30. type="text"
  31. placeholder="请输入联赛名称"
  32. >
  33. <img
  34. class="Serch-box-del"
  35. @click="delinputvalue()"
  36. v-if="Serchchange==true"
  37. :src="img.Serchdel"
  38. >
  39. </div>
  40. </div>
  41. </div>
  42. <div class="Soccer-game-box row" v-if="isSoccerGameClick == true && isShow">
  43. <p
  44. @click="listActive(i.id)"
  45. v-for="(i,index) in Regulations.list"
  46. :key="index"
  47. :class="listnum==i.id?'active':''"
  48. >{{i.name}}</p>
  49. </div>
  50. <div v-if="dayShow" class="box">
  51. <div id="NavSlide">
  52. <nav>
  53. <p v-for="(item,$index) in arr" @click="toggle($index,item.id)">
  54. <span :class="{active:$index == active}">{{item.title}}</span>
  55. </p>
  56. </nav>
  57. </div>
  58. </div>
  59. <div class="match" v-if="entryShow">
  60. <yd-accordion accordion>
  61. <div class="matchBox" v-for="items in data" :key="items.id">
  62. <yd-accordion-item :title="items.region" open>
  63. <div class="list">
  64. <div
  65. v-for="item in items.league_count"
  66. :key="item.lg_id"
  67. @click="goMatchInfo(item.lg_id )"
  68. >
  69. <span>{{item.league}}</span>
  70. <span class="num">{{item.count}}</span>
  71. </div>
  72. </div>
  73. </yd-accordion-item>
  74. </div>
  75. </yd-accordion>
  76. </div>
  77. <div v-if="noData">
  78. <NotOpend :title="this.info"/>
  79. </div>
  80. <!-- 参赛表 -->
  81. <div v-if="!entryShow" class="entry">
  82. <div
  83. class="list"
  84. v-for="item in entryList.info"
  85. :key="item.id"
  86. @click="goMatchInfo(item.lg_id,item.code,item.count )"
  87. >
  88. <span>{{item.name}}</span>
  89. <span class="num">{{item.count}}</span>
  90. </div>
  91. </div>
  92. </div>
  93. </template>
  94. <script>
  95. import NotOpend from "@/components/StNotOpend";
  96. import "../css/index.css";
  97. export default {
  98. props: ["name"],
  99. // props: ["name", "headShow"],
  100. data() {
  101. return {
  102. isShow: true, //如果为串场则把导航显示出来,否则不显示
  103. SerchValue: "",
  104. data: "", //联赛列表
  105. ballId: "", //球类别名
  106. noData: false, //没有数据为true
  107. datetimeNum: "", //赛事时间
  108. active: 0,
  109. entryShow: true, //参赛表
  110. lgId: "",
  111. serchTime: 0, //默认时间值
  112. sear: "", //早盘存储查找时间
  113. listnum: 0, //赛事类型
  114. isTrue: true, //显示日期
  115. dayShow: false,
  116. Serchchange: false,
  117. info: "没有相关联赛信息",
  118. isSoccerGameClick: true,
  119. entryList: "", // 参赛表数据
  120. str_type: false, //串场冠军盘传值
  121. img: {
  122. Soccerimg1: require("../assets/st-imges/soccer1.png"),
  123. Soccerimg2: require("../assets/st-imges/soccer1.png"),
  124. Serchimg: require("../assets/st-imges/sousuo.png"),
  125. Serchdel: require("../assets/st-imges/del.png"),
  126. searchreturn: require("../assets/st-imges/returnbox.png")
  127. },
  128. //
  129. Regulations: {
  130. title: " ",
  131. list: [
  132. { id: 1, name: "参赛表" },
  133. { id: 0, name: "赛事" },
  134. { id: 2, name: "冠军盘口" }
  135. ]
  136. },
  137. active: 0,
  138. arr: [], //时间条
  139. timers: true
  140. };
  141. },
  142. components: {
  143. NotOpend
  144. },
  145. methods: {
  146. //设置一周赛事
  147. fun_date: function() {
  148. let date = new Date();
  149. let MonthNum = 0;
  150. let lastMonth = new Date(date.getFullYear(),date.getMonth() + 1,0).getDate();
  151. for (let i = 0; i < 7; i++) {
  152. let years = date.getFullYear();
  153. let month = date.getMonth() + 1;
  154. let day = date.getDate()+i < 10 ? "0" +(date.getDate()+i) : date.getDate()+i;
  155. if( date.getDate()+i > lastMonth){
  156. MonthNum ++;
  157. month = date.getMonth() + 2;
  158. day = "0" + MonthNum;
  159. }
  160. let time = {};
  161. time.id = years + "-" + month + "-" + day;
  162. time.title = years + "-" + month + "-" + day;
  163. this.arr.push(time);
  164. if (i == 6) {
  165. this.arr.push({ id: "morning", title: "早盘" });
  166. }
  167. }
  168. },
  169. // search=搜索关键字 lg_id = 联赛id (如果传入,则获取联赛下冠军盘口)
  170. getAjaxInfo: function(lg_id, search, match_date, str_type, index) {
  171. // console.log(
  172. // this.$store.getters.getBallId,
  173. // this.$store.getters.getActivity
  174. // );
  175. this.$store.dispatch("GETSHOW", true);
  176. this.$http
  177. .get(this.$ports.match.matchState, {
  178. game_code: this.$store.getters.getBallId,
  179. type_code: this.$store.getters.getActivity,
  180. lg_id,
  181. search,
  182. match_date,
  183. str_type
  184. })
  185. .then(res => {
  186. if (
  187. res.data.status == 1 &&
  188. res.data.data.length > 0 &&
  189. res.data.data != null
  190. ) {
  191. this.Regulations.title = res.data.data.type;
  192. this.noData = false;
  193. this.data = res.data.data;
  194. console.log("数据", this.data);
  195. } else {
  196. this.data = "";
  197. this.noData = true;
  198. }
  199. if (this.data != "") {
  200. let _this = this;
  201. setTimeout(function() {
  202. _this.$store.dispatch("GETSHOW", false);
  203. }, 500);
  204. }
  205. });
  206. },
  207. //获取冠军盘口数据
  208. // 暂不使用
  209. getChampion: function(typeGame, search) {
  210. console.log("冠军盘口");
  211. this.$store.dispatch("GETSHOW", true);
  212. this.$http
  213. .get(this.$ports.match.first, { typeGame, search })
  214. .then(res => {
  215. if (
  216. res.status == 200 &&
  217. res.data.data != [] &&
  218. res.data.data != null
  219. ) {
  220. if (res.data.data.info.length > 0) {
  221. this.data = res.data.data.info;
  222. } else {
  223. this.data = "";
  224. }
  225. } else {
  226. }
  227. if (this.data != "") {
  228. let _this = this;
  229. setTimeout(function() {
  230. _this.$store.dispatch("GETSHOW", false);
  231. }, 500);
  232. }
  233. });
  234. },
  235. //显示隐藏赛事类型
  236. IsSoccerGameClick(isclick) {
  237. this.isSoccerGameClick = !isclick;
  238. },
  239. //获取input输入的值查询数据
  240. serchchange(val) {
  241. if (val.length >= 1) {
  242. this.Serchchange = true;
  243. } else {
  244. this.Serchchange = false;
  245. }
  246. if (this.$store.getters.getActivity == "StMorningPlate") {
  247. this.getAjaxInfo("", val, this.serchTime);
  248. } else {
  249. this.getAjaxInfo("", val);
  250. }
  251. },
  252. //删除搜索框数据
  253. delinputvalue() {
  254. this.SerchValue = "";
  255. this.Serchchange = false;
  256. if (this.listnum == 2) {
  257. this.getAjaxInfo("", "", "");
  258. } else if (this.listnum == 3) {
  259. this.getChampion(this.$store.getters.getBallId);
  260. }
  261. },
  262. //切换赛事类型
  263. listActive(id) {
  264. // console.log("id", id);
  265. // sessionStorage.setItem("active", id);
  266. if (this.listnum == id) return false;
  267. this.SerchValue = "";
  268. this.listnum = id;
  269. this.str_type = true;
  270. console.log("this.listnum", this.listnum);
  271. if (id == 0) {
  272. this.entryShow = true;
  273. this.isTrue = true;
  274. this.getAjaxInfo("", "", "", id);
  275. } else {
  276. this.isTrue = false;
  277. if (id == 2) {
  278. this.entryShow = true;
  279. // this.getChampion(this.$route.query.id)
  280. this.getAjaxInfo("", "", "", id);
  281. } else if (id == 1) {
  282. this.entryShow = false;
  283. this.$store.dispatch("GETSHOW", true);
  284. this.$http
  285. .get(this.$ports.match.participate, {
  286. typeGame: this.$store.getters.getBallId
  287. })
  288. .then(res => {
  289. //console.log("res", res);
  290. if (
  291. res.status == 200 &&
  292. res.data.data != [] &&
  293. res.data.data != null
  294. ) {
  295. this.entryShow = false;
  296. this.entryList = res.data.data;
  297. } else {
  298. }
  299. let _this = this;
  300. setTimeout(function() {
  301. _this.$store.dispatch("GETSHOW", false);
  302. }, 500);
  303. });
  304. }
  305. }
  306. },
  307. //切换日期时间
  308. toggle: function(index, id) {
  309. if (index == this.active) return false;
  310. //console.log("index", index);
  311. this.serchTime = id;
  312. this.active = index;
  313. this.datetimeNum = id;
  314. this.sear = id;
  315. this.SerchValue = "";
  316. this.entryShow = true;
  317. this.getAjaxInfo("", "", id);
  318. this.timers = false;
  319. let _this = this;
  320. // if(this.$store.getters.getActivity == 'StMorningPlate'){
  321. // this.timers = true;
  322. // this.$public.ajaxTimerFun(function(timing) {
  323. // _this.getAjaxInfo("", "", id);
  324. // if (!_this.timers) {
  325. // clearInterval(timing);
  326. // }
  327. // });
  328. // }
  329. },
  330. //打开联赛投注页面
  331. goMatchInfo: function(sessionId, code, count) {
  332. console.log("count", this.listnum);
  333. console.log("this.str_type", this.str_type);
  334. if (count == 0) {
  335. } else {
  336. if (
  337. this.$store.getters.getActivity == "StStringScene" ||
  338. this.$store.getters.getActivity == "StChampion"
  339. ) {
  340. if (
  341. this.listnum == 2 ||
  342. this.$store.getters.getActivity == "StChampion"
  343. ) {
  344. this.$router.push({
  345. path: "StLeagueList",
  346. query: {
  347. game_code: this.ballId,
  348. leagueID: sessionId,
  349. name: this.name,
  350. home: 1,
  351. matchDate: this.datetimeNum,
  352. navBall: "2",
  353. code: code,
  354. strType: this.listnum,
  355. champion: 1
  356. }
  357. });
  358. } else {
  359. this.$router.push({
  360. path: "StLeagueList",
  361. query: {
  362. game_code: this.ballId,
  363. leagueID: sessionId,
  364. name: this.name,
  365. home: 1,
  366. matchDate: this.datetimeNum,
  367. navBall: "2",
  368. code: code,
  369. strType: this.listnum
  370. }
  371. });
  372. }
  373. } else {
  374. this.$router.push({
  375. path: "StLeagueList",
  376. query: {
  377. game_code: this.ballId,
  378. leagueID: sessionId,
  379. name: this.name,
  380. home: 1,
  381. matchDate: this.datetimeNum,
  382. navBall: "2",
  383. code: code
  384. }
  385. });
  386. }
  387. }
  388. },
  389. // 返回上一层页面
  390. isreturn() {
  391. history.go(-1);
  392. }
  393. },
  394. mounted() {
  395. //分球的类型获取默认数据
  396. this.ballId = this.$store.getters.getBallId;
  397. this.active = 0;
  398. // this.$store.dispatch("GETSHOW", true);
  399. this.fun_date();
  400. this.serchTime = this.arr[0].title;
  401. // this.getAjaxInfo();
  402. // if (sessionStorage.getItem("active")) {
  403. // this.listnum = sessionStorage.getItem("active");
  404. // } else {
  405. // this.listnum = 0;
  406. // }
  407. // 判断冠军跳转
  408. if (this.$store.getters.getActivity == "StChampion") {
  409. this.str_type = true;
  410. } else {
  411. this.str_type = false;
  412. if (this.$store.getters.getActivity == "StMorningPlate") {
  413. this.dayShow = true;
  414. } else {
  415. this.dayShow = false;
  416. }
  417. }
  418. if (this.listnum != 1) {
  419. this.entryShow = true;
  420. }
  421. let _this = this;
  422. // 判断4种玩法的轮询
  423. if (
  424. this.$store.getters.getActivity == "StToday" ||
  425. this.$store.getters.getActivity == "StStringScene" ||
  426. this.$store.getters.getActivity == "StChampion"
  427. ) {
  428. this.$public.ajaxTimerFun(function(timing) {
  429. _this.getAjaxInfo();
  430. if (!_this.timers) {
  431. clearInterval(timing);
  432. }
  433. });
  434. } else if (this.$store.getters.getActivity == "StMorningPlate") {
  435. this.$public.ajaxTimerFun(function(timing) {
  436. _this.getAjaxInfo("", "", _this.datetimeNum);
  437. if (!_this.timers) {
  438. clearInterval(timing);
  439. }
  440. });
  441. }
  442. },
  443. computed: {
  444. getActivity: function() {
  445. if (
  446. this.$store.getters.getActivity == "StChampion" ||
  447. this.$store.getters.getActivity == "StMorningPlate" ||
  448. this.$store.getters.getActivity == "StToday"
  449. ) {
  450. this.isShow = false;
  451. } else {
  452. this.isShow = true;
  453. // 判断位串场的时候则传值type到下一个页面
  454. }
  455. this.getAjaxInfo();
  456. // 当别名改变时,修改状态
  457. // if (sessionStorage.getItem("ballId")) {
  458. // if (sessionStorage.getItem("active")) {
  459. // sessionStorage.removeItem("active");
  460. // this.listnum = 0;
  461. // } else {
  462. // }
  463. // }
  464. this.listnum = 0;
  465. return this.$store.getters.getActivity;
  466. }
  467. },
  468. watch: {
  469. getActivity(val) {
  470. this.timers = false;
  471. let _this = this;
  472. // 判断是不是早盘,是则显示时间条
  473. if (this.$store.getters.getActivity == "StMorningPlate") {
  474. this.timers = true;
  475. this.$public.ajaxTimerFun(function(timing) {
  476. _this.getAjaxInfo("", "", _this.datetimeNum);
  477. if (!_this.timers) {
  478. clearInterval(timing);
  479. }
  480. });
  481. this.dayShow = true;
  482. } else {
  483. this.dayShow = false;
  484. }
  485. if (this.$store.getters.getActivity != "StStringScene") {
  486. this.entryShow = true;
  487. } else if (this.listnum != 1) {
  488. this.entryShow = true;
  489. } else {
  490. this.entryShow = false;
  491. this.timers = true;
  492. this.$public.ajaxTimerFun(function(timing) {
  493. _this.getAjaxInfo("", "", "", _this.listnum);
  494. if (!_this.timers) {
  495. clearInterval(timing);
  496. }
  497. });
  498. }
  499. // 轮询造轮子
  500. if (
  501. this.$store.getters.getActivity == "StToday" ||
  502. this.$store.getters.getActivity == "StChampion"
  503. ) {
  504. this.timers = true;
  505. this.$public.ajaxTimerFun(function(timing) {
  506. _this.getAjaxInfo();
  507. if (!_this.timers) {
  508. clearInterval(timing);
  509. }
  510. });
  511. }
  512. }
  513. },
  514. beforeDestroy() {
  515. this.timers = false;
  516. }
  517. };
  518. </script>
  519. <style scoped>
  520. .act {
  521. transform: rotate(180deg);
  522. transition: 0.2s;
  523. }
  524. .return {
  525. transform: rotate(0deg);
  526. transition: 0.2s;
  527. }
  528. .Serch {
  529. height: 0.88rem;
  530. display: flex;
  531. justify-content: space-between;
  532. align-items: center;
  533. background: linear-gradient(to bottom, #6a6a6a, #565656);
  534. color: #f76649;
  535. font-family: "PingFang-SC-Regular";
  536. padding: 0 0.33rem;
  537. }
  538. .returnimg {
  539. width: 0.37rem;
  540. height: 0.3rem;
  541. margin-right: 0.1rem;
  542. }
  543. .Serch-box {
  544. display: flex;
  545. align-items: center;
  546. }
  547. .Serch-box-input {
  548. width: 3.8rem;
  549. border: none;
  550. position: absolute;
  551. height: 0.44rem;
  552. line-height: 0.44rem;
  553. left: 0.5rem;
  554. color: #aaa;
  555. }
  556. .Serch-box-img {
  557. width: 0.3rem;
  558. height: 0.3rem;
  559. position: absolute;
  560. left: 0.1rem;
  561. top: 0.06rem;
  562. }
  563. .Serch-box-del {
  564. width: 0.2rem;
  565. height: 0.2rem;
  566. position: absolute;
  567. right: 0.2rem;
  568. }
  569. .Serch-box-home {
  570. height: 0.45rem;
  571. line-height: 0.45rem;
  572. width: 4.73rem;
  573. background: #e4e4e4;
  574. border-radius: 0.2rem;
  575. display: flex;
  576. justify-content: space-around;
  577. align-items: center;
  578. padding-left: 0.1rem;
  579. padding-right: 0.1rem;
  580. position: relative;
  581. }
  582. .Soccer-game-title {
  583. height: 0.88rem;
  584. font-size: 0.3rem;
  585. }
  586. .Soccer-game-box {
  587. height: 0.88rem;
  588. /* padding: 0 0.32rem; */
  589. background-color: #626262;
  590. }
  591. .Soccer-game-box > p {
  592. margin: 0.3rem;
  593. color: #a6a6a6;
  594. }
  595. .Soccer-game-box p.active {
  596. color: #f76649;
  597. }
  598. .Soccer-game-src {
  599. width: 0.25rem;
  600. height: 0.15rem;
  601. /* margin-left: 0.3rem; */
  602. }
  603. .box {
  604. background: #ebebeb;
  605. padding: 0 0.14rem;
  606. }
  607. #NavSlide {
  608. width: 100%;
  609. overflow: hidden;
  610. }
  611. #NavSlide nav {
  612. display: -webkit-box;
  613. display: -ms-flexbox;
  614. display: flex;
  615. -webkit-box-align: middle;
  616. -ms-flex-align: middle;
  617. align-items: middle;
  618. overflow: auto;
  619. }
  620. #NavSlide p {
  621. text-align: center;
  622. font-size: 0.28rem;
  623. -ms-flex-negative: 0;
  624. flex-shrink: 0;
  625. padding: 0 0.1rem;
  626. margin: 0 0.05rem;
  627. color: #b8b8b8;
  628. height: 0.88rem;
  629. line-height: 0.88rem;
  630. }
  631. /* #NavSlide p a{
  632. color: #E5E5E5;
  633. text-decoration: none;
  634. } */
  635. #NavSlide p span.active {
  636. color: #363636;
  637. }
  638. .yd-cell-box .yd-cell {
  639. z-index: 99;
  640. border-radius: 0.2rem;
  641. }
  642. .matchBox {
  643. margin-bottom: 0.12rem;
  644. background: #f9f9f9;
  645. padding: 0.27rem 0.34rem 0 0.32rem;
  646. }
  647. div /deep/ .yd-accordion-head {
  648. padding: 0 0.13rem 0 0;
  649. }
  650. div /deep/ .yd-accordion-content:after {
  651. height: 0;
  652. }
  653. .match .tit {
  654. display: flex;
  655. justify-content: space-between;
  656. font-size: 0.32rem;
  657. margin-bottom: 0.3rem;
  658. }
  659. .match .list {
  660. overflow: hidden;
  661. transition: all 0.3s cubic-bezier(0.4, 0.6, 0.2, 1);
  662. }
  663. .match .list div {
  664. background: #dcdcdc;
  665. width: 100%;
  666. height: 0.88rem;
  667. padding: 0.26rem 0.56rem 0.3rem 0.3rem;
  668. display: flex;
  669. align-items: center;
  670. justify-content: space-between;
  671. border-radius: 0.08rem;
  672. margin-bottom: 0.12rem;
  673. }
  674. div /deep/ .yd-accordion-head:after {
  675. height: 0;
  676. }
  677. .match .list span {
  678. color: #333333;
  679. font-size: 0.28rem;
  680. }
  681. .match .list .num {
  682. width: 0.4rem;
  683. height: 0.4rem;
  684. display: inline-block;
  685. line-height: 0.4rem;
  686. text-align: center;
  687. color: #f5f5f5;
  688. border-radius: 50%;
  689. font-size: 0.2rem;
  690. background: #f76649;
  691. }
  692. .yd-accordion {
  693. background: transparent;
  694. }
  695. .match .list div:nth-last-child(1) {
  696. margin-bottom: 0.34rem;
  697. }
  698. div /deep/ .yd-accordion-head,
  699. div /deep/ .yd-accordion-head-content,
  700. div /deep/ .yd-accordion-title,
  701. div /deep/ .yd-accordion-title-full {
  702. height: 0.3rem;
  703. }
  704. div /deep/ .yd-accordion-title {
  705. min-height: 0;
  706. }
  707. div /deep/ .yd-accordion-head {
  708. margin-bottom: 0.3rem;
  709. }
  710. div /deep/ .yd-accordion-head-arrow:after {
  711. border: none;
  712. width: 0.4rem;
  713. height: 0.4rem;
  714. background: url("../assets/st-imges/xiangxia.png") no-repeat;
  715. background-size: 0.4rem 0.4rem;
  716. }
  717. /* 参赛表 */
  718. .entry .list {
  719. height: 0.88rem;
  720. padding: 0.2rem;
  721. width: 100%;
  722. background: #a0a0a0;
  723. color: #fefefe;
  724. display: flex;
  725. justify-content: space-between;
  726. border-bottom: 1px solid #aaa;
  727. }
  728. .entry .list .num {
  729. width: 0.4rem;
  730. height: 0.4rem;
  731. display: inline-block;
  732. line-height: 0.4rem;
  733. text-align: center;
  734. color: #f5f5f5;
  735. border-radius: 50%;
  736. font-size: 0.2rem;
  737. background: #f76649;
  738. }
  739. </style>