样式修改完成,待测试

This commit is contained in:
rain
2026-07-07 17:07:34 +08:00
parent 0f6ed0cad3
commit 8a6a8acab7
32 changed files with 2097 additions and 505 deletions
+16 -8
View File
@@ -140,6 +140,7 @@
<button class="gotop" id="backTop" type="button" onclick="window.scrollTo({ top: 0, behavior: 'smooth' })"></button>
<script>
var $;
var updateData = {
idCardFrontId: "",
idCardBackId: "",
@@ -148,7 +149,7 @@
var expertIntroMinLength = 80;
layui.use(["layer", "jquery"], function () {
var $ = layui.$;
$ = layui.$;
CommonUtil.loadPageConfig({ ads: false, links: false });
renderLoginState();
@@ -204,13 +205,20 @@
CommonUtil.getCurrentUserDetail(function (data) {
if (!data) return;
$("#currentUsername").text(data.nickName || data.username || data.phoneNumber || "用户");
var isExpert =
data.expert === true ||
data.regularExpert === true ||
data.isExpert === 1 ||
data.isExpert === "1";
if (isExpert) {
$("#applyBtn").text("已申请").prop("disabled", true);
var expertState = CommonUtil.getExpertState
? CommonUtil.getExpertState(data)
: {
isExpert:
data.expert === true ||
data.regularExpert === true ||
data.isExpert === 1 ||
data.isExpert === "1",
isApplying: false,
};
if (expertState.isExpert || expertState.isApplying) {
$("#applyBtn")
.text(expertState.isExpert ? "已是专家" : "申请审核中")
.prop("disabled", true);
}
});
}