diff --git a/html/caiinfo.html b/html/caiinfo.html index 27293b7..9efb1bb 100644 --- a/html/caiinfo.html +++ b/html/caiinfo.html @@ -1063,8 +1063,7 @@ return Boolean( !purchased && !isArticlePrePurchased(item) && - (isArticlePrePurchase(item) || - (!getArticleId(item) && isPendingPublishArticle(item))), + !getArticleId(item), ); } @@ -1880,13 +1879,15 @@ } // Buy dialog + function requirePurchaseAuth() { + if (ApiClient.getToken()) return true; + CommonUtil.requireAuth(function () {}); + return false; + } + function openPrePurchaseDialog(index) { const item = currentArticleList[index] || {}; - if (!ApiClient.getToken()) { - layui.layer.msg("请先登录"); - window.location.href = "login.html"; - return; - } + if (!requirePurchaseAuth()) return; currentPurchaseMode = "prepurchase"; currentArticleId = ""; currentPrePurchaseItem = item; @@ -1903,11 +1904,7 @@ } function openBuyDialog(articleId) { - if (!ApiClient.getToken()) { - layui.layer.msg("请先登录"); - window.location.href = "login.html"; - return; - } + if (!requirePurchaseAuth()) return; currentPurchaseMode = "purchase"; currentPrePurchaseItem = null; currentArticleId = articleId; diff --git a/html/index.html b/html/index.html index bcf21c7..de7cad6 100644 --- a/html/index.html +++ b/html/index.html @@ -653,7 +653,8 @@ '" target="_blank">' + - (authorName ? '' + escapeHtml(authorName) + "" : "") + + (authorName ? '' + + escapeHtml(authorName) + "" : "") + '' + escapeHtml(article.title || "文章标题") + "" + diff --git a/public/css/pagination.css b/public/css/pagination.css index e655591..81bef08 100644 --- a/public/css/pagination.css +++ b/public/css/pagination.css @@ -393,9 +393,9 @@ button.cxz-number-wrap { } .cxz-data-table td .cxz-number-wrap--open .cxz-number-ball { - width: 22px; - height: 22px; - font-size: 11px; + width: 26px; + height: 26px; + font-size: 13px; } .cxz-number-wrap--open .cxz-number-group {