simulatorDetail.tmpl 2.2 KB

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