🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
作者:finecms论坛-[guke01](http://www.dayrui.net/home.php?mod=space&uid=841) 代码:{$t['hits']} 这是在内容页之外的页面调用文章的阅读数   {list modelid=7 catid=17 order=inputtime num=25 thumb=1 cache=36000}                         <li>                                 <a href="{$t['url']}" class="new-video-img"><img src="{thumb($t['thumb'])}" alt="{$t['title']}" width="210" height="122" /></a>                                 <a href="{$t['url']}" class="new-video-tit">{$t['title']}</a>                                 <span>                                         <i class="i-v-reading">{$t['hits']}</i>                                         {list table=comment.comment where contentid=$t[id] return=item}                                         <i class="i-v-review">{$item['total']}</i>                                         {/list}                                 </span>                         </li>                         {/list}       这段是在文章内容页之外的页面调用文章的评论数。 {list table=comment.comment where contentid=$t[id] return=item} <i class="i-v-review">{$item['total']}</i> {/list}     [coolcheng168](http://www.dayrui.net/home.php?mod=space&uid=2686)改进:文章没评论时显示 0,有评论时则显示实际评论数 {php echo $item['total'] ? $item['total'] : 0;}