card.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <{include file="header.html"}>
  2. <{include file="nav.html"}>
  3. <div class="wrapper jsc-sidebar-content jsc-sidebar-pulled">
  4. <{include file="menu_icon.html"}>
  5. <div class="ac_title_com">专属活动</div>
  6. <div class="vogue_top_list">
  7. <{foreach from=$eventsData item=events}>
  8. <dl>
  9. <a href="<{$events.url}>">
  10. <dt><img src="<{$events.img_url}>"></dt>
  11. <dd><{$events.events_name}></dd>
  12. </a>
  13. </dl>
  14. <{/foreach}>
  15. </div>
  16. <br>
  17. <div class="clear"></div>
  18. <div class="up_icon center">
  19. <img
  20. id="loadPage"
  21. src="<{$web_cfg.cdn}>/public/static/img/up_icon.png"
  22. data-ks-lazyload="<{$web_cfg.cdn}>/public/static/img/up_icon.png"
  23. data-request-url="<{$web_cfg.domain}>/?c=index&a=ajax"
  24. data-page="1"
  25. data-totals="<{$totals}>"
  26. />
  27. </div>
  28. <br>
  29. </div>
  30. <{include file="left.html"}>
  31. <script>
  32. KISSY.use('node, io, gallery/datalazyload/2.0/index', function (S, Node, IO, Datalazyload) {
  33. new Datalazyload({
  34. load: function(el){
  35. var requesrUrl = $(el).data('request-url');
  36. var page = $(el).data('page') + 1;
  37. var totals = $(el).data('totals');
  38. if (!requesrUrl) {
  39. return false;
  40. }
  41. if (page >= totals) $('.up_icon').hide();
  42. if (page > totals) return false;
  43. IO.get(
  44. requesrUrl
  45. , {page: page}
  46. , function (data) {
  47. if (data.ok) {
  48. $('#loadPage').data('page', page);
  49. $(".vogue_top_list").append(data.msg);
  50. }
  51. }
  52. , 'json'
  53. );
  54. }
  55. });
  56. });
  57. </script>
  58. <{include file="bottom.html"}>