No Description
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.

users_footprint_index.htm 6.0KB

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