simulatorGameList.tmpl 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <div class="list-panel" data-role='<%= data.role %>'>
  2. <% if(data.list){ %>
  3. <ul class="glist-game gList-row3" data-page-role="list">
  4. <% for(var i=0; i<data.list.length; i++){ %>
  5. <% if(i<18){ %>
  6. <li class="gItem-game">
  7. <% }else{ %>
  8. <li class="gItem-game u-hide">
  9. <% } %>
  10. <a href='./simulatorDetail.html?gameId=<%= data.list[i]["id"] %>&tid=45572470' target="_blank" class="gItem-cover">
  11. <img src='<%= data.list[i]["icon"] %>' alt='<%= data.list[i]["name"] %>'>
  12. </a>
  13. <div class="gItem-btn" style="display:none">启动</div>
  14. <a href='./simulatorDetail.html?gameId=<%= data.list[i]["id"] %>&tid=45572470' target="_blank" class="gItem-title"><%= data.list[i]["name"] %></a>
  15. </li>
  16. <% } %>
  17. </ul>
  18. <% if(Math.ceil(data.list.length/18)>1){ %>
  19. <div class="g-page-num" data-page-role="nav">
  20. <span class="btn-page btn-page-prev is-disabled">上一页</span>
  21. <span>第<em class="page-index">1</em>/<em class="page-num"><%= Math.ceil(data.list.length/18) %></em>页</span>
  22. <span class="btn-page btn-page-next">下一页</span>
  23. <span>第<input type="text" name="pageIndex" class="txt-page">页</span>
  24. <span class="btn-page btn-page-go">Go</span>
  25. </div>
  26. <% } %>
  27. <% }else{ %>
  28. <div class="result-empty">
  29. <div class="pic-hezi"></div>
  30. <p>我很努力了,但是还是没有搜索到 </p>
  31. </div>
  32. <% } %>
  33. </div>