layui整体升级到2.68版本
This commit is contained in:
parent
5b5363c4ec
commit
f1e7c6101b
@ -267,6 +267,12 @@
|
|||||||
success: function (e) {
|
success: function (e) {
|
||||||
if (e.code == 0) {
|
if (e.code == 0) {
|
||||||
var html = '';
|
var html = '';
|
||||||
|
if(e.data.length==0){
|
||||||
|
html +='<tr>\
|
||||||
|
<td colspan="4" style="padding:10px 0; color:#999; text-align:center;">暂无用户</td>\
|
||||||
|
</tr>';
|
||||||
|
}
|
||||||
|
else{
|
||||||
$.each(e.data, function (key, value) {
|
$.each(e.data, function (key, value) {
|
||||||
html += '<tr>\
|
html += '<tr>\
|
||||||
<td>'+value.username+'</td>\
|
<td>'+value.username+'</td>\
|
||||||
@ -277,7 +283,7 @@
|
|||||||
<td>'+value.last_login_time+'</td>\
|
<td>'+value.last_login_time+'</td>\
|
||||||
</tr>';
|
</tr>';
|
||||||
});
|
});
|
||||||
console.log(html);
|
}
|
||||||
$('#UserList').append(html);
|
$('#UserList').append(html);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -291,6 +297,12 @@
|
|||||||
success: function (e) {
|
success: function (e) {
|
||||||
if (e.code == 0) {
|
if (e.code == 0) {
|
||||||
var html = '';
|
var html = '';
|
||||||
|
if(e.data.length==0){
|
||||||
|
html +='<tr>\
|
||||||
|
<td colspan="3" style="padding:10px 0; color:#999; text-align:center;">暂无文章</td>\
|
||||||
|
</tr>';
|
||||||
|
}
|
||||||
|
else{
|
||||||
$.each(e.data, function (key, value) {
|
$.each(e.data, function (key, value) {
|
||||||
html += '<tr>\
|
html += '<tr>\
|
||||||
<td>'+value.title+'</td>\
|
<td>'+value.title+'</td>\
|
||||||
@ -298,6 +310,7 @@
|
|||||||
<td>'+value.create_time+'</td>\
|
<td>'+value.create_time+'</td>\
|
||||||
</tr>';
|
</tr>';
|
||||||
});
|
});
|
||||||
|
}
|
||||||
$('#Article').append(html);
|
$('#Article').append(html);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,9 +17,8 @@ class Index extends BaseController
|
|||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
add_user_log('view', '首页');
|
add_user_log('view', '首页');
|
||||||
$version = get_system_config('other','version');
|
|
||||||
$count = \think\facade\Db::name('UserLog')->where(array('type' => 'down'))->count();
|
$count = \think\facade\Db::name('UserLog')->where(array('type' => 'down'))->count();
|
||||||
return View('',['version'=>$version,'count'=>$count]);
|
return View('',['count'=>$count]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function logs()
|
public function logs()
|
||||||
@ -30,7 +29,7 @@ class Index extends BaseController
|
|||||||
|
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
$version = get_system_config('other','version');
|
$version = CMS_VERSION;
|
||||||
add_user_log('down', $version.'版本代码');
|
add_user_log('down', $version.'版本代码');
|
||||||
header("Location: https://www.gougucms.com/storage/gougucms_".$version."_full.zip");
|
header("Location: https://www.gougucms.com/storage/gougucms_".$version."_full.zip");
|
||||||
//确保重定向后,后续代码不会被执行
|
//确保重定向后,后续代码不会被执行
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<a href="/home/index/down.html" target="_blank">立即下载</a>
|
<a href="/home/index/down.html" target="_blank">立即下载</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cms-version">
|
<div class="cms-version">
|
||||||
<span>当前版本:<i>{$version}</i></span>
|
<span>当前版本:<i>v{:CMS_VERSION}</i></span>
|
||||||
<span><a href="/home/index/logs.html" rel="nofollow" target="_blank">更新日志</a></span>
|
<span><a href="/home/index/logs.html" rel="nofollow" target="_blank">更新日志</a></span>
|
||||||
<span>下载量:<i>{$count}</i></span>
|
<span>下载量:<i>{$count}</i></span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -24,11 +24,10 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div style="width:200px;margin: 20px auto;"><img src="/static/admin/images/login_logo.png" alt="勾股CMS安装"
|
<div style="width:200px;margin: 20px auto;"><img src="/static/admin/images/login_logo.png" alt="勾股CMS安装" width="200"></div>
|
||||||
width="200"></div>
|
|
||||||
<div style="width:888px;margin:0 auto 30px;">
|
<div style="width:888px;margin:0 auto 30px;">
|
||||||
<div class="layui-layout layui-layout-admin">
|
<div class="layui-layout layui-layout-admin">
|
||||||
<div class="layui-header layui-bg-red" style="border-radius:6px 6px 0 0">
|
<div class="layui-header layui-bg-red" style="border-radius:6px 6px 0 0; position:relative;">
|
||||||
<div class="layui-logo" style="color: #fff; width:100px;">安装引导</div>
|
<div class="layui-logo" style="color: #fff; width:100px;">安装引导</div>
|
||||||
<ul class="layui-nav layui-layout-right">
|
<ul class="layui-nav layui-layout-right">
|
||||||
<li class="layui-nav-item">v{:CMS_VERSION}</li>
|
<li class="layui-nav-item">v{:CMS_VERSION}</li>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
width="200"></div>
|
width="200"></div>
|
||||||
<div style="width:888px;margin:0 auto 30px;">
|
<div style="width:888px;margin:0 auto 30px;">
|
||||||
<div class="layui-layout layui-layout-admin">
|
<div class="layui-layout layui-layout-admin">
|
||||||
<div class="layui-header layui-bg-red" style="border-radius:6px 6px 0 0">
|
<div class="layui-header layui-bg-red" style="border-radius:6px 6px 0 0;position:relative;">
|
||||||
<div class="layui-logo" style="color: #fff; width:100px;">安装引导</div>
|
<div class="layui-logo" style="color: #fff; width:100px;">安装引导</div>
|
||||||
<ul class="layui-nav layui-layout-right">
|
<ul class="layui-nav layui-layout-right">
|
||||||
<li class="layui-nav-item">v{:CMS_VERSION}</li>
|
<li class="layui-nav-item">v{:CMS_VERSION}</li>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
width="200"></div>
|
width="200"></div>
|
||||||
<div style="width:888px;margin:0 auto 30px;">
|
<div style="width:888px;margin:0 auto 30px;">
|
||||||
<div class="layui-layout layui-layout-admin">
|
<div class="layui-layout layui-layout-admin">
|
||||||
<div class="layui-header layui-bg-red" style="border-radius:6px 6px 0 0">
|
<div class="layui-header layui-bg-red" style="border-radius:6px 6px 0 0;position:relative;">
|
||||||
<div class="layui-logo" style="color: #fff; width:100px;">安装引导</div>
|
<div class="layui-logo" style="color: #fff; width:100px;">安装引导</div>
|
||||||
<ul class="layui-nav layui-layout-right">
|
<ul class="layui-nav layui-layout-right">
|
||||||
<li class="layui-nav-item">v{:CMS_VERSION}</li>
|
<li class="layui-nav-item">v{:CMS_VERSION}</li>
|
||||||
|
@ -15,10 +15,10 @@ if (empty(file_exists(__DIR__ . '/../vendor/autoload.php'))) {
|
|||||||
require __DIR__ . '/../vendor/autoload.php';
|
require __DIR__ . '/../vendor/autoload.php';
|
||||||
|
|
||||||
// 定义当前版本号
|
// 定义当前版本号
|
||||||
define('CMS_VERSION','1.21');
|
define('CMS_VERSION','1.1.9');
|
||||||
|
|
||||||
// 定义ThinkPHP版本号
|
// 定义ThinkPHP版本号
|
||||||
define('TP_VERSION','6.0.5');
|
define('TP_VERSION','6.0.9');
|
||||||
|
|
||||||
// 定义Layui版本号
|
// 定义Layui版本号
|
||||||
define('LAYUI_VERSION','2.6.8');
|
define('LAYUI_VERSION','2.6.8');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user