index.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {extend name='admin@main'}
  2. {block name="content"}
  3. <div class="think-box-shadow">
  4. {include file='live_appointment/index_search'}
  5. <table class="layui-table margin-top-10" lay-skin="line">
  6. {notempty name='list'}
  7. <thead>
  8. <tr>
  9. <th class='text-left nowrap'>会员</th>
  10. <th class='text-left nowrap'>直播标题</th>
  11. <th class='text-left nowrap'>直播开始时间</th>
  12. <th class='text-left nowrap'>预约商品</th>
  13. <th class='text-left nowrap'>是否提醒</th>
  14. </tr>
  15. </thead>
  16. {/notempty}
  17. <tbody>
  18. {foreach $list as $key=>$vo}
  19. <tr>
  20. <td class='text-left nowrap'>{$vo.user_name|default=''}</td>
  21. <td class='text-left nowrap'>{$vo.live_name|default=''}</td>
  22. <td class='text-left nowrap'>{$vo.start_at|default=''}</td>
  23. <td class='text-left nowrap'>{$vo.goods_name|default=''}</td>
  24. <td class='text-left nowrap'>{$vo.is_remind == 0 ? '未提醒':'已提醒'}</td>
  25. </tr>
  26. {/foreach}
  27. </tbody>
  28. </table>
  29. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  30. </div>
  31. <script>
  32. $('.video_player').click(function () {
  33. vUrl = $(this).data('src'); //获取到播放的url
  34. var loadstr = '<video width="100%" height="100%" controls="controls" autobuffer="autobuffer" autoplay="autoplay" loop="loop">' +
  35. '<source src='+vUrl+' type="video/mp4"></source></video>';
  36. layer.open({
  37. type: 1,
  38. title: false,
  39. area: ['730px', '500px'],
  40. shade: [0.8, 'rgb(14, 16, 22)'],
  41. skin: 'demo-class',
  42. content: loadstr
  43. });
  44. });
  45. </script>
  46. {/block}