e2a2bb525efc7b375740502a06921853adce9e3f.svn-base 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <template>
  2. <div>
  3. <div class="match">
  4. <div class="title flex">
  5. <div>
  6. <i class="backSingPage"></i>
  7. <div class="ball">
  8. <span>足球</span>
  9. </div>
  10. <span class="menu" style="font-size:0.16rem">日本职业棒球</span>
  11. </div>
  12. <div>
  13. <div class="redraw">
  14. <i class="refresh"></i>
  15. </div>
  16. </div>
  17. </div>
  18. <div class="banner">
  19. <span>东北乐天金鹰队</span>
  20. <span class="pk">v</span>
  21. <span>北海道日本火腿斗士队</span>
  22. </div>
  23. <div class="welcome pd-20">
  24. <span>受欢迎的</span>
  25. </div>
  26. <div class="info" v-for="item in data" :key="item.id">
  27. <div class="tit pd-20">
  28. <span>{{item.name}}</span>
  29. </div>
  30. <div class="team flex">
  31. <div class="teamInfo flex" v-for="items in item.matchInfo" :key='items.id'>
  32. <div class="teamName">{{items.teamName}}</div>
  33. <div>
  34. <span class="num">{{items.num}}</span>
  35. <span class="odds">{{items.odds}}</span>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </template>
  43. <script>
  44. export default {
  45. data(){
  46. return{
  47. data:[
  48. {
  49. name:'滚球 让球',
  50. matchInfo:[
  51. {
  52. teamName:'东北乐天金鹰队',
  53. num:'+1',
  54. odds:'1.28'
  55. },
  56. {
  57. teamName:'北海道日本火腿斗士队 ',
  58. num:'-1',
  59. odds:'1.28'
  60. }
  61. ]
  62. },
  63. {
  64. name:'总得分: 滚球 大/小',
  65. matchInfo:[
  66. {
  67. teamName:'大',
  68. num:'21.5',
  69. odds:'1.28'
  70. },
  71. {
  72. teamName:'小',
  73. num:'21.5',
  74. odds:'1.28'
  75. }
  76. ]
  77. }
  78. ]
  79. }
  80. }
  81. };
  82. </script>
  83. <style scoped>
  84. .flex {
  85. display: flex;
  86. justify-content: space-between;
  87. align-items: center;
  88. }
  89. .title {
  90. height: 0.5rem;
  91. background: #aaaaaa;
  92. padding: 0 0.2rem;
  93. line-height: 0.5rem;
  94. }
  95. .title .backSingPage{
  96. display:inline-block;
  97. background: url("../assets/st-imges/arrow_left.png") no-repeat;
  98. background-size: 100% 100%;
  99. height: 0.21rem;
  100. width: 0.2rem;
  101. vertical-align: middle;
  102. margin-right: 0.16rem;
  103. cursor: pointer;
  104. }
  105. .title .ball{
  106. display: inline-block;
  107. width: 0.5rem;
  108. height: 0.36rem;
  109. line-height: 0.36rem;
  110. text-align: center;
  111. background: rgba(204, 204, 204, 1);
  112. font-size: 0.18rem;
  113. color: #f76649;
  114. position: relative;
  115. border-radius: 0.04rem;
  116. margin-right: 0.15rem;
  117. }
  118. .title .ball::after{
  119. content: "";
  120. display: inline-block;
  121. width: 0.1rem;
  122. height: 0.1rem;
  123. position: absolute;
  124. right: -0.2rem;
  125. top: 0.08rem;
  126. border-width: 0.1rem;
  127. border-style: solid;
  128. border-color: transparent transparent transparent rgba(204, 204, 204, 1);
  129. }
  130. .title .backSingPage:hover,.refresh:hover{
  131. filter: brightness(100);
  132. }
  133. .redraw{
  134. width: 0.3rem;
  135. height: 0.3rem;
  136. line-height: 0.4rem;
  137. background: #666;
  138. cursor: pointer;
  139. text-align: center;
  140. border-radius: 0.05rem;
  141. }
  142. .redraw:hover{
  143. background: #959595;
  144. color: #fff;
  145. }
  146. .refresh{
  147. background: url("../assets/st-imges/redraw.png") no-repeat;
  148. background-size: 100% 100%;
  149. display: inline-block;
  150. width: 0.2rem;
  151. height: 0.2rem;
  152. }
  153. .banner{
  154. background-image: url("./../assets/st-imges/back.png") no-repeat;
  155. background-size: 100% 100%;
  156. background-color: #026F40;
  157. height: 0.6rem;
  158. line-height: 0.6rem;
  159. text-align: center;
  160. }
  161. .banner .pk{
  162. color: #F76649;
  163. margin: 0 0.05rem;
  164. }
  165. .banner span{
  166. color: #fff;
  167. font-size: 0.16rem;
  168. }
  169. .pd-20{
  170. padding: 0 0.2rem;
  171. }
  172. .welcome{
  173. color: #FFFFFF;
  174. background: #888888;
  175. height: 0.5rem;
  176. line-height: 0.5rem;
  177. }
  178. /* 数据格式 */
  179. .info .tit{
  180. background: #CCCCCC;
  181. height: 0.4rem;
  182. line-height: 0.4rem;
  183. }
  184. .team{
  185. background: #fff;
  186. height: 0.48rem;
  187. line-height: 0.48rem;
  188. }
  189. .teamInfo{
  190. width: 50%;
  191. padding: 0 0.1rem 0 0.2rem;
  192. border-right: 1px solid #EDEDED;
  193. font-size: 0.14rem;
  194. font-size: 0.14rem;
  195. }
  196. .team .teamInfo:nth-child(2){
  197. border-right: none;
  198. }
  199. .teamInfo .num{
  200. color: #F76649;
  201. margin-right: 0.2rem;
  202. }
  203. .teamInfo .odds{
  204. display: inline-block;
  205. width: 0.48rem;
  206. height: 0.3rem;
  207. line-height: 0.3rem;
  208. text-align: center;
  209. border:1px solid #EEEEEE;
  210. /* border-radius: 1px; */
  211. /* border-radius:0.05rem; */
  212. }
  213. </style>