样式修改完成,待测试
This commit is contained in:
+16
-8
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user