h5_live.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. {if $Think.config.ds_config.live_type==1}
  8. {notempty name="minipro_live_list"}
  9. {foreach name="minipro_live_list" item="v"}
  10. <div class="data-item" onclick="setLink('plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id={$v.minipro_live_room_id}')">{$v.minipro_live_name}</div>
  11. {/foreach}
  12. {else /}
  13. <div class="no-data">{$Think.lang.ds_no_record}</div>
  14. {/notempty}
  15. {else}
  16. {notempty name="live_apply_list"}
  17. {foreach name="live_apply_list" item="v"}
  18. <div class="data-item" onclick="setLink('/member/live_detail?live_apply_id={$v.live_apply_id}')">{$v.live_apply_name}</div>
  19. {/foreach}
  20. {else /}
  21. <div class="no-data">{$Think.lang.ds_no_record}</div>
  22. {/notempty}
  23. {/if}
  24. </div>
  25. {$show_page|raw}
  26. <script>
  27. $(function(){
  28. $('.pagination a').each(function(){
  29. $(this).data('url',$(this).attr('href')).attr('href','javascript:void(0)')
  30. $(this).click(function(){
  31. $('#load_html').load($(this).data('url'));
  32. })
  33. })
  34. })
  35. function goSearch(){
  36. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_live?keyword='+$('.data-search input').val());
  37. }
  38. </script>