설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

download_index.htm 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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>
  21. {eyou:include file="users/users_header.htm" /}
  22. <!-- 头部信息 -->
  23. <div class="ey-header-status">
  24. <div class="header-status-l">
  25. <a href="{eyou:url link='user/Users/index'/}"><i class="el-icon-arrow-left"></i></a>
  26. </div>
  27. <div class="header-status-m">我的足迹</div>
  28. <div class="header-status-r">
  29. {eyou:notempty name="$list"}
  30. <span id="management-button">管理</span>
  31. {/eyou:notempty}
  32. </div>
  33. </div>
  34. <!-- 头部信息结束 -->
  35. <div class="h50"></div>
  36. {eyou:include file="users/users_footprint_header.htm" /}
  37. <div class="ey-container">
  38. {eyou:empty name="$list"}
  39. <div class="ey-con">
  40. <div class="ey-row min-hg-c-92 flex flex-center">
  41. <div class="tc mt-92">
  42. <p class=""><img id='litpic_img' src="{eyou:static file='users/skin/images/null-data.png' /}"/></p>
  43. <p class="fc9">当前暂无下载记录哦~</p>
  44. </div>
  45. </div>
  46. </div>
  47. {eyou:else/}
  48. <div class="ey-con min-hg-c-92 bgfff">
  49. <div class="ey-row ptb0">
  50. {eyou:volist name="$list" id="vo"}
  51. <div class="balances">
  52. <div class="related-content mr5">
  53. <label class="checkbox-label checkbox_z">
  54. <span> &nbsp; </span>
  55. <input class="checkbox" type="checkbox" name="ids[]" value="{$vo.log_id}">
  56. <span class="check-mark"></span>
  57. </label>
  58. </div>
  59. <a class="balances-pic" href="{$archivesList[$vo['aid']]['arcurl']|default='javascript:void(0);'}">
  60. {eyou:empty name="$archivesList[$vo['aid']]['litpic']" /}
  61. <img class="pic" src="__PUBLIC__/static/common/images/not_adv.jpg">
  62. {eyou:else /}
  63. <img class="pic" src="{$archivesList[$vo['aid']]['litpic']}">
  64. {/eyou:empty}
  65. </a>
  66. <a class="balances-info" href="{$archivesList[$vo['aid']]['arcurl']|default='javascript:void(0);'}">
  67. <div class="title fs15">
  68. <span>{$archivesList[$vo['aid']]['title']|default='<font color="red">该文档已被删除!</font>'}</span>
  69. </div>
  70. <div>
  71. <span>{$vo.add_time|date='Y-m-d H:i',###}</span>
  72. </div>
  73. </a>
  74. </div>
  75. {/eyou:volist}
  76. </div>
  77. {$page}
  78. <div class="foot-batch related-content">
  79. <div class="mr5">
  80. <label class="checkbox-label checkbox_z">
  81. <input class="checkbox" type="checkbox" onclick="javascript:$('input[name*=ids]').prop('checked',this.checked);">
  82. <span class="check-mark"></span>
  83. <span class="ml5">全选</span>
  84. </label>
  85. </div>
  86. <div class="fr">
  87. <a class="addr_y" href="javascript:void(0);" onclick="BatchDelData(this, 'ids');" data-url="{$delurl}">批量删除</a>
  88. </div>
  89. </div>
  90. </div>
  91. {/eyou:empty}
  92. </div>
  93. <script type="text/javascript">
  94. // 管理相关
  95. const managementButton = $('#management-button');
  96. const relatedContent = $('.related-content');
  97. function handleClick() {
  98. if (relatedContent.is(':hidden')) {
  99. relatedContent.show();
  100. managementButton.text('完成');
  101. } else {
  102. relatedContent.hide();
  103. managementButton.text('管理');
  104. }
  105. }
  106. managementButton.on('click', handleClick);
  107. // 批量删除足迹
  108. function BatchDelData(obj, name) {
  109. var a = [];
  110. $('input[name^='+name+']').each(function(i,o){
  111. if($(o).is(':checked')){
  112. a.push($(o).val());
  113. }
  114. })
  115. if(a.length == 0){
  116. showErrorAlert('请至少选择一项!');
  117. return false;
  118. }
  119. // 删除按钮
  120. layer.confirm('确认批量删除下载记录?', {
  121. title: false,
  122. skin: 'xin-demo-btn',
  123. btn: ['确定', '取消'], //按钮
  124. closeBtn: 0,
  125. shadeClose: true
  126. }, function () {
  127. layer_loading('正在处理');
  128. $.ajax({
  129. type: "POST",
  130. url: $(obj).attr('data-url'),
  131. data: {del_id:a},
  132. dataType: 'json',
  133. success: function (res) {
  134. layer.closeAll();
  135. if(res.code == 1){
  136. layer.msg(res.msg, {icon: 1});
  137. window.location.reload();
  138. }else{
  139. showErrorAlert(res.msg);
  140. }
  141. },
  142. error:function(e){
  143. layer.closeAll();
  144. showErrorAlert(e.responseText);
  145. }
  146. });
  147. }, function (index) {
  148. layer.closeAll(index);
  149. });
  150. }
  151. </script>
  152. <!-- END -->