迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
资讯缩略图在“最新”栏目下不显示,但是在自己所属栏目下可以正常显示是怎么回事呢
{template "header.html", "/"} <div class="page-container"> <div class="page-content-wrapper"> <div class="page-content"> <div class="container"> <ul class="page-breadcrumb breadcrumb"> <li><a href="{SITE_URL}">首页</a><i class="fa fa-angle-right"></i></li> {if defined('IS_SHARE') && !IS_SHARE} <li><a href="{MODULE_URL}">{MODULE_NAME}</a><i class="fa fa-angle-right"></i></li> {/if} {dr_catpos($catid, '', 1, '<li><a href="{url}">{name}</a><i class="fa fa-angle-right"></i></li>'.PHP_EOL)} <li> <span>列表</span></li> </ul> <div class="news-content row"> <div class="col-md-8"> <ul class="news-list"> <!--分页显示列表数据--> {module catid=$catid order=updatetime page=1} <li> <div class="pic"><a href="{$t.url}"><img src="{dr_thumb($t.thumb)}"></a></div> <div class="con"> <h5><a href="{$t.url}">{dr_strcut($t.title, 30)}</a></h5> <p>{dr_strcut($t.description, 130)}</p> <dl class="clearfix"> <dt class="time">{$t.updatetime}</dt> <dd class="browse"><i class="fa fa-eye"></i> {$t.hits}</dd> </dl> </div> </li> {/module} </ul> <div class="news-list-pagination"> <ul class="pagination"> {$pages} </ul> </div> </div> <div class="col-md-4"> <div class="news-hits-body"> <div class="ctitle">图文资讯</div> <ul class="image"> {module field=title,url,thumb,updatetime catid=$catid thumb=1 num=10} <li> <div class="pic"><a href="{$t.url}"><img src="{dr_thumb($t.thumb)}"></a></div> <div class="con"> <h5><a href="{$t.url}">{dr_strcut($t.title, 30)}</a></h5> <p>{$t.updatetime}</p> </div> </li> {/module} </ul> </div> <div class="news-hits-body"> <div class="ctitle">热文排行</div> <ul class="news"> {module field=title,url order=hits catid=$catid num=10} <li><a href="{$t.url}" title="{$t.title}">{dr_strcut($t.title, 20)}</a></li> {/module} </ul> </div> </div> </div> </div> </div> </div> </div> {template "footer.html", "/"}
{template "header.html", "/"} <div class="page-container"> <div class="page-content-wrapper"> <div class="page-content"> <div class="container"> <ul class="page-breadcrumb breadcrumb"> <li><a href="{SITE_URL}">首页</a><i class="fa fa-angle-right"></i></li> {if defined('IS_SHARE') && !IS_SHARE} <li><a href="{MODULE_URL}">{MODULE_NAME}</a><i class="fa fa-angle-right"></i></li> {/if} {dr_catpos($catid, '', 1, '<li><a href="{url}">{name}</a><i class="fa fa-angle-right"></i></li>'.PHP_EOL)} <li> <span>频道</span></li> </ul> <div class="news-content row"> <div class="col-md-8"> <div class="bg-white bg-flash"> <div class="swiper-container"> <div class="swiper-wrapper"> {module catid=$catid num=5 thumb=1} <div class="swiper-slide"> <a href="{$t.url}" target="_blank"><img src="{dr_thumb($t.thumb, 750, 250)}" style="width:750px;height:245px" /></a> </div> {/module} </div> <div class="swiper-pagination"></div> </div> <link rel="stylesheet" href="{HOME_THEME_PATH}swiper/css/swiper.min.css"> <script src="{HOME_THEME_PATH}swiper/js/swiper.min.js"></script> <script> var swiper = new Swiper('.swiper-container', { spaceBetween: 30, autoplay: { delay: 3500, disableOnInteraction: false, }, pagination: { el: '.swiper-pagination', clickable: true, }, }); </script> </div> <div class="news-title news-tabs"> <ul class="clearfix tab-hd"> <li class="selected"><a href="javascript:void(0);">最新</a></li> {loop $related $t} <li><a href="{$t.url}">{$t.name}</a></li> {/loop} </ul> </div> <ul class="news-list"> <!--最新10条数据--> {module field=title,url,updatetime,description,keywords,hits catid=$catid order=updatetime num=10} <li> <div class="pic"><a href="{$t.url}"><img src="{dr_thumb($t.thumb)}"></a></div> <div class="con"> <h5><a href="{$t.url}">{dr_strcut($t.title, 30)}</a></h5> <p>{dr_strcut($t.description, 130)}</p> <dl class="clearfix"> <dt class="time">{$t.updatetime}</dt> <dd class="browse"><i class="fa fa-eye"></i> {$t.hits}</dd> </dl> </div> </li> {/module} </ul> </div> <div class="col-md-4"> <div class="news-hits-body"> <div class="ctitle">图文资讯</div> <ul class="image"> {module field=title,url,thumb,updatetime catid=$catid thumb=1 num=10} <li> <div class="pic"><a href="{$t.url}"><img src="{dr_thumb($t.thumb)}"></a></div> <div class="con"> <h5><a href="{$t.url}">{dr_strcut($t.title, 30)}</a></h5> <p>{$t.updatetime}</p> </div> </li> {/module} </ul> </div> <div class="news-hits-body"> <div class="ctitle">热文排行</div> <ul class="news"> {module field=title,url order=hits catid=$catid num=10} <li><a href="{$t.url}" title="{$t.title}">{dr_strcut($t.title, 20)}</a></li> {/module} </ul> </div> </div> </div> </div> </div> </div> </div> {template "footer.html", "/"}
field=title,url,updatetime,description,keywords,hits