説明なし
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

users_media_play_index.htm 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>播放记录-{eyou:global name='web_name' /}</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
  9. <link href="{eyou:global name='web_cmspath'/}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  10. {eyou:static file="users/skin/css/eyoucms.css"/}
  11. <!-- 新样式 2020-11-25 -->
  12. {eyou:static file="users/skin/css/element/index.css" /}
  13. {eyou:static file="users/skin/css/e-user.css" /}
  14. {eyou:include file="users/skin/css/diy_css.htm"/}
  15. {eyou:static file="/public/static/common/js/jquery.min.js"/}
  16. {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
  17. {eyou:static file="/public/static/common/js/tag_global.js"/}
  18. {eyou:static file="/public/static/common/js/mobile_global.js"/}
  19. </head>
  20. <body class="centre">
  21. <!-- 头部信息 -->
  22. <div class="ey-header-status">
  23. <div class="header-status-l">
  24. <a href="{eyou:url link='user/Users/index'/}"><i class="el-icon-arrow-left"></i></a>
  25. </div>
  26. <div class="header-status-m">我的足迹</div>
  27. <div class="header-status-r">
  28. {eyou:notempty name="$eyou.field.list"}
  29. <span id="management-button">管理</span>
  30. {/eyou:notempty}
  31. </div>
  32. </div>
  33. <!-- 头部信息结束 -->
  34. <div class="h50"></div>
  35. {eyou:include file="users/users_footprint_header.htm" /}
  36. <div class="ey-container">
  37. {eyou:empty name="$eyou.field.list"}
  38. <div class="ey-con">
  39. <div class="ey-row min-hg-c-92 flex flex-center">
  40. <div class="tc mt-92">
  41. <p class=""><img id='litpic_img' src="{eyou:static file='users/skin/images/null-data.png' /}"/></p>
  42. <p class="fc9">当前暂无播放记录哦~</p>
  43. </div>
  44. </div>
  45. </div>
  46. {eyou:else/}
  47. <div class="ey-con min-hg-c-92 bgfff">
  48. <div class="ey-row ptb0">
  49. {eyou:volist name="$eyou.field.list" id="vo"}
  50. <div class="balances">
  51. <div class="related-content mr5">
  52. <div>
  53. <label class="checkbox-label checkbox_z">
  54. <span> &nbsp; </span>
  55. <input class="checkbox" type="checkbox" name="ids[]" value="{$vo.play_id}">
  56. <span class="check-mark"></span>
  57. </label>
  58. </div>
  59. </div>
  60. <a class="balances-pic" href="{$vo.arcurl}">
  61. {eyou:empty name='$vo.litpic' /}
  62. <img class="pic" src="__PUBLIC__/static/common/images/not_adv.jpg">
  63. {eyou:else /}
  64. <img class="pic" src="{$vo.litpic}">
  65. {/eyou:empty}
  66. </a>
  67. <a class="balances-info" href="{$vo.arcurl}">
  68. <div class="title-1 fs15">
  69. <span>{$vo.title}</span>
  70. </div>
  71. <div>
  72. <span class="mr5">总时长:{$vo.sum_file_time}</span>
  73. <span>已观看:{$vo.sum_play_time}</span>
  74. </div>
  75. <div>
  76. <span class="mr5">上次观看:{$vo.last_update_time}</span>
  77. </div>
  78. </a>
  79. <div class="balances-num">
  80. <a class="addr_q" href="{$vo.arcurl}">
  81. {eq name='$vo.process' value='100%'}重新学习{else /}继续学习{/eq}
  82. </a>
  83. </div>
  84. </div>
  85. {/eyou:volist}
  86. </div>
  87. {$page}
  88. <div class="foot-batch related-content">
  89. <div class="mr5">
  90. <label class="checkbox-label checkbox_z">
  91. <input class="checkbox" type="checkbox" onclick="javascript:$('input[name*=ids]').prop('checked',this.checked);">
  92. <span class="check-mark"></span>
  93. <span class="ml5">全选</span>
  94. </label>
  95. </div>
  96. <div class="fr">
  97. <a class="addr_y" href="javascript:void(0);" onclick="BatchDelData(this, 'ids');" data-url="{$delurl}">批量删除</a>
  98. </div>
  99. </div>
  100. </div>
  101. {/eyou:empty}
  102. </div>
  103. <script>
  104. // 管理相关
  105. const managementButton = $('#management-button');
  106. const relatedContent = $('.related-content');
  107. function handleClick() {
  108. if (relatedContent.is(':hidden')) {
  109. relatedContent.show();
  110. managementButton.text('完成');
  111. } else {
  112. relatedContent.hide();
  113. managementButton.text('管理');
  114. }
  115. }
  116. managementButton.on('click', handleClick);
  117. //注意进度条依赖 element 模块,否则无法进行正常渲染和功能性操作
  118. layui.use('element', function(){
  119. var element = layui.element;
  120. });
  121. // 内容查看
  122. function ArcUrl(obj) {
  123. window.open($(obj).attr('data-arurl'));
  124. }
  125. // 批量删除足迹
  126. function BatchDelData(obj, name) {
  127. var a = [];
  128. $('input[name^='+name+']').each(function(i,o){
  129. if($(o).is(':checked')){
  130. a.push($(o).val());
  131. }
  132. })
  133. if(a.length == 0){
  134. showErrorAlert('请至少选择一项!');
  135. return false;
  136. }
  137. // 删除按钮
  138. layer.confirm('确认批量删除播放记录?', {
  139. title: false,
  140. skin: 'xin-demo-btn',
  141. btn: ['确定', '取消'], //按钮
  142. closeBtn: 0,
  143. shadeClose: true
  144. }, function () {
  145. layer_loading('正在处理');
  146. $.ajax({
  147. type: "POST",
  148. url: $(obj).attr('data-url'),
  149. data: {del_id:a},
  150. dataType: 'json',
  151. success: function (res) {
  152. layer.closeAll();
  153. if(res.code == 1){
  154. layer.msg(res.msg, {icon: 1});
  155. window.location.reload();
  156. }else{
  157. showErrorAlert(res.msg);
  158. }
  159. },
  160. error:function(e){
  161. layer.closeAll();
  162. showErrorAlert(e.responseText);
  163. }
  164. });
  165. }, function (index) {
  166. layer.closeAll(index);
  167. });
  168. }
  169. </script>
  170. <!-- END -->