material_select.html 1.6 KB

123456789101112131415161718192021222324252627
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="material-list">
  4. {foreach name='list' item='item' key='key'}
  5. <div class="material-item" onclick="parent.selectMaterial('{$item.article_id}')">
  6. <img class="material-image" src='{:url("Wechat/get_material_image")}?media_id={$item.content.news_item[0]["thumb_media_id"]}' />
  7. <div class="material-title">{$item.content.news_item[0]["title"]}</div>
  8. <div class="material-time">更新于{:date('Y-m-d H:i',$item["update_time"])}</div>
  9. </div>
  10. {/foreach}
  11. </div>
  12. {$show_page|raw}
  13. </div>
  14. <style>
  15. .material-list{overflow: hidden;}
  16. .material-list .material-item{float:left;width:250px;height: 300px;margin-right:10px;margin-top:10px;border:1px solid #e1e1e1;position:relative;cursor: pointer}
  17. .material-list .material-item .material-add{text-align: center}
  18. .material-list .material-item .material-add .material-add-icon{font-size:50px;margin-top:100px;margin-bottom:10px;color:#333;}
  19. .material-list .material-item .material-add .material-add-text{font-size:24px;color:#333;}
  20. .material-list .material-item .material-image{width:100%;height: 200px;object-fit: cover}
  21. .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;}
  22. .material-list .material-item .material-time{font-size:14px;color:#999;padding:0 10px;}
  23. </style>