goodAt.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7,chrome=1" />
  6. <title>擅长领域</title>
  7. <meta name="description" content="" />
  8. <meta name="keywords" content="" />
  9. <link rel="stylesheet" href="css/morris.css" />
  10. <link rel="stylesheet" href="css/personal.css" />
  11. <!--[if gt IE 6]><!-->
  12. <script type="text/javascript">
  13. !function(t){t.loadScript(["http://szhuodong.duowan.com/feq/lolbox/yy-f2e-header-lolbox.min"])}(function(){function t(t){var e=n(t);document.write(e)}function n(t){for(var n,r="",c=0;n=t[c];c++)r+=e(n);return r}function e(t){var n=[unescape("%3Cscript%20type%3D%22text/javascript%22%20src%3D%22"),"",unescape("%22%3E%3C/script%3E")],e=new Date;return e.setSeconds(0),e.setMilliseconds(0),e=e.getTime(),t+="?t_="+e,n[1]=t,n.join("")}return{loadScript:function(n){n&&n.length&&n instanceof Array&&t(n)}}}())
  14. </script>
  15. <!--<![endif]-->
  16. <!--[if IE 7]>
  17. <style>
  18. .hero-nav, .content-nav li,.blacklist{behavior: url(js/PIE.htc);}
  19. </style>
  20. <![endif]-->
  21. <script>var playerMostUsedHero = null,jiathis_config;</script>
  22. </head>
  23. <body style="overflow:hidden;" scroll="no">
  24. <div class="personal-nav-wrap">
  25. <div class="mod-tabs-hd col-4 clearfix">
  26. <ul class="mod-tabs-trigger J_nav" id="modeTabs">
  27. <li class="stat-sign" stat-sign="zonghe" stat-desc="综合统计" data-name="generalRecord">
  28. <a href="javascript:;">战绩总览</a>
  29. </li>
  30. <li class="stat-sign" stat-sign="common" stat-desc="常规模式" data-name="historyRecord">
  31. <a href="javascript:;">历史战绩</a>
  32. </li>
  33. <li class="selected stat-sign" stat-sign="2015" stat-desc="stat-desc" data-name="goodAt">
  34. <a href="javascript:;">擅长领域</a>
  35. </li>
  36. <li class="stat-sign" data-name="achievement">
  37. <a href="javascript:;">个人称号</a>
  38. </li>
  39. </ul>
  40. <div class="common-page__control clearfix">
  41. <a href="javascript:;" class="common-page__goBack"></a>
  42. <a href="javascript:;" class="common-page__reflash"></a>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="box personal" style="width:600px;padding:15px;overflow:hidden;">
  47. <div class="no-data-tip hide">
  48. <img src="img/clothes-commit-fail.png">
  49. <p></p>
  50. </div>
  51. <div class="box-bd clearfix">
  52. <div class="intro" id="personalInfo">
  53. </div>
  54. <div class="mod-tabs clearfix">
  55. <div class="mod-tabs-bd">
  56. <ul class="content-nav clearfix">
  57. <li class="active fl" data-id="0">
  58. <a href="" title="">
  59. 打野
  60. <i class="arrow-down"></i>
  61. </a>
  62. </li>
  63. <li class="fl" data-id="1">
  64. <a href="" title="">
  65. 输出
  66. <i class="arrow-down"></i>
  67. </a>
  68. </li>
  69. <li class="last fl" data-id="2">
  70. <a href="" title="">
  71. 辅助
  72. <i class="arrow-down"></i>
  73. </a>
  74. </li>
  75. </ul>
  76. <div class="detail-content">
  77. <div class="detail-main clearfix" id="detailMain">
  78. </div>
  79. <div class="detail-videos" id="detailVideos">
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <!-- 玩家个人信息模板 -->
  86. <script id="personalInfoTemp" type="text/template">
  87. <%
  88. var level = data.level;
  89. var zdlData = data.tier_rank;
  90. var global = data.global;
  91. var tier = zdlData.tier;
  92. var duanwei = tier.name_cn;
  93. var url = (data.focus == "0") ? (global.aUrl + "addFocus") : (global.aUrl + "removeFocus");
  94. var tierName;
  95. if (zdlData && zdlData['tier'] && zdlData['tier']['const'] > 0) {
  96. tierName = zdlData['tier']['name_cn'] + ' ' + zdlData['rank']['name'];
  97. duanwei = zdlData['tier']['const'];
  98. } else {
  99. tierName = '-';
  100. duanwei = '0';
  101. }
  102. %>
  103. <div class="info">
  104. <div class="avatar">
  105. <a href="<%=global.href%>" class="stat-sign" stat-sign="stand" stat-desc="点击/战绩页">
  106. <img src="<%=data.url_img%>" />
  107. </a><div class="p_level"><%=level%></div>
  108. <img src="img/achievement/placeholder.png" class="userMedal">
  109. </div>
  110. <div class="text">
  111. <div class="name-info clearfix">
  112. <a class="name" href="javascript:;" title="<%=data.pn%>"><%=data.pn%></a>
  113. <span class="name-info__nameServer">(<%=data.game_zone.alias%>)</span>
  114. <span class="userInfo-common__focus <%=data.isSelf ? 'hide' : ''%>">
  115. <%if(data.followed) {%>
  116. <a class="attention already" data-action="removeFocus"></a>
  117. <%} else {%>
  118. <a class="attention" data-action="addFocus"></a>
  119. <%} %>
  120. </span>
  121. </div>
  122. <div class="more-info">
  123. <span class="userDuanwei" data-duanwei="<%=duanwei%>"><%=tierName%></span>
  124. <span class="line-small"></span>
  125. <span>点赞 <%=data.like%></span>
  126. <span class="line-small"></span>
  127. <span class="blacklist-content2">
  128. <label>拉黑 <%=data.unlike%></label>
  129. </span>
  130. <!-- <span class="blacklist">隐藏拉黑</span> -->
  131. </div>
  132. </div>
  133. </div>
  134. <!-- 段位信息 -->
  135. <%
  136. if(tier){
  137. %>
  138. <div class="duan-wei clearfix">
  139. <img src="img/user-common__fighting.png">
  140. <p class="duan-wei-msg"><%=data.box_score%></p>
  141. </div>
  142. <%}%>
  143. <!-- 常用英雄列表 -->
  144. <div class="user-hero__box">
  145. <div class="user-hero__header clearfix">
  146. <h3>常用英雄</h3>
  147. <!-- 更多常用英雄URL -->
  148. <%
  149. var moreHeroURL = ['championsStat.html?serverName=', data.game_zone.server_name, '&playerName=', data.pn, '&userId=', data.user_id, '&gameZone=', data.game_zone.pinyin].join('');
  150. var historyRecordURL = ['historyRecord.html?serverName=', data.game_zone.server_name, '&playerName=', data.pn, '&userId=', data.user_id, '&gameZone=', data.game_zone.pinyin].join('');
  151. %>
  152. <a href="<%= moreHeroURL %>">更多》</a>
  153. </div>
  154. <ul class="user-hero__list clearfix">
  155. <%
  156. var heroListData = data.champion_performance_list.slice(0,5);
  157. _.each(heroListData, function(item, i){
  158. %>
  159. <li>
  160. <a href="<%= historyRecordURL %>&championId=<%= item.champion.id %>">
  161. <img src="<%= item.champion.url_img['40x40'] %>">
  162. <div class="user-hero__mask"></div>
  163. <div class="user-hero__info">
  164. <p class="user-hero__info--title">胜率</p>
  165. <p><%= item.win_rate %>%</p>
  166. </div>
  167. </a>
  168. </li>
  169. <% }); %>
  170. </ul>
  171. </div>
  172. </script>
  173. <!-- 擅长领域中间部分模板 -->
  174. <script id="detailMainTemp" type="text/template">
  175. <%
  176. /* 是否超过平均值(是否打勾)*/
  177. function isPass(cpData){
  178. if ( parseInt(cpData.key) > parseInt(cpData.ave) ){
  179. return 'check';
  180. }else{
  181. return 'wrong';
  182. }
  183. }
  184. /* 比较结果 */
  185. var cpResult = [
  186. isPass({key: data.chart1.rate, ave: data.zone.zone1['ave']}), // 饼图1
  187. isPass({key: data.chart2.rate, ave: data.zone.zone2['ave']}), // 饼图2
  188. isPass({key: data.chart3.rate, ave: data.zone.zone3['ave']}), // 饼图3
  189. ]
  190. %>
  191. <div class="main-left fl">
  192. <div class="detail-info">
  193. <!-- 称号、得分二期做 -->
  194. <!-- <span class="title">称号:野区杀神</span> -->
  195. <!-- <span>得分<%=data.score%></span> -->
  196. <!-- <i class="question"></i> -->
  197. </div>
  198. <div class="level-charts">
  199. <ul class="clearfix">
  200. <li class="fl">
  201. <div class="charts-round-wrap">
  202. <div id="gankContainer" class="charts-wrap"></div>
  203. <div class="round-mask" title="<%=data.chart1.title%>">
  204. <h3><%=data.chart1.name%></h3>
  205. <p><%=data.chart1.rate%>%</p>
  206. </div>
  207. </div>
  208. <span class="tip <%=cpResult[0]%>"></span>
  209. <div class="msg">
  210. <h3>同段位<%=data.chart1.name%>平均值</h3>
  211. <p class="data-duanwei__zone"><%=data.zone.zone1['ave']%>%</p>
  212. </div>
  213. </li>
  214. <li class="active fl">
  215. <div class="charts-round-wrap">
  216. <div id="joinPartyContainer" class="charts-wrap"></div>
  217. <div class="round-mask" title="<%=data.chart2.title%>">
  218. <h3><%=data.chart2.name%></h3>
  219. <p><%=data.chart2.rate%>%</p>
  220. </div>
  221. </div>
  222. <span class="tip <%=cpResult[1]%>"></span>
  223. <!-- <span class="round-arrow"></span> -->
  224. <div class="msg m-adjust">
  225. <h3>同段位<%=data.chart2.name%>平均值</h3>
  226. <p class="data-duanwei__zone"><%=data.zone.zone2['ave']%>%</p>
  227. </div>
  228. </li>
  229. <li class="fl">
  230. <div class="charts-round-wrap">
  231. <div id="dragonContainer" class="charts-wrap"></div>
  232. <div class="round-mask" title="<%=data.chart3.title%>">
  233. <h3><%=data.chart3.name%></h3>
  234. <p><%=data.chart3.rate%>%</p>
  235. </div>
  236. </div>
  237. <span class="tip <%=cpResult[2]%>"></span>
  238. <div class="msg">
  239. <h3>同段位<%=data.chart3.name%>平均值</h3>
  240. <p class="data-duanwei__zone"><%=data.zone.zone3['ave']%>%</p>
  241. </div>
  242. </li>
  243. </ul>
  244. </div>
  245. <%
  246. var positionIndex = $('.mod-tabs-bd li.active').index();
  247. var positionName = ['打野','输出','辅助'];
  248. var position = ['jungler','adc','support'];
  249. var TotalWin = {};
  250. TotalWin.totalWinNum_adc = parseInt(data.All.win_adc) + parseInt(data.All.lose_adc);
  251. TotalWin.totalWinNum_support = parseInt(data.All.win_support) + parseInt(data.All.lose_support);
  252. TotalWin.totalWinNum_jungler = parseInt(data.All.win_jungler) + parseInt(data.All.lose_jungler);
  253. var currentPositionWinNum = TotalWin['totalWinNum_'+position[positionIndex]];
  254. %>
  255. <div class="detail-desc">
  256. <span class="detail-desc__winRate" title="最近使用<%=positionName[positionIndex]%>:<%=currentPositionWinNum%>场">综合<%=positionName[positionIndex]%>胜率: <%=parseInt(data.All['win_rate_'+position[positionIndex]]) || 0%>%</span>&nbsp&nbsp&nbsp&nbsp<span class="detail-desc__tips">此数据根据最近20场比赛平均计算</span>
  257. </div>
  258. <div class="detail-left-more">
  259. <ul class="clearfix">
  260. <li class="fl">
  261. <h3>场均信号沟通</h3>
  262. <p><%=data.bottom.signal%></p>
  263. </li>
  264. <li class="fl">
  265. <h3>视野率</h3>
  266. <p><%=data.bottom.eye%>%</p>
  267. </li>
  268. <li class="fl">
  269. <h3>场均野怪击杀</h3>
  270. <p><%=data.bottom.kill%></p>
  271. </li>
  272. <li class="last fl">
  273. <h3>场均推塔</h3>
  274. <p><%=data.bottom.tower%></p>
  275. </li>
  276. </ul>
  277. </div>
  278. </div>
  279. <div class="main-right fl">
  280. <h3>常用<%=data.list.title%></h3>
  281. <ul>
  282. <% _.each(data.list.data, function(item, key){ %>
  283. <li class="clearfix">
  284. <img src="<%=item.champion.url_img['40x40']%>" class="fl">
  285. <div class="detail fl">
  286. <span>胜率</span>
  287. <p><%=item.win_rate%>%</p>
  288. </div>
  289. </li>
  290. <% }); %>
  291. </ul>
  292. </div>
  293. </script>
  294. <!-- 推荐视频模块模板 -->
  295. <script id="detailVideosTemp" type="text/template">
  296. <a class="hero-tip tip-large" href="<%=data.moreLink%>" target="_blank">
  297. <span>推荐视频</span>
  298. </a>
  299. <ul class="clearfix">
  300. <% _.each(data, function(item, key){ %>
  301. <li class="fl">
  302. <a href="<%=item.video_url%>" target="_blank">
  303. <img src="<%=item.video_cover%>">
  304. <div class="video-more">
  305. <div class="inner clearfix">
  306. <span class="title word" title="<%=item.video_title%>"><%=item.video_title%></span>
  307. <span class="time fr"><%=item.video_duration%></span>
  308. </div>
  309. </div>
  310. </a>
  311. </li>
  312. <% }); %>
  313. </ul>
  314. </script>
  315. <script src="js/jquery-1.11.1.min.js"></script>
  316. <script src="js/jquery-migrate-1.2.1.min.js"></script>
  317. <script src="js/highcharts.js"></script>
  318. <script src="js/jquery.nicescroll.min.js"></script>
  319. <script src="js/jquery.cookie.js"></script>
  320. <script src="js/underscore.js"></script>
  321. <script type="text/javascript" src="http://sz.duowan.com/s/ya/ya.1.3.1-min.js"></script>
  322. <!--广告位统计-->
  323. <script src="http://sz.duowan.com/resource/adstat.1.0.0.js"></script>
  324. <script src="js/moment.min.js"></script>
  325. <script src="js/new_stat.js"></script>
  326. <script src="js/personal_v3.0.js"></script>
  327. <script type="text/javascript">
  328. $(function() {
  329. new Personal('tab3');
  330. });
  331. </script>
  332. <!--海度统计-->
  333. <script type="text/javascript">_hiido_no=0;_hiido_wid=["lbox"];</script>
  334. <script src="http://www.duowan.com/duowan.js" type="text/javascript"></script>
  335. <!--百度统计-->
  336. <script>
  337. var _hmt = _hmt || [];
  338. (function() {
  339. var hm = document.createElement("script");
  340. hm.src = "//hm.baidu.com/hm.js?72772dda37b1e926733138415981abcf";
  341. var s = document.getElementsByTagName("script")[0];
  342. s.parentNode.insertBefore(hm, s);
  343. })();
  344. </script>
  345. <!--[if gt IE 6]><!-->
  346. <script type="text/javascript">
  347. window.onerror = function(a,b,c){ return true};!function(t){t.loadScript(["http://szhuodong.duowan.com/feq/lolbox/yy-f2e-lolbox.min"])}(function(){function t(e,a){var n=a[e];if(n){e++;var o=document.createElement("script");o.type="text/javascript",o.setAttribute("async","async"),o.onload=o.onreadystatechange=function(){return o.readyState&&"complete"!==o.readyState&&"loaded"!==o.readyState?!1:(o.onload=o.onreadystatechange=null,void t(e,a))};var c=new Date;c.setSeconds(0),c.setMilliseconds(0),c=c.getTime(),o.async=!0,o.src=n+"?_="+c,document.getElementsByTagName("head")[0].appendChild(o)}}return{loadScript:function(e){e&&e.length&&e instanceof Array&&t(0,e)}}}());
  348. </script>
  349. <!--<![endif]-->
  350. <!-- 谷歌浏览器打开error -->
  351. <script type="text/javascript">
  352. /Chrom/gi.test(window.navigator.userAgent) && (window.onerror = null);
  353. </script>
  354. </body>
  355. </html>