1
This commit is contained in:
+9
-12
@@ -1063,8 +1063,7 @@
|
|||||||
return Boolean(
|
return Boolean(
|
||||||
!purchased &&
|
!purchased &&
|
||||||
!isArticlePrePurchased(item) &&
|
!isArticlePrePurchased(item) &&
|
||||||
(isArticlePrePurchase(item) ||
|
!getArticleId(item),
|
||||||
(!getArticleId(item) && isPendingPublishArticle(item))),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1880,13 +1879,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Buy dialog
|
// Buy dialog
|
||||||
|
function requirePurchaseAuth() {
|
||||||
|
if (ApiClient.getToken()) return true;
|
||||||
|
CommonUtil.requireAuth(function () {});
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
function openPrePurchaseDialog(index) {
|
function openPrePurchaseDialog(index) {
|
||||||
const item = currentArticleList[index] || {};
|
const item = currentArticleList[index] || {};
|
||||||
if (!ApiClient.getToken()) {
|
if (!requirePurchaseAuth()) return;
|
||||||
layui.layer.msg("请先登录");
|
|
||||||
window.location.href = "login.html";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
currentPurchaseMode = "prepurchase";
|
currentPurchaseMode = "prepurchase";
|
||||||
currentArticleId = "";
|
currentArticleId = "";
|
||||||
currentPrePurchaseItem = item;
|
currentPrePurchaseItem = item;
|
||||||
@@ -1903,11 +1904,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function openBuyDialog(articleId) {
|
function openBuyDialog(articleId) {
|
||||||
if (!ApiClient.getToken()) {
|
if (!requirePurchaseAuth()) return;
|
||||||
layui.layer.msg("请先登录");
|
|
||||||
window.location.href = "login.html";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
currentPurchaseMode = "purchase";
|
currentPurchaseMode = "purchase";
|
||||||
currentPrePurchaseItem = null;
|
currentPrePurchaseItem = null;
|
||||||
currentArticleId = articleId;
|
currentArticleId = articleId;
|
||||||
|
|||||||
+2
-1
@@ -653,7 +653,8 @@
|
|||||||
'" target="_blank"><img src="' +
|
'" target="_blank"><img src="' +
|
||||||
escapeHtml(article.accountAvatar || article.expertAvatar) +
|
escapeHtml(article.accountAvatar || article.expertAvatar) +
|
||||||
'" alt="" class="article-item__icon" />' +
|
'" alt="" class="article-item__icon" />' +
|
||||||
(authorName ? '<span class="article-item__author">' + escapeHtml(authorName) + "</span>" : "") +
|
(authorName ? '<span class="article-item__author">' +
|
||||||
|
escapeHtml(authorName) + "</span>" : "") +
|
||||||
'<span class="article-item__title">' +
|
'<span class="article-item__title">' +
|
||||||
escapeHtml(article.title || "文章标题") +
|
escapeHtml(article.title || "文章标题") +
|
||||||
"</span>" +
|
"</span>" +
|
||||||
|
|||||||
@@ -393,9 +393,9 @@ button.cxz-number-wrap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cxz-data-table td .cxz-number-wrap--open .cxz-number-ball {
|
.cxz-data-table td .cxz-number-wrap--open .cxz-number-ball {
|
||||||
width: 22px;
|
width: 26px;
|
||||||
height: 22px;
|
height: 26px;
|
||||||
font-size: 11px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cxz-number-wrap--open .cxz-number-group {
|
.cxz-number-wrap--open .cxz-number-group {
|
||||||
|
|||||||
Reference in New Issue
Block a user