联系官方销售客服
1835022288
028-61286886
请问首页如何调用文章点击数呢?
{module module=news flag=1}
<div class="swiper-slide">
<div class="card">
<a href="{$t.url}"><img src="{dr_thumb($t.thumb, 300, 170)}" class="card-img-top" alt="{$t.title}"></a>
<div class="card-body">
<h5 class="card-title">{dr_strcut($t.title, 20)}</h5>
<div class="intags">
<a href="{$t.url}">必听+考核</a> <span><i class="iconfont"></i>{intval($t.hits)}</span>
</div>
<p class="card-text">{dr_strcut($t.description, 40)}</p>
</div>
</div>
</div>
{/module}
{intval($t.hits)}调用出来显示1
<div class="swiper-slide">
<div class="card">
<a target="_blank" href="{$t.url}"><img src="{dr_thumb($t.thumb, 300, 170)}" class="card-img-top" alt="{$t.title}"></a>
<div class="card-body">
<h5 class="card-title">{dr_strcut($t.title, 20)}</h5>
<div class="intags">
<a target="_blank" href="{$t.url}">必听+考核</a> <span><i class="iconfont"></i>{str_replace('&app=MOD_DIR&m', '&app=news&m', dr_show_hits($t.id))}</span>
</div>
<p class="card-text">{dr_strcut($t.description, 40)}</p>
</div>
</div>
</div> {/module}这样不行呢,,老大,请指点
总感觉不对劲,,,点击数为啥好多都 一样的..