修改功能,现已测试注册登录忘记密码
This commit is contained in:
@@ -159,13 +159,18 @@
|
||||
|
||||
// Load notice list
|
||||
function loadNotices() {
|
||||
ApiClient.post("/api/web/notice/getPageList", {
|
||||
ApiClient.get(ApiClient.API.noticeList, {
|
||||
pageNum: currentPage,
|
||||
pageSize: pageSize,
|
||||
count: pageSize,
|
||||
}).then(function (res) {
|
||||
if (res.code === 0 && res.data) {
|
||||
renderNotices(res.data.records || []);
|
||||
renderPagination(res.data.totalRow || 0);
|
||||
var data = res.data || {};
|
||||
var records = Array.isArray(data)
|
||||
? data
|
||||
: data.records || data.rows || data.list || [];
|
||||
renderNotices(records);
|
||||
renderPagination(data.totalRow || data.total || records.length || 0);
|
||||
} else {
|
||||
$("#noticeList").html(
|
||||
'<div class="cxz-notice-item"><span style="color:var(--text-muted);">暂无公告</span></div>',
|
||||
|
||||
Reference in New Issue
Block a user