123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400 |
- <%
- var idx = 1;
- data = data.player_game_list[0];
- %>
- <div id="data-layer" class="data-layer">
- <%
- var win = data.team_win.player_champions;
- if(win && win.length > 0) {
- _.each(win, function(player) {
- var summonerNameFiltered, summonerTitle, leaverFlag, urlAvatar, urlSkill1, urlSkill2,MVPEva,isMVP;
- var playerInfo = player.player;
- var champion = player.champion;
- var spells = player.spells;
- // 实际是 playerName
- summonerNameFiltered = playerInfo.pn;
- summonerTitle =champion.display_name;
- leaverFlag = player.is_deserter ? "<span class='red'>(逃)</span>" : "";
- urlAvatar = staticImg + '/champions/' + champion.name + '_40x40.jpg';
- if (spells[0] && spells[0].id) {
- urlSkill1 = spells[0].url_img;
- } else {
- urlSkill1 = null;
- }
- if (spells[1] && spells[1].id) {
- urlSkill2 = spells[1].url_img;
- } else {
- urlSkill2 = null;
- }
- var TOTAL_KILLED = player.total_killed;
- var TOTAL_DEATH = player.total_death;
- var TOTAL_ASSIST = player.total_assist;
- var GOLD_EARNED = player.gold_earned_in_k;
- var TOTAL_TIME_SPENT_DEAD = player.total_time_spent_dead;
-
- var PHYSICAL_DAMAGE_TAKEN = player.physical_damage_taken;
- var MAGIC_DAMAGE_TAKEN = player.magic_damage_taken;
- var TRUE_DAMAGE_TAKEN = player.true_damage_taken;
- var TOTAL_DAMAGE_DEALT_TO_BUILDINGS = player.total_damage_dealt_to_buildings;
- var MINIONS_KILLED = player.total_minions_killed;
- var TOTAL_TIME_CROWD_CONTROL_DEALT = player.total_neutral_minions_killed;
- var SIGHT_WARDS_BOUGHT_IN_GAME = player.sight_wards_bought_in_game;
- var TURRETS_KILLED = player.total_turrets_killed;
- var BARRACKS_KILLED = player.total_barracks_killed;
- var WARD_PLACED = player.total_ward_placed;
- var WARD_KILLED = player.total_ward_killed;
- var LARGEST_KILLING_SPREE = player.largest_killing_spree;
- var LARGEST_MULTI_KILL = player.largest_multi_kill;
- var LARGEST_CRITICAL_STRIKE = player.largest_critical_strike || '-';
- var TOTAL_HEAL = player.total_heal || '-';
- var TOTAL_DAMAGE_DEALT = player.total_damage_dealt;
- var TOTAL_DAMAGE_TAKEN = player.total_damage_taken;
- var TOTAL_DAMAGE_DEALT_TO_CHAMPIONS = player.total_damage_dealt_to_champions;
- var PHYSICAL_DAMAGE_DEALT_TO_CHAMPIONS = player.total_physical_damage_dealt_to_champions;
- var MAGIC_DAMAGE_DEALT_TO_CHAMPIONS = player.total_magic_damage_dealt_to_champions;
- var TRUE_DAMAGE_DEALT_TO_CHAMPIONS = player.total_true_damage_dealt_to_champions;
- var NEUTRAL_MINIONS_KILLED_TOTAL = player.total_neutral_minions_killed;
- MVPEva = player.evaluate_in_game;
- isMVP = player['flag_mvp_carry'] == 1 ? true : false;
- isHope = player['flag_mvp_carry'] == 2 ? true : false;
- var isMVPOrHope = '';
- if (isHope) {
- isMVPOrHope = 'tip-big-avatar--stronger';
- } else if (isMVP) {
- isMVPOrHope = 'tip-big-avatar--mvp';
- }
- idx ++;
- %>
- <div class="layer">
- <div class="mod-tips-top">
- <div class="tip-topleft">
- <p class="tip-user-name">
- <%=summonerNameFiltered%>
- </p>
- <a href="javascript:;"
- class="tip-big-avatar <%=isMVPOrHope%>"><i></i><img
- src="<%=urlAvatar%>"></a>
- <div class="tip-user-detail">
- <span class="tip-tip-user-name2"><%=summonerTitle%></span>
- <%
- if (player['is_bot']) {} else {
- %>
- <p class="tip-small-avatar">
- <% if (urlSkill1) { %>
- <img src="<%=urlSkill1%>" />
- <% } %>
- <% if (urlSkill2) { %>
- <img src="<%=urlSkill2%>" />
- <% } %>
- </p>
- <% } %>
- </div>
- </div>
- <div class="tip-topright-wrap">
- <div class="tip-topright">
- <p>
- <em class="zj-zdl zj-s"></em>...
- </p>
- <p class="zj-blue">...</p>
- </div>
- </div>
- </div>
- <div class="mod-tips-main">
- <table class="mod-tips-data">
- <% if (MVPEva) { %>
- <tr>
- <td class="label" style="color: #ff9900;">战局评分:</td>
- <td colspan="3" style="color: #ff9900;"><%=MVPEva%></td>
- </tr>
- <% } %>
- <tr>
- <td class="label">击杀:</td>
- <td><%=TOTAL_KILLED%></td>
- <td class="label">死亡:</td>
- <td><%=TOTAL_DEATH%></td>
- </tr>
- <tr>
- <td class="label">助攻:</td>
- <td><%=TOTAL_ASSIST%></td>
- <td class="label">金钱:</td>
- <td><%=GOLD_EARNED%></td>
- </tr>
- <tr>
- <td class="label">最高连杀:</td>
- <td><%=LARGEST_KILLING_SPREE%></td>
- <td class="label">最高多杀:</td>
- <td><%=LARGEST_MULTI_KILL%></td>
- </tr>
- <tr>
- <td class="label">最大暴击:</td>
- <td><%=LARGEST_CRITICAL_STRIKE%></td>
- <td class="label">总治疗:</td>
- <td><%=TOTAL_HEAL%></td>
- </tr>
- <tr>
- <td class="label">击杀小兵:</td>
- <td><%=MINIONS_KILLED%></td>
- <td class="label">击杀野怪:</td>
- <td><%=NEUTRAL_MINIONS_KILLED_TOTAL%></td>
- </tr>
- <tr>
- <td class="label">推塔:</td>
- <td><%=TURRETS_KILLED%></td>
- <td class="label">兵营:</td>
- <td><%=BARRACKS_KILLED%></td>
- </tr>
- <tr>
- <td class="label">对建筑伤害:</td>
- <td><%=TOTAL_DAMAGE_DEALT_TO_BUILDINGS%></td>
- <td class="label">购买真眼:</td>
- <td><%=SIGHT_WARDS_BOUGHT_IN_GAME%></td>
- </tr>
- <tr>
- <td class="label">放眼数:</td>
- <td><%=WARD_PLACED%></td>
- <td class="label">排眼数:</td>
- <td><%=WARD_KILLED%></td>
- </tr>
- </table>
- <p>
- <span class="label">给对方英雄造成总伤害:</span>
- <%=TOTAL_DAMAGE_DEALT_TO_CHAMPIONS%>
- </p>
- <p>
- <span class="label">承受伤害:</span>
- <%=TOTAL_DAMAGE_TAKEN%>
- </p>
- <!-- <div class="tip-btn-group">
- <a href="http://www.huya.com/g/lol" target="_blank">直播</a>
- <a href="http://db.duowan.com/static/lolnewcz/list.html?name=<%=champion.name%>&flag=1&p=1">出装</a>
- </div> -->
- </div>
- </div>
- <%
- });
- }
- %>
- <%
- var loser = data.team_lose.player_champions;
- if(loser && loser.length > 0) {
- _.each(loser, function(player) {
- var summonerNameFiltered, summonerTitle, leaverFlag, urlAvatar, urlSkill1, urlSkill2,MVPEva,isMVP;
- var playerInfo = player.player;
- var champion = player.champion;
- var spells = player.spells;
- // 实际是 playerName
- summonerNameFiltered = playerInfo.pn;
- summonerTitle =champion.display_name;
- leaverFlag = player.is_deserter ? "<span class='red'>(逃)</span>" : "";
- urlAvatar = staticImg + '/champions/' + champion.name + '_40x40.jpg';
- if (spells[0] && spells[0].id) {
- urlSkill1 = spells[0].url_img;
- } else {
- urlSkill1 = null;
- }
- if (spells[1] && spells[1].id) {
- urlSkill2 = spells[1].url_img;
- } else {
- urlSkill2 = null;
- }
- var TOTAL_KILLED = player.total_killed;
- var TOTAL_DEATH = player.total_death;
- var TOTAL_ASSIST = player.total_assist;
- var GOLD_EARNED = player.gold_earned_in_k;
- var TOTAL_TIME_SPENT_DEAD = player.total_time_spent_dead;
-
- var PHYSICAL_DAMAGE_TAKEN = player.physical_damage_taken;
- var MAGIC_DAMAGE_TAKEN = player.magic_damage_taken;
- var TRUE_DAMAGE_TAKEN = player.true_damage_taken;
- var TOTAL_DAMAGE_DEALT_TO_BUILDINGS = player.total_damage_dealt_to_buildings;
- var MINIONS_KILLED = player.total_minions_killed;
- var TOTAL_TIME_CROWD_CONTROL_DEALT = player.total_neutral_minions_killed;
- var SIGHT_WARDS_BOUGHT_IN_GAME = player.sight_wards_bought_in_game;
- var TURRETS_KILLED = player.total_turrets_killed;
- var BARRACKS_KILLED = player.total_barracks_killed;
- var WARD_PLACED = player.total_ward_placed;
- var WARD_KILLED = player.total_ward_killed;
- var LARGEST_KILLING_SPREE = player.largest_killing_spree;
- var LARGEST_MULTI_KILL = player.largest_multi_kill;
- var LARGEST_CRITICAL_STRIKE = player.largest_critical_strike || '-';
- var TOTAL_HEAL = player.total_heal || '-';
- var TOTAL_DAMAGE_DEALT = player.total_damage_dealt;
- var TOTAL_DAMAGE_TAKEN = player.total_damage_taken;
- var TOTAL_DAMAGE_DEALT_TO_CHAMPIONS = player.total_damage_dealt_to_champions;
- var PHYSICAL_DAMAGE_DEALT_TO_CHAMPIONS = player.total_physical_damage_dealt_to_champions;
- var MAGIC_DAMAGE_DEALT_TO_CHAMPIONS = player.total_magic_damage_dealt_to_champions;
- var TRUE_DAMAGE_DEALT_TO_CHAMPIONS = player.total_true_damage_dealt_to_champions;
- var NEUTRAL_MINIONS_KILLED_TOTAL = player.total_neutral_minions_killed;
- MVPEva = player.evaluate_in_game;
- isMVP = player['flag_mvp_carry'] == 1 ? true : false;
- isHope = player['flag_mvp_carry'] == 2 ? true : false;
- var isMVPOrHope = '';
- if (isHope) {
- isMVPOrHope = 'tip-big-avatar--stronger';
- } else if (isMVP) {
- isMVPOrHope = 'tip-big-avatar--mvp';
- }
-
- idx ++;
- %>
- <div class="layer">
- <div class="mod-tips-top">
- <div class="tip-topleft">
- <p class="tip-user-name">
- <%=summonerNameFiltered%>
- </p>
- <a href="javascript:;"
- class="tip-big-avatar <%=isMVPOrHope%>"><i></i><img
- src="<%=urlAvatar%>"></a>
- <div class="tip-user-detail">
- <span class="tip-tip-user-name2"><%=summonerTitle%></span>
- <%
- if (player['is_bot']) {} else {
- %>
- <p class="tip-small-avatar">
- <% if (urlSkill1) { %>
- <img src="<%=urlSkill1%>" />
- <% } %>
- <% if (urlSkill2) { %>
- <img src="<%=urlSkill2%>" />
- <% } %>
- </p>
- <% } %>
- </div>
- </div>
- <div class="tip-topright-wrap">
- <div class="tip-topright">
- <p>
- <em class="zj-zdl zj-s"></em>...
- </p>
- <p class="zj-blue">...</p>
- </div>
- </div>
- </div>
- <div class="mod-tips-main">
- <table class="mod-tips-data">
- <% if (MVPEva) { %>
- <tr>
- <td class="label" style="color: #ff9900;">战局评分:</td>
- <td colspan="3" style="color: #ff9900;"><%=MVPEva%></td>
- </tr>
- <% } %>
- <tr>
- <td class="label">击杀:</td>
- <td><%=TOTAL_KILLED%></td>
- <td class="label">死亡:</td>
- <td><%=TOTAL_DEATH%></td>
- </tr>
- <tr>
- <td class="label">助攻:</td>
- <td><%=TOTAL_ASSIST%></td>
- <td class="label">金钱:</td>
- <td><%=GOLD_EARNED%></td>
- </tr>
- <tr>
- <td class="label">最高连杀:</td>
- <td><%=LARGEST_KILLING_SPREE%></td>
- <td class="label">最高多杀:</td>
- <td><%=LARGEST_MULTI_KILL%></td>
- </tr>
- <tr>
- <td class="label">最大暴击:</td>
- <td><%=LARGEST_CRITICAL_STRIKE%></td>
- <td class="label">总治疗:</td>
- <td><%=TOTAL_HEAL%></td>
- </tr>
- <tr>
- <td class="label">击杀小兵:</td>
- <td><%=MINIONS_KILLED%></td>
- <td class="label">击杀野怪:</td>
- <td><%=NEUTRAL_MINIONS_KILLED_TOTAL%></td>
- </tr>
- <tr>
- <td class="label">推塔:</td>
- <td><%=TURRETS_KILLED%></td>
- <td class="label">兵营:</td>
- <td><%=BARRACKS_KILLED%></td>
- </tr>
- <tr>
- <td class="label">对建筑伤害:</td>
- <td><%=TOTAL_DAMAGE_DEALT_TO_BUILDINGS%></td>
- <td class="label">购买真眼:</td>
- <td><%=SIGHT_WARDS_BOUGHT_IN_GAME%></td>
- </tr>
- <tr>
- <td class="label">放眼数:</td>
- <td><%=WARD_PLACED%></td>
- <td class="label">排眼数:</td>
- <td><%=WARD_KILLED%></td>
- </tr>
- </table>
- <p>
- <span class="label">给对方英雄造成总伤害:</span>
- <%=TOTAL_DAMAGE_DEALT_TO_CHAMPIONS%>
- </p>
- <p>
- <span class="label">承受伤害:</span>
- <%=TOTAL_DAMAGE_TAKEN%>
- </p>
- <!--<div class="tip-btn-group">
- <a href="http://www.huya.com/g/lol" target="_blank">直播</a>
- <a href="http://db.duowan.com/static/lolnewcz/list.html?name=<%=champion.name%>&flag=1&p=1">出装</a>
- </div>-->
- </div>
- </div>
- <%
- });
- }
- %>
- </div>
|