测试验证完成

This commit is contained in:
rain
2026-06-20 11:20:45 +08:00
parent db8ed02602
commit b3e6f3e831
30 changed files with 110 additions and 135 deletions
+7 -16
View File
@@ -815,11 +815,7 @@
// ====== Logout ======
function handleLogout() {
ApiClient.post(
"/api/web/user/logout",
{},
{ headers: CommonUtil.authHeaders() },
)
ApiClient.post(ApiClient.API.authLogout, null, { headers: CommonUtil.authHeaders() })
.then(function (res) {
localStorage.removeItem("token");
window.location.href = "login.html";
@@ -833,10 +829,9 @@
// ====== Sign-in Records ======
function loadSignInRecords(pageNum) {
signInPageNum = pageNum || 1;
ApiClient.post(
"/api/web/user/signIn/getPageList",
ApiClient.get(
ApiClient.API.mineSignInList,
{
delFlag: "0",
pageNum: signInPageNum,
pageSize: 5,
pointsType: 1,
@@ -845,7 +840,7 @@
).then(function (res) {
if (res.code === 0 && res.data) {
renderSignInTable(res.data.records || []);
renderSignInPager(res.data.totalRow);
renderSignInPager(res.data.totalRow || res.data.total || 0);
}
});
}
@@ -898,11 +893,7 @@
// ====== Load Menu for Filter ======
function loadMenuList() {
ApiClient.post(
"/api/web/menu/getFormatList",
{},
{ headers: CommonUtil.authHeaders() },
).then(function (res) {
ApiClient.loadMenuCompat().then(function (res) {
if (res.code === 0 && res.data) {
menuListData = res.data;
// 免费文章 - 只需彩种
@@ -953,7 +944,7 @@
articlePageNum = pageNum || 1;
var menuId = $("#filterLottery").val() || "";
ApiClient.get(
"/api/web/mine/free-article/list",
ApiClient.API.mineFreeArticleList,
{
menuId: menuId,
pageNum: articlePageNum,
@@ -1090,7 +1081,7 @@
$("#paidFilterLottery").val() ||
"";
ApiClient.get(
"/api/web/mine/pay-article/list",
ApiClient.API.minePayArticleList,
{
menuId: menuId,
pageNum: paidArticlePageNum,