首页回帖榜连接

This commit is contained in:
toogee 2020-05-23 22:44:17 +08:00
parent fee94026fb
commit 9bc7960d56
2 changed files with 2 additions and 2 deletions

View File

@ -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'])
{

View File

@ -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>'