generalEcharts.tmpl 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <div class="mod-tabs-content no-phone-card">
  2. <div class="mod-top clearfix">
  3. <div class="clearfix da-ye-bd">
  4. <!--<div class="recent-game-wrap fl">
  5. <div class="charts-round-wrap composite-rate">
  6. <h3 class="charts-title">综合胜率</h3>
  7. <div id="compositeRateContainer" class="charts-wrap"></div>
  8. <div class="round-mask">
  9. <h3><%=data.stat_perf.kda.average_win_rate%>%</h3>
  10. </div>
  11. <div class="charts-more">
  12. <h3>&nbsp;</h3>
  13. <p>
  14. <span class="col-l">场均击杀</span>
  15. <span class="col-r"><%=data.stat_perf.kda.average_k%></span>
  16. </p>
  17. <p>
  18. <span class="col-l">场均死亡</span>
  19. <span class="col-r"><%=data.stat_perf.kda.average_d%></span>
  20. </p>
  21. <p>
  22. <span class="col-l">场均助攻</span>
  23. <span class="col-r"><%=data.stat_perf.kda.average_a%></span>
  24. </p>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="split-line one"></div>-->
  29. <div class="jungle-area-wrap fl">
  30. <div class="charts-round-wrap jungle-area">
  31. <h3 class="charts-title">战斗力构成</h3>
  32. <div id="jungleAreaContainer" class="charts-wrap"></div>
  33. <div class="round-mask">
  34. <h3 class="data-userPosition" data-percent="<%= data.box_score / 20000 * 100 %>"><%=data.box_score%></h3>
  35. </div>
  36. <div class="charts-more best-position__data">
  37. <h3><a href="http://lol.duowan.com/1611/343923769188.html" target="_blank" style="color: red;font-weight:400;">战斗力波动公告</a></h3>
  38. <p>
  39. <span class="col-l">基础分</span>
  40. <span class="col-r"><%=data.elo_score%></span>
  41. </p>
  42. <p>
  43. <span class="col-l">胜率分</span>
  44. <span class="col-r"><%=data.win_ratio_score%></span>
  45. </p>
  46. <p>
  47. <span class="col-l">胜场分</span>
  48. <span class="col-r"><%=data.win_battle_score%></span>
  49. </p>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="mod-bottom">
  56. <div class="right-part">
  57. <div class="right-hd">
  58. <h2>最近比赛</h2>
  59. <span class="first-win">
  60. <span id="firstMsg" class="first-msg"></span>
  61. <div class="first-win-hover hide">
  62. <i class="avatar-arrow"></i>
  63. <span id="firstTime" class="first-time">额外奖励倒计时:<span class="f-time"></span></span>
  64. </div>
  65. </span>
  66. <span id="flag"></span>
  67. <a id="moreGameResult" class="more" style="padding-right:5px;">更多<i></i></a>
  68. </div>
  69. <div class="right-bd">
  70. <ul id="history">
  71. </ul>
  72. </div>
  73. </div>
  74. <%
  75. // 经典对战
  76. var class_total = data.total_win_normal + data.total_lose_normal;
  77. var class_winRate = parseInt((data.total_win_normal / class_total)*100) || 0;
  78. //极地大乱斗
  79. var aram_total = data.total_win_aram + data.total_lose_aram;
  80. var aram_winRate = parseInt((data.total_win_aram / aram_total)*100) || 0;
  81. //人机
  82. var bot_total = data.total_win_bot + data.total_lose_bot;
  83. var bot_winRate = parseInt((data.total_win_bot / bot_total)*100) || 0;
  84. var _s7 = data.formatted_ranked_history.flex_sr || data.formatted_ranked_history.s7;
  85. var _s7_dsp = data.formatted_ranked_history.s7;//S7单双排
  86. var _s6 = data.formatted_ranked_history.s6;
  87. var _s5 = data.formatted_ranked_history.s5;
  88. var S7_total = _s7.lo + _s7.w;
  89. var S7_winRate = parseInt((_s7.w / S7_total)*100) || 0;
  90. var S6_total = _s6.lo + _s6.w;
  91. var S6_winRate = parseInt((_s6.w / S6_total)*100) || 0;
  92. var s7_dsp_total = _s7_dsp.lo + _s7_dsp.w;
  93. var s7_dsp_winRate = parseInt((_s7_dsp.w / s7_dsp_total)*100) || 0;
  94. var S6_total = _s6.lo + _s6.w;
  95. var S6_winRate = parseInt((_s6.w / S6_total)*100) || 0;
  96. if ( _s5 ){
  97. var S5_total = _s5.lo + _s5.w;
  98. var S5_winRate = parseInt((_s5.w / S5_total)*100) || 0;
  99. }
  100. %>
  101. <div class="left-part clearfix">
  102. <div class="p-table">
  103. <div class="table-history">
  104. <table>
  105. <thead>
  106. <tr>
  107. <th width="90">比赛类型</th>
  108. <th width="50">总场次</th>
  109. <th width="40">胜率</th>
  110. <th width="50">胜场</th>
  111. <th width="50">负场</th>
  112. <th width="50">段位</th>
  113. <th class="last" width="40">胜点</th>
  114. </tr>
  115. </thead>
  116. <tbody>
  117. <tr>
  118. <td width="90">匹配</td>
  119. <td width="50"><%= class_total %></td>
  120. <td width="40"><%= class_winRate %>%</td>
  121. <td class="table-win" width="50"><%= data.total_win_normal %></td>
  122. <td class="table-lose" width="50"><%= data.total_lose_normal %></td>
  123. <td width="50">--</td>
  124. <td class="last" width="40">--</td>
  125. </tr>
  126. <tr class="<% if ( _s7 ) { %>table-history__lastseason<%}%>">
  127. <td width="90" class="toggle-s4-s5">S7灵活组排<% if ( _s7 ) { %><i class="table-arrow"></i><%}%></td>
  128. <td width="50"><%= S7_total %></td>
  129. <td width="40"><%= S7_winRate %>%</td>
  130. <td class="table-win" width="50"><%= _s7.w %></td>
  131. <td class="table-lose" width="50"><%= _s7.lo %></td>
  132. <td width="50"><%= formatDW(_s7) %></td>
  133. <td class="last" width="40"><%= _s7.p %></td>
  134. </tr>
  135. <% if ( _s7_dsp ){ %>
  136. <tr class="s4-s5">
  137. <td width="90">S7单双排</td>
  138. <td width="50"><%= s7_dsp_total %></td>
  139. <td width="40"><%= s7_dsp_winRate %>%</td>
  140. <td class="table-win" width="50"><%= _s7_dsp.w %></td>
  141. <td class="table-lose" width="50"><%= _s7_dsp.lo %></td>
  142. <td width="50"><%= formatDW(_s7_dsp) %></td>
  143. <td class="last" width="40"><%= _s7_dsp.p %></td>
  144. </tr>
  145. <% } %>
  146. <% if ( _s6 ){ %>
  147. <tr class="s4-s5">
  148. <td width="90">S6排位赛</td>
  149. <td width="50"><%= S6_total %></td>
  150. <td width="40"><%= S6_winRate %>%</td>
  151. <td class="table-win" width="50"><%= _s6.w %></td>
  152. <td class="table-lose" width="50"><%= _s6.lo %></td>
  153. <td width="50"><%= formatDW(_s6) %></td>
  154. <td class="last" width="40">--</td>
  155. </tr>
  156. <% } %>
  157. <!--<% if ( _s5 ){ %>
  158. <tr class="s4-s5">
  159. <td width="90">S5排位赛</td>
  160. <td width="50"><%= S5_total %></td>
  161. <td width="40"><%= S5_winRate %>%</td>
  162. <td class="table-win" width="50"><%= _s5.w %></td>
  163. <td class="table-lose" width="40"><%= _s5.lo %></td>
  164. <td width="50"><%= formatDW(_s5) %></td>
  165. <td class="last" width="40">--</td>
  166. </tr>
  167. <% } %>-->
  168. <tr>
  169. <td width="90">大乱斗</td>
  170. <td width="50"><%= aram_total %></td>
  171. <td width="40"><%= aram_winRate %>%</td>
  172. <td class="table-win" width="50"><%= data.total_win_aram %></td>
  173. <td class="table-lose" width="50"><%= data.total_lose_aram %></td>
  174. <td width="50">--</td>
  175. <td class="last" width="40">--</td>
  176. </tr>
  177. <tr>
  178. <td width="90">人机</td>
  179. <td width="50"><%= bot_total %></td>
  180. <td width="40"><%= bot_winRate %>%</td>
  181. <td class="table-win" width="50"><%= data.total_win_bot %></td>
  182. <td class="table-lose" width="50"><%= data.total_lose_bot %></td>
  183. <td width="50">--</td>
  184. <td class="last" width="40">--</td>
  185. </tr>
  186. </tbody>
  187. </table>
  188. </div>
  189. </div>
  190. <div class="p-adwrap">
  191. </div>
  192. </div>
  193. </div>
  194. </div>