修改功能,现已测试注册登录忘记密码

This commit is contained in:
rain
2026-06-12 11:42:49 +08:00
parent 0bf2f573ed
commit cfc64c69e5
26 changed files with 2238 additions and 898 deletions
+17 -12
View File
@@ -17,11 +17,15 @@ const $ = layui.$;
CommonUtil.loadPageConfig({ ads: false, links: false });
checkPaidPublishPermission().then(function (result) {
if (!result.canPaid) {
layui.layer.alert(result.reason || "暂无付费文章发布权限。", {
title: "暂无权限",
});
$(".mianfeiThreeSelect").addClass("is-disabled");
$("#gmjl").prop("disabled", true);
layui.layer.alert(
result.reason || "暂无付费文章发布权限",
{
title: "暂无权限",
},
function () {
window.location.href = "fabumianfeiwenzhang.html";
},
);
return;
}
@@ -145,19 +149,20 @@ const $ = layui.$;
const status = String(
res.data.expertStatus || res.data.expert_status || "",
).toLowerCase();
const isRegularExpert =
isTruthy(res.data.is_regular_expert) ||
isTruthy(res.data.isRegularExpert) ||
isTruthy(res.data.regularExpert) ||
/正式|regular|formal/.test(status);
const hasExpertIdentity =
isTruthy(res.data.is_expert) ||
isTruthy(res.data.isExpert) ||
isTruthy(res.data.expert) ||
isTruthy(res.data.is_regular_expert) ||
isTruthy(res.data.isRegularExpert) ||
isTruthy(res.data.regularExpert) ||
isTruthy(res.data.internExpert) ||
isTruthy(res.data.isInternExpert) ||
isRegularExpert ||
/实习|intern|trial|正式|regular|formal/.test(status);
if (!hasExpertIdentity) {
return { canPaid: false, reason: "专家才能发布付费文章。" };
if (!hasExpertIdentity || !isRegularExpert) {
return { canPaid: false, reason: "正式专家才能发布付费文章。" };
}
return loadTodayPublishedFreeCount().then(function (count) {