freepublish.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.wechat_material}</h3>
  7. </div>
  8. {include file="public/admin_items" /}
  9. </div>
  10. </div>
  11. <div class="material-list">
  12. {foreach name='list' item='item' key='key'}
  13. <div class="material-item" id="ds_row_{$key}">
  14. <img class="material-image" src='{:url("Wechat/get_material_image")}?media_id={$item.content.news_item[0]["thumb_media_id"]}' />
  15. <div class="material-title">{$item.content.news_item[0]["title"]}</div>
  16. <div class="material-time">更新于{:date('Y-m-d H:i',$item["update_time"])}</div>
  17. <div class="material-btn-wrapper">
  18. <div class="material-btn iconfont" onclick="dsLayerConfirm('{:url('Wechat/freepublish_del',['article_id'=>$item.article_id])}','{$Think.lang.ds_ensure_del}',{$key})">&#xe725;</div>
  19. </div>
  20. </div>
  21. {/foreach}
  22. </div>
  23. {$show_page|raw}
  24. </div>
  25. <style>
  26. .material-list{overflow: hidden;}
  27. .material-list .material-item{float:left;width:250px;height: 300px;margin-right:10px;margin-top:10px;border:1px solid #e1e1e1;position:relative}
  28. .material-list .material-item .material-add{text-align: center}
  29. .material-list .material-item .material-add .material-add-icon{font-size:50px;margin-top:100px;margin-bottom:10px;color:#333;}
  30. .material-list .material-item .material-add .material-add-text{font-size:24px;color:#333;}
  31. .material-list .material-item .material-image{width:100%;height: 200px;object-fit: cover}
  32. .material-list .material-item .material-title{font-size:16px;line-height: 17px;height: 34px;padding:0 10px;margin:10px 0;box-sizing: border-box;width:100%;overflow: hidden;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;}
  33. .material-list .material-item .material-time{font-size:14px;color:#999;padding:0 10px;}
  34. .material-list .material-item .material-btn-wrapper{position:absolute;top:10px;right:0;display: none}
  35. .material-list .material-item:hover .material-btn-wrapper{display: block}
  36. .material-list .material-item .material-btn-wrapper .material-btn{display: inline-block;margin-right:10px;width:50px;height: 50px;line-height: 50px;font-size:20px;text-align:center;border-radius: 50%;border:1px solid #e1e1e1;background: #fff;color:#333;cursor: pointer;}
  37. </style>