<% data = data.player_game_list[0]; var groupNameWinOrLose; var bannedHeroes = data.banned_champions; var userInfoClass = bannedHeroes.length > 0 ? '' : 'hide'; var gameTypeObj = data.game_type_obj; var localTime = moment.utc(data.end_timestamp).toDate(); localTime = moment(localTime).format('YYYY-MM-DD HH:mm:ss'), timeStrArr = localTime.split(' ')[1].split(':'),endTime = timeStrArr[0] + ':' + timeStrArr[1]; var teamWin = data.team_win; var teamLose = data.team_lose; var killStat = parseInt(teamWin.total_killed) + '/' + parseInt(teamLose.total_killed); var goldStat = parseInt(teamWin.gold_earned_in_k) + '/' + parseInt(teamLose.gold_earned_in_k)+'K'; // 游戏时长 var game_time__min = parseInt(data.game_length % 86400 % 3600 / 60); var game_time__sec = parseInt(data.game_length % 86400 % 3600 % 60 % 60); %>

人头:<%=killStat%>金钱:<%=goldStat%>结束:<%=endTime%>时长:<%=game_time__min%>:<%=game_time__sec%>

禁用英雄
<% if (data.queueType != 'ODIN_UNRANKED') { %> <% } else { %> <% } %>
胜利方
金钱 杀/死/助夺/拔/助 出装 查看前10分钟数据
<% var idx = 1, zjClass = ''; if (data.is_very_surprise_winner) { zjClass = "zj-table--big-changeover"; } else { if (data.is_surprise_winner) { zjClass="zj-table--changeover"; } } %>
<% var winPlayers = data.team_win.player_champions; if (winPlayers.length > 0) { groupNameWinOrLose = "winner-group"; _.each(winPlayers, function(player) { var leaverFlag, urlAvatar, summonerName,summonerTitle, pnTitle,urlDetail,totalLen,extraClass,sn,pn, GOLD_EARNED,KILL_DEATHS_ASSISTS; if (player.is_deserter) { leaverFlag = "(逃)"; } else { leaverFlag = ""; } var hoverPN;//英雄头像hover时传的playerName var champion = player.champion; var playerInfo = player.player; var serverName = data.game_zone.server_name; var pInfo = { userId: player.player.user_id, gameZone: data.game_zone.pinyin }; if (player.is_bot) { urlAvatar = staticImg + '/champions/' + champion.name + '_40x40.jpg'; summonerTitle = playerInfo.pn; summonerName = playerInfo.pn + leaverFlag; pnTitle = playerInfo.pn; urlDetail = null; hoverPN = ''; } else { hoverPN = playerInfo.pn; summonerTitle = playerInfo.pn; summonerName = playerInfo.pn + leaverFlag; urlAvatar = staticImg + '/champions/' + champion.name + '_40x40.jpg'; sn = encodeURIComponent(serverName); pn = encodeURIComponent(playerInfo.pn); urlDetail = "generalRecord.html?serverName="+sn +"&playerName="+pn + "&userId=" + pInfo.userId + "&gameZone=" + pInfo.gameZone; if( pInfo.userId ){ urlDetail = "generalRecord.html?serverName="+sn +"&playerName="+pn + "&userId=" + pInfo.userId + "&gameZone=" + pInfo.gameZone; }else{ urlDetail = "javascript:;"; } } var strBoxTitle = ''; if (player['honors'] && player['honors'].length > 0) { for(var i=0,len=player['honors'].length;i"; } } KILL_DEATHS_ASSISTS = player.total_killed + '/' + player.total_death + '/' + player.total_assist; var strZB = ''; var zhuang_bei_array = player['items']; if (zhuang_bei_array && zhuang_bei_array.length > 0) { for(var i=0,len=zhuang_bei_array.length;i'; } } var statDataIn10Min = player.kda_10; // MVP或者是大腿 var isMVPOrHope = ''; var flagMvpCarry = player.flag_mvp_carry; if (flagMvpCarry == 1) { isMVPOrHope = "team-name--stronger"; } else if (flagMvpCarry == 2) { isMVPOrHope = "team-name--mvp"; } var p = player.player; var pGameZone = data.game_zone.pinyin; var pUserId = p.user_id; %> <% if (data.queueType != 'ODIN_UNRANKED') { %> <% } %> <% idx++;}); for (var i = winPlayers.length; i < 5; i ++) { %> <% } } %>
<% if (urlDetail) { %> <%=summonerName%> <% } else { %> <%=summonerName%> <% } %>
<%=strBoxTitle%>
<%=player['gold_earned_in_k']%>k<%=KILL_DEATHS_ASSISTS%>
    <%=strZB%>
  • 补兵: <%if (statDataIn10Min && statDataIn10Min['m'] >= 80) {%> <%} else if (statDataIn10Min && statDataIn10Min['m'] >= 70) {%> <%}%> <%= (statDataIn10Min && statDataIn10Min['m'].toString()) || '-' %> <%if (statDataIn10Min && statDataIn10Min['m'] >= 70) {%> <%}%> 杀死助:<%=(statDataIn10Min && statDataIn10Min['k'].toString()) || '-'%>/<%=(statDataIn10Min && statDataIn10Min['d'].toString()) || '-'%>/<%=(statDataIn10Min && statDataIn10Min['a'].toString()) || '-'%>
<% var loserPlayers = data.team_lose.player_champions; if (loserPlayers.length > 0) { groupNameWinOrLose = "fail-group"; _.each(loserPlayers, function(player) { var leaverFlag, urlAvatar, summonerName, summonerTitle, pnTitle,urlDetail,totalLen,extraClass,sn,pn, GOLD_EARNED,KILL_DEATHS_ASSISTS; if (player.is_deserter) { leaverFlag = "(逃)"; } else { leaverFlag = ""; } var hoverPN;//英雄头像hover时传的playerName var champion = player.champion; var playerInfo = player.player; var serverName = data.game_zone.server_name; var pInfo = { userId: player.player.user_id, gameZone: data.game_zone.pinyin }; if (player.is_bot) { urlAvatar = staticImg + '/champions/' + champion.name + '_40x40.jpg'; summonerTitle = playerInfo.pn; summonerName = playerInfo.pn + leaverFlag; pnTitle = playerInfo.pn; urlDetail = null; hoverPN = ''; } else { hoverPN = playerInfo.pn; summonerTitle = playerInfo.pn; summonerName = playerInfo.pn + leaverFlag; urlAvatar = staticImg + '/champions/' + champion.name + '_40x40.jpg'; sn = encodeURIComponent(serverName); pn = encodeURIComponent(playerInfo.pn); /*userId为null或者0时不跳转*/ if( pInfo.userId ){ urlDetail = "generalRecord.html?serverName="+sn +"&playerName="+pn + "&userId=" + pInfo.userId + "&gameZone=" + pInfo.gameZone; }else{ urlDetail = "javascript:;"; } } var strBoxTitle = ''; if (player['honors'] && player['honors'].length > 0) { for(var i=0,len=player['honors'].length;i"; } } KILL_DEATHS_ASSISTS = player.total_killed + '/' + player.total_death + '/' + player.total_assist; var strZB = ''; var zhuang_bei_array =player['items']; if (zhuang_bei_array && zhuang_bei_array.length > 0) { for(var i=0,len=zhuang_bei_array.length;i'; } } var statDataIn10Min = player.kda_10; // MVP或者是大腿 var isMVPOrHope = ''; var flagMvpCarry = player.flag_mvp_carry; if (flagMvpCarry == 1) { isMVPOrHope = "team-name--stronger"; } else if (flagMvpCarry == 2) { isMVPOrHope = "team-name--mvp"; } var p = player.player; var pGameZone = data.game_zone.pinyin; var pUserId = p.user_id; %> <% if (data.queueType != 'ODIN_UNRANKED') { %> <% } %> <% idx++;}); for (var i = loserPlayers.length; i < 5; i ++) { %> <%}}%>
<% if (urlDetail) { %> <%=summonerName%> <% } else { %> <%=summonerName%> <% } %>
<%=strBoxTitle%>
<%=player['gold_earned_in_k']%>k<%=KILL_DEATHS_ASSISTS%>
    <%=strZB%>
  • 补兵: <%if (statDataIn10Min && statDataIn10Min['m'] >= 80) {%> <%} else if (statDataIn10Min && statDataIn10Min['m'] >= 70) {%> <%}%> <%= (statDataIn10Min && statDataIn10Min['m'].toString()) || '-' %> <%if (statDataIn10Min && statDataIn10Min['m'] >= 70) {%> <%}%> 杀死助:<%=(statDataIn10Min && statDataIn10Min['k'].toString()) || '-'%>/<%=(statDataIn10Min && statDataIn10Min['d'].toString()) || '-'%>/<%=(statDataIn10Min && statDataIn10Min['a'].toString()) || '-'%>