simulatorDetail.tmpl 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <div class="dl-header clearfix">
  2. <div class="game-cover">
  3. <img src='<%= data["icon"] %>' alt="">
  4. </div>
  5. <div class="game-info">
  6. <div class="info-row1 clearfix">
  7. <h2><%= data["name"] %></h2>
  8. <ul>
  9. <% for(var i=0; i<data["categories"].length; i++){ %>
  10. <li class="bg-yellow"><%= data["categories"][i]["categoryName"] %></li>
  11. <% } %>
  12. <li class="bg-green">已适配</li>
  13. </ul>
  14. </div>
  15. <div class="info-row2">
  16. <span><%= (data["appSize"]/1024/1024).toFixed(2) %> M</span>
  17. <span><%= data["downloadNum"] %> 人下载</span>
  18. </div>
  19. </div>
  20. <div class="game-install">
  21. <% if(data["isInstall"]){ %>
  22. <a href='lolbox://startemulator_packageName=<%= data["packageName"] %>' target="_blank" class="btn-install">启动</a>
  23. <% }else{ %>
  24. <a href='<%= data["apkUrl"]+"?packageName="+data["packageName"] %>' target="_blank" class="btn-install">安装</a>
  25. <% } %>
  26. <div class="btn-phone" data-url='<%= data["apkUrl"] %>'>安装到手机»</div>
  27. </div>
  28. </div>
  29. <div class="dl-body">
  30. <div class="dl-carousel" data-role="carousel-banner">
  31. <div class="dl-cover_scroller">
  32. <ul class="dl-cover_content" data-switchable-role="content">
  33. <% for(var i=0; i<data.bannerUrls.length; i++){ %>
  34. <li>
  35. <img src='<%= data.bannerUrls[i] %>' alt="">
  36. </li>
  37. <% } %>
  38. </ul>
  39. </div>
  40. <span class="dl-cover_prev" data-switchable-role="prev"><i class="ui-icon"></i></span>
  41. <span class="dl-cover_next" data-switchable-role="next"><i class="ui-icon"></i></span>
  42. </div>
  43. <div class="dl-intro">
  44. <% var date = new Date(data["updateTime"]);
  45. var timeInfo = date.getFullYear()+"年"+(date.getMonth()+1)+"月"+date.getDate()+"日";
  46. %>
  47. <p class="info-row">
  48. <span>版本号:<%= data["versionNum"] %></span>
  49. <span>更新时间:<%= timeInfo %></span>
  50. <span>来源:<%= data["sourceName"] %></span>
  51. </p>
  52. <h3>应用信息</h3>
  53. <div><%= data["desc"] %></div>
  54. </div>
  55. </div>