Update welcome.html

This commit is contained in:
温泉
2024-08-09 14:16:51 +08:00
committed by GitHub
parent 63a4a687f9
commit 64fe1116be
+50 -50
View File
@@ -84,8 +84,8 @@
<div class="layui-collapse"> <div class="layui-collapse">
<div class="layui-colla-item"> <div class="layui-colla-item">
<h2 class="layui-colla-title">来自温泉授权服务器的系统公告</h2> <h2 class="layui-colla-title">来自温泉授权服务器的系统公告</h2>
<div class="flow-default layui-colla-content layui-show" id="notice"> <div class="flow-default layui-colla-content layui-show">
<iframe src="https://github.com/rakirizu/QuanAuth/blob/main/README.md"></iframe>
</div> </div>
</div> </div>
</div> </div>
@@ -107,7 +107,7 @@
<div class="layui-colla-item"> <div class="layui-colla-item">
<h2 class="layui-colla-title">系统更新日志</h2> <h2 class="layui-colla-title">系统更新日志</h2>
<div class="flow-default layui-colla-content layui-show" id="uplog"> <div class="flow-default layui-colla-content layui-show" id="uplog">
暂无
</div> </div>
</div> </div>
</div> </div>
@@ -152,53 +152,53 @@
} }
}); });
flow.load({ // flow.load({
elem: '#notice' // elem: '#notice'
, scrollElem: '#notice' // , scrollElem: '#notice'
, done: function (page, next) { // , done: function (page, next) {
var lis = []; // var lis = [];
$.ajax({ // $.ajax({
url: '../ajax.php?mod=getnotice', // url: '../ajax.php?mod=getnotice',
type: 'POST', // type: 'POST',
dataType: 'html', // dataType: 'html',
data: '', // data: '',
success: function (data) { // success: function (data) {
$('#notice').html(data); // $('#notice').html(data);
next(); // next();
}, // },
error: function (data) { // error: function (data) {
$('#notice').html('嗷呜o(╥﹏╥)o 获取公告请求失败啦'); // $('#notice').html('嗷呜o(╥﹏╥)o 获取公告请求失败啦');
next(); // next();
} // }
}); // });
//假设总页数为 6 // //假设总页数为 6
} // }
}); // });
flow.load({ // flow.load({
elem: '#uplog' // elem: '#uplog'
, scrollElem: '#uplog' // , scrollElem: '#uplog'
, done: function (page, next) { // , done: function (page, next) {
var lis = []; // var lis = [];
$.ajax({ // $.ajax({
url: '../ajax.php?mod=getuplog', // url: '../ajax.php?mod=getuplog',
type: 'POST', // type: 'POST',
dataType: 'html', // dataType: 'html',
data: '', // data: '',
success: function (data) { // success: function (data) {
$('#uplog').html('<div style="width: 100%;height: 800px;">\n' + // $('#uplog').html('<div style="width: 100%;height: 800px;">\n' +
' <textarea class="layui-textarea" style="width: 100%;height: 800px;">' + data + '</textarea>\n' + // ' <textarea class="layui-textarea" style="width: 100%;height: 800px;">' + data + '</textarea>\n' +
' </div>'); // ' </div>');
next(); // next();
}, // },
error: function (data) { // error: function (data) {
$('#uplog').html('嗷呜o(╥﹏╥)o 获取系统更新日志失败啦'); // $('#uplog').html('嗷呜o(╥﹏╥)o 获取系统更新日志失败啦');
next(); // next();
} // }
}); // });
//假设总页数为 6 // //假设总页数为 6
} // }
}); // });
}); });
@@ -300,4 +300,4 @@
</script> </script>
</body> </body>
</html> </html>