1c6f478fb6e7ec4d94f9ac115c205b1e3b12b983.svn-base 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <div>
  3. <div class="tit">
  4. <span style="font-size:.3rem;color:#fff; font-weight: bold;">{{title}}</span>
  5. </div>
  6. <div v-if="noData">
  7. <NotOpend :title="this.info"/>
  8. </div>
  9. <div class="charBox">
  10. <div v-for="item in list" class="details">
  11. <div>
  12. <span>{{item.name_chinese}}</span>
  13. </div>
  14. <div class="matchDtls">
  15. <div>
  16. <span>{{item.home_team}}</span>
  17. <div>
  18. <span>{{item.match_date}}</span>
  19. </div>
  20. </div>
  21. <div>
  22. <span>{{item.guest_team}}</span>
  23. <div>
  24. <span>{{item.match_time}}</span>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </template>
  32. <script>
  33. import NotOpend from "@/components/StNotOpend";
  34. export default {
  35. name:'',
  36. components:{NotOpend},
  37. data(){
  38. return{
  39. title:'特色赛事',
  40. list:'',
  41. noData: false,
  42. info: "暂无相关特色赛事",
  43. }
  44. },
  45. mounted() {
  46. this.$store.dispatch('GETSHOW',true);
  47. this.$http.get(this.$ports.home.highMatch).then(res =>{
  48. console.log('highMatch',res)
  49. if(res.data.status == 1 && res.data.data.matchData.length > 0){
  50. this.list = res.data.data.matchData;
  51. this.title = res.data.data.title;
  52. this.noData = false;
  53. this.$store.dispatch('GETSHOW',false);
  54. }else{
  55. this.noData = true;
  56. this.$store.dispatch('GETSHOW',false);
  57. }
  58. })
  59. },
  60. };
  61. </script>
  62. <style scoped lang="">
  63. .charBox {
  64. margin-top: 0.24rem;
  65. text-align: left;
  66. background: #f8f8f8;
  67. padding:0 0.3rem;
  68. margin: 0 auto;
  69. padding-top: 0.12rem;
  70. }
  71. .tit {
  72. padding: 0.24rem 0;
  73. padding:0 0.3rem;
  74. background: #a0a0a0;
  75. font-size: 0.32rem;
  76. line-height: 0.88rem;
  77. height: 0.88rem;
  78. color: #000000;
  79. }
  80. .details {
  81. padding: 0.25rem 0.31rem;
  82. background: #dcdcdc;
  83. border-radius: 0.08rem;
  84. margin-bottom: .2rem;
  85. }
  86. .details div span {
  87. font-size: 0.28rem;
  88. color: #F76649;
  89. }
  90. .matchDtls {
  91. margin-top: 0.12rem;
  92. }
  93. .matchDtls div {
  94. position: relative;
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. }
  99. .matchDtls div span {
  100. color: #333333;
  101. font-size: 0.28rem;
  102. }
  103. .matchDtls div div span {
  104. font-size: 0.24rem;
  105. }
  106. .matchDtls i {
  107. display: inline-block;
  108. width: 0.08rem;
  109. height: 0.08rem;
  110. position: absolute;
  111. right: 0;
  112. top: 0;
  113. background: #000;
  114. }
  115. </style>