h5_activity.html 1.0 KB

12345678910111213141516171819202122232425262728
  1. {include file="public/header" /}
  2. <div class="data-search">
  3. <input value="{$Request.param.keyword}" />
  4. <span class="iconfont" onclick="goSearch()">&#xe654;</span>
  5. </div>
  6. <div class="data-list">
  7. {notempty name="activity_list"}
  8. {foreach name="activity_list" item="v"}
  9. <div class="data-item" onclick="setLink('/pages/home/activity/Activitydetail?activity_id={$v.activity_id}')">{$v.activity_title}</div>
  10. {/foreach}
  11. {else /}
  12. <div class="no-data">{$Think.lang.ds_no_record}</div>
  13. {/notempty}
  14. </div>
  15. {$show_page|raw}
  16. <script>
  17. $(function(){
  18. $('.pagination a').each(function(){
  19. $(this).data('url',$(this).attr('href')).attr('href','javascript:void(0)')
  20. $(this).click(function(){
  21. $('#load_html').load($(this).data('url'));
  22. })
  23. })
  24. })
  25. function goSearch(){
  26. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_activity?keyword='+$('.data-search input').val());
  27. }
  28. </script>