123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <!-- 用户信息渲染模板 -->
- <%
- var tierName = data.tier_rank.tier['const'] > 0 ? data.tier_rank.tier.name_cn + data.tier_rank.rank.name : '无段位'
- %>
- <div class="info">
- <div class="avatar">
- <a href="<%=data.global.href%>" class="stat-sign" stat-sign="stand" stat-desc="点击/战绩页">
- <img src="<%= staticImg + '/profile_icons/' + data.icon + '.jpg' %>" />
- </a>
- <div class="p_level"><%=data.level%></div>
- <!--<img src="img/achievement/placeholder.png" class="userMedal">-->
- </div>
- <div class="text">
- <div class="name-info clearfix">
- <a class="name" href="javascript:;" title="<%=data.pn%>"><%=data.pn%></a>
- <span class="name-info__nameServer">(<%=data.game_zone.alias%>)</span>
- <span class="userInfo-common__focus <%=data.isSelf ? 'hide' : ''%>">
- <%if(data.followed) {%>
- <a class="attention already" data-action="removeFocus"></a>
- <%} else {%>
- <a class="attention" data-action="addFocus"></a>
- <%} %>
- <a class="btn-copy" id="copy-button" data-clipboard-text="<%=data.pn%>">复制名字</a>
- </span>
- </div>
- <div class="more-info">
- <span><%=tierName%></span>
- <span class="line-small"></span>
- <span>点赞 <%=data.like%></span>
- <span class="line-small"></span>
- <span class="blacklist-content2">
- <label>拉黑 <%=data.unlike%></label>
- </span>
- <!-- <span class="blacklist">隐藏拉黑</span> -->
- </div>
- </div>
- </div>
- <!-- 段位信息 -->
- <div class="duan-wei clearfix">
- <div class="icon-fighting"></div>
- <p class="duan-wei-msg"><%=data.box_score%></p>
- </div>
- <!-- 常用英雄列表 -->
- <div class="user-hero__box">
- <div class="user-hero__header clearfix">
- <h3>常用英雄</h3>
- <!-- 更多常用英雄URL -->
- <%
- var moreHeroURL = ['championsStat.html?serverName=', data.game_zone.server_name, '&playerName=', data.pn, '&userId=', data.user_id, '&gameZone=', data.game_zone.pinyin].join('');
- var historyRecordURL = ['historyRecord.html?serverName=', data.game_zone.server_name, '&playerName=', data.pn, '&userId=', data.user_id, '&gameZone=', data.game_zone.pinyin].join('');
- %>
- <a href="<%= moreHeroURL %>">更多》</a>
- </div>
- <ul class="user-hero__list clearfix">
- <% var heroListData = data.champion_performance_list.slice(0,5);
- _.each(heroListData, function(item, i){ %>
- <li>
- <a href="<%= historyRecordURL %>&championId=<%= item.champion.id %>">
- <img src="<%= staticImg + '/champions/' + item.champion.name + '_40x40.jpg' %>">
- <div class="user-hero__mask"></div>
- <div class="user-hero__info">
- <p class="user-hero__info--title">胜率</p>
- <p><%= item.win_rate %>%</p>
- <div class="user-hero__info--tips">
- <p>最近场次: <%= item.times %></p>
- </div>
- </div>
- </a>
- </li>
- <% }); %>
- </ul>
- </div>
|