material.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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/material_del',['media_id'=>$item.media_id])}','{$Think.lang.ds_ensure_del}',{$key})">&#xe725;</div>
  19. <a href='{:url("Wechat/material_edit")}?media_id={$item.media_id}'><div class="material-btn iconfont">&#xe72e;</div></a>
  20. <div class="material-btn iconfont" onclick="dsLayerConfirm('{:url('Wechat/freepublish_submit',['media_id'=>$item.media_id])}','{$Think.lang.ensure_submit}')">&#xe6bf;</div>
  21. </div>
  22. </div>
  23. {/foreach}
  24. </div>
  25. {$show_page|raw}
  26. </div>
  27. <style>
  28. .material-list{overflow: hidden;}
  29. .material-list .material-item{float:left;width:250px;height: 300px;margin-right:10px;margin-top:10px;border:1px solid #e1e1e1;position:relative}
  30. .material-list .material-item .material-add{text-align: center}
  31. .material-list .material-item .material-add .material-add-icon{font-size:50px;margin-top:100px;margin-bottom:10px;color:#333;}
  32. .material-list .material-item .material-add .material-add-text{font-size:24px;color:#333;}
  33. .material-list .material-item .material-image{width:100%;height: 200px;object-fit: cover}
  34. .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;}
  35. .material-list .material-item .material-time{font-size:14px;color:#999;padding:0 10px;}
  36. .material-list .material-item .material-btn-wrapper{position:absolute;top:10px;right:0;display: none}
  37. .material-list .material-item:hover .material-btn-wrapper{display: block}
  38. .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;}
  39. </style>