首页回帖榜连接
This commit is contained in:
parent
fee94026fb
commit
9bc7960d56
@ -100,7 +100,7 @@ class Index extends BaseController
|
||||
$res['data'] = array();
|
||||
foreach ($user as $key=>$v) {
|
||||
|
||||
$u['uid'] = $v['id'];
|
||||
$u['uid'] = (string) url('user/home',['id'=>$v['id']]);
|
||||
$u['count(*)'] = $v['comments_count'];
|
||||
if($v['nickname'])
|
||||
{
|
||||
|
@ -661,7 +661,7 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util'], function(
|
||||
//回帖榜
|
||||
var tplReply = ['{{# layui.each(d.data, function(index, item){ }}'
|
||||
,'<dd>'
|
||||
,'<a href="/u/{{item.uid}}.html">'
|
||||
,'<a href="{{item.uid}}">'
|
||||
,'<img src="{{item.user.avatar}}">'
|
||||
,'<cite>{{item.user.username}}</cite>'
|
||||
,'<i>{{item["count(*)"]}}次回答</i>'
|
||||
|
Loading…
Reference in New Issue
Block a user