This commit is contained in:
2018-01-07 09:27:41 +08:00
parent b5e2569d7c
commit 7756345053
11 changed files with 35 additions and 22 deletions

View File

@@ -161,7 +161,10 @@
<!--最新加入-->
<div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
<h3 class="fly-panel-title">最新加入</h3>
<h3 class="fly-panel-title">
最新加入|
总用户:<span id="user_count">0</span>
</h3>
<dl>
<!--<i class="layui-icon fly-loading">&#xe63d;</i>-->
#for(x : lastReg.rows??)
@@ -231,6 +234,9 @@
,base: '../res/mods/' //这里实际使用时,建议改成绝对路径
}).extend({
fly: 'index'
}).use('fly');
}).use('fly',function () {
var fly = layui.fly;
fly.userstat();
});
</script>
#end

View File

@@ -309,6 +309,12 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util', 'face'], f
}
return arguments.callee;
}
,userstat: function () {
$.getJSON("/os/user/stat",{},function (data) {
$("#user_count").html(data.count);
});
}
};