detail.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <style>
  2. </style>
  3. <template>
  4. <div class="match-detail">
  5. <header class="time-info">
  6. <div class="start-time">
  7. <label>开始时间:</label>
  8. <span class="time-data">{{ matchInfo.start_timestamp }}</span>
  9. </div>
  10. <div class="total-time">
  11. <label class="total-label">总时长:</label>
  12. <span class="time-data">{{ matchInfo.game_length_in_minute }}分钟</span>
  13. </div>
  14. </header>
  15. <div class="detail-content">
  16. <section class="team-section victory-team">
  17. <nav>
  18. <span class="team-label">胜利队伍</span>
  19. <div class="kill-money">
  20. <label>人头:</label>
  21. <span>{{ team_win.total_killed }}</span>
  22. <label>金钱:</label>
  23. <span>{{ parseInt(team_win.total_gold_in_k) }}K</span>
  24. </div>
  25. </nav>
  26. <ul class="team-detail">
  27. <li v-for="item in team_win.player_champions">
  28. <section class="player-detail">
  29. <section class="player-head">
  30. <img :src="`${staticUrl}/images/champions/${item.champion.name}.png`" class="player-icon">
  31. </section>
  32. <section class="player-equipment">
  33. <p class="player-name" >{{ item.player.pn }}</p>
  34. <ul class="equipment-list">
  35. <li v-for="zb in item.items"><img :src="`${staticUrl}/images/items/${zb.id}_40x40.jpg`"></li>
  36. </ul>
  37. </section>
  38. <section class="player-military">
  39. <p>{{ item.total_killed + '/' + item.total_death + '/' + item.total_assist }}</p>
  40. <i v-if="item.flag_mvp_carry" class="most-value-player"></i>
  41. </section>
  42. </section>
  43. <section class="player-glory">
  44. <span class="place-holder"></span>
  45. <span>
  46. <i v-for="honor in item.honors"><img :src="`${staticUrl}/images/honor_kda/icon_${honor.name}_16x16.gif`" alt=""></i>
  47. </span>
  48. <span class="arrow-span">
  49. <em class="arrow-down show-fuldata" @click="showFulData($event)"></em>
  50. <em class="arrow-up hide-data" @click="hideFulData($event)"></em>
  51. </span>
  52. </section>
  53. <section class="player-data">
  54. <table class="fully-data">
  55. <tr>
  56. <td>
  57. <label>补兵:</label>
  58. <span>{{ item.total_minions_killed }}</span>
  59. </td>
  60. <td>
  61. <label>金钱:</label>
  62. <span>{{ item.gold_earned }}</span>
  63. </td>
  64. <td>
  65. <label>推塔:</label>
  66. <span>{{ item.total_turrets_killed }}</span>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. <label>对英雄伤害:</label>
  72. <span>{{ item.total_damage_dealt_to_champions }}</span>
  73. </td>
  74. <td>
  75. <label>野怪:</label>
  76. <span>{{ item.total_neutral_minions_killed }}</span>
  77. </td>
  78. <td>
  79. <label>连杀:</label>
  80. <span>{{ item.largest_killing_spree }}</span>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td>
  85. <label>多杀:</label>
  86. <span>{{ item.largest_multi_kill }}</span>
  87. </td>
  88. <td>
  89. <label>方眼数:</label>
  90. <span>{{ item.total_ward_placed }}</span>
  91. </td>
  92. <td>
  93. <label>排眼数:</label>
  94. <span>{{ item.total_ward_killed }}</span>
  95. </td>
  96. </tr>
  97. </table>
  98. <p class="d-f">
  99. <i v-for="spell in item.spells"><img :src="`${staticUrl}/images/spells/${spell.id}_24x24.jpg`" /></i>
  100. </p>
  101. </section>
  102. </li>
  103. </ul>
  104. </section>
  105. <section class="team-section failed-team">
  106. <nav>
  107. <span class="team-label">失败队伍</span>
  108. <div class="kill-money">
  109. <label>人头:</label>
  110. <span>{{ team_lose.total_killed }}</span>
  111. <label>金钱:</label>
  112. <span>{{ parseInt(team_lose.total_gold_in_k) }}K</span>
  113. </div>
  114. </nav>
  115. <ul class="team-detail">
  116. <li v-for="item in team_lose.player_champions">
  117. <section class="player-detail">
  118. <section class="player-head">
  119. <img :src="`${staticUrl}/images/champions/${item.champion.name}.png`" class="player-icon">
  120. </section>
  121. <section class="player-equipment">
  122. <p class="player-name" >{{ item.player.pn }}</p>
  123. <ul class="equipment-list">
  124. <li v-for="zb in item.items"><img :src="`${staticUrl}/images/items/${zb.id}_40x40.jpg`"></li>
  125. </ul>
  126. </section>
  127. <section class="player-military">
  128. <p>{{ item.total_killed + '/' + item.total_death + '/' + item.total_assist }}</p>
  129. <i v-if="item.flag_mvp_carry" class="most-value-player"></i>
  130. </section>
  131. </section>
  132. <section class="player-glory">
  133. <span class="place-holder"></span>
  134. <span>
  135. <i v-for="honor in item.honors"><img :src="`${staticUrl}/images/honor_kda/icon_${honor.name}_16x16.gif`" alt=""></i>
  136. </span>
  137. <span class="arrow-span">
  138. <em class="arrow-down show-fuldata" @click="showFulData($event)"></em>
  139. <em class="arrow-up hide-data" @click="hideFulData($event)"></em>
  140. </span>
  141. </section>
  142. <section class="player-data">
  143. <table class="fully-data">
  144. <tr>
  145. <td>
  146. <label>补兵:</label>
  147. <span>{{ item.total_minions_killed }}</span>
  148. </td>
  149. <td>
  150. <label>金钱:</label>
  151. <span>{{ item.gold_earned }}</span>
  152. </td>
  153. <td>
  154. <label>推塔:</label>
  155. <span>{{ item.total_turrets_killed }}</span>
  156. </td>
  157. </tr>
  158. <tr>
  159. <td>
  160. <label>对英雄伤害:</label>
  161. <span>{{ item.total_damage_dealt_to_champions }}</span>
  162. </td>
  163. <td>
  164. <label>野怪:</label>
  165. <span>{{ item.total_neutral_minions_killed }}</span>
  166. </td>
  167. <td>
  168. <label>连杀:</label>
  169. <span>{{ item.largest_killing_spree }}</span>
  170. </td>
  171. </tr>
  172. <tr>
  173. <td>
  174. <label>多杀:</label>
  175. <span>{{ item.largest_multi_kill }}</span>
  176. </td>
  177. <td>
  178. <label>方眼数:</label>
  179. <span>{{ item.total_ward_placed }}</span>
  180. </td>
  181. <td>
  182. <label>排眼数:</label>
  183. <span>{{ item.total_ward_killed }}</span>
  184. </td>
  185. </tr>
  186. </table>
  187. <p class="d-f">
  188. <i v-for="spell in item.spells"><img :src="`${staticUrl}/images/spells/${spell.id}_24x24.jpg`" /></i>
  189. </p>
  190. </section>
  191. </li>
  192. </ul>
  193. </section>
  194. </div>
  195. </div>
  196. </template>
  197. <script>
  198. import page from './js/detail';
  199. export default page;
  200. </script>