h5_special.html 1.2 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="editable_page_list"}
  8. {foreach name="editable_page_list" item="v"}
  9. <div class="data-item" onclick="setLink('{if $Request.param.store_id}/home/store_special?special_id={$v.editable_page_id}&id={$Request.param.store_id}{else}/home/special?special_id={$v.editable_page_id}{/if}')">{$v.editable_page_name}</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_special?store_id={$Request.param.store_id}&keyword='+$('.data-search input').val());
  27. }
  28. </script>