myFocus.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <title>我的关注</title>
  7. <meta name="description" content="" />
  8. <meta name="keywords" content="" />
  9. <link rel="stylesheet" href="css/global.css" />
  10. <style>
  11. body { height: 527px; overflow: hidden; }
  12. .my-attention{overflow: hidden;}
  13. .page-nav{margin-top:10px;}
  14. </style>
  15. <!--[if IE 7]>
  16. <style>.page-nav A.current{vertical-align:5px;}</style>
  17. <![endif]-->
  18. <!--[if gt IE 6]><!-->
  19. <script type="text/javascript">
  20. !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)}}}())
  21. </script>
  22. <!--<![endif]-->
  23. </head>
  24. <body>
  25. <div class="box personal">
  26. <div class="box-bd">
  27. <div class="mod-tabs clearfix">
  28. <div class="mod-tabs-hd">
  29. <ul class="mod-tabs-trigger">
  30. <li class="selected" data-type="follow">我的关注</li>
  31. <li data-type="fans" class="stat-sign" stat-sign="fans" stat-desc="点击/我的粉丝">我的粉丝</li>
  32. </ul>
  33. </div>
  34. <div class="mod-tabs-bd my-attention" id="listWrap"></div>
  35. </div>
  36. </div>
  37. <script src="js/jquery-1.11.1.min.js"></script>
  38. <script src="js/jquery-migrate-1.2.1.min.js"></script>
  39. <script src="http://g.duowan.com/js/jquery.cookie.js"></script>
  40. <script src="js/underscore.js"></script>
  41. <script type="text/template" id="dataTmpl">
  42. <%
  43. var type = data.pageType, typeCh;
  44. if(type == "fans") {
  45. typeCh = "粉丝";
  46. } else {
  47. typeCh = "关注";
  48. }
  49. var pages = Math.ceil(data.length / data.pageSize);
  50. var current = data.page;
  51. var pre = current == 1 ? 1 : current - 1;
  52. var next = current == pages ? pages : current + 1;
  53. if(data.length > 0) {
  54. %>
  55. <div class="focus-body">
  56. <table cellspacing="0" cellpadding="0" border="0" width="100%">
  57. <thead>
  58. <tr>
  59. <th width="200">召唤师</th>
  60. <th width="170">服务器</th>
  61. <th>战斗力</th>
  62. </tr>
  63. </thead>
  64. <tbody>
  65. <% _.each(data, function(item, key){
  66. var gameZone = item.game_zone;
  67. var sn = gameZone.server_name;
  68. var snEncode = encodeURIComponent(sn);
  69. var pnEncode = encodeURIComponent(item.pn);
  70. var userId = item.user_id;
  71. var pinyin = gameZone.pinyin;
  72. %>
  73. <tr>
  74. <td>
  75. <img src="<%= item.url_img %>" class="profileIcon">
  76. <a style="color: #408bcb;" href="generalRecord.html?serverName=<%=snEncode%>&playerName=<%=pnEncode%>&userId=<%=userId%>&gameZone=<%=pinyin%>"><%= item.pn %></a>
  77. </td>
  78. <td align="center"><%= sn %></td>
  79. <td align="center"><%= item.box_score %></td>
  80. </tr>
  81. <% });%>
  82. </tbody>
  83. </table>
  84. </div>
  85. <div class="page-nav">
  86. <a>第<%=current%>/<%=pages%>页</a>
  87. <a title="上一页" class="pre-next" href="javascript: app.next(<%=pre%>)" rel="prev">上一页</a>
  88. <a title="下一页" rel="next" class="pre-next" href="javascript: app.next(<%=next%>)">下一页</a>
  89. <a class="current">第 <input type="text" id="go" size="1" value="<%=current%>">页 </a>
  90. <a class="page-go" href="javascript: app.go()"> Go </a>
  91. </div>
  92. <% } else { %>
  93. <div style="text-align: center;margin-top: 150px;">
  94. <p>您的<%=typeCh%>列表为空。</p>
  95. </div>
  96. <%}%>
  97. </script>
  98. <script src="js/myFocus.js"></script>
  99. <script src="js/new_stat.js"></script>
  100. <script>
  101. var app = new App();
  102. </script>
  103. <!--海度统计-->
  104. <script type="text/javascript">_hiido_no=0;_hiido_wid=["lbox"];</script>
  105. <script src="http://www.duowan.com/duowan.js" type="text/javascript"></script>
  106. <!--百度统计-->
  107. <script>
  108. var _hmt = _hmt || [];
  109. (function() {
  110. var hm = document.createElement("script");
  111. hm.src = "//hm.baidu.com/hm.js?72772dda37b1e926733138415981abcf";
  112. var s = document.getElementsByTagName("script")[0];
  113. s.parentNode.insertBefore(hm, s);
  114. })();
  115. </script>
  116. <!--[if gt IE 6]><!-->
  117. <script type="text/javascript">
  118. 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)}}}());
  119. </script>
  120. <!--<![endif]-->
  121. </body>
  122. </html>