修复首页:保留个人与企业认证状态语义
This commit is contained in:
1 parent
1357bd4ece
commit
520c0894c2
2 files changed
+182
-10
No files matched your search
+22
-10
@@ -255,7 +255,14 @@ var w = {
|
||||
to: `/account`,
|
||||
},
|
||||
);
|
||||
let n = X.value;
|
||||
let n = X.value,
|
||||
personStatus = Number(n?.person?.status || 0),
|
||||
companyStatus = Number(n?.company?.status || 0),
|
||||
statusLabels = {
|
||||
2: `认证未通过`,
|
||||
3: `待审核`,
|
||||
4: `待核验`,
|
||||
};
|
||||
return (
|
||||
n
|
||||
? (t.push(
|
||||
@@ -270,10 +277,10 @@ var w = {
|
||||
value: n.person?.card_name || `已认证`,
|
||||
kind: n.person?.card_name ? `name` : void 0,
|
||||
}
|
||||
: n.person?.status
|
||||
: personStatus
|
||||
? {
|
||||
label: `实名认证`,
|
||||
value: `审核中`,
|
||||
value: statusLabels[personStatus] || `待核验`,
|
||||
}
|
||||
: {
|
||||
label: `实名认证`,
|
||||
@@ -284,18 +291,23 @@ var w = {
|
||||
),
|
||||
n.certification_company_open === 1
|
||||
? t.push(
|
||||
n.company?.status
|
||||
companyStatus === 1
|
||||
? {
|
||||
label: `组织机构认证`,
|
||||
value: n.company?.company || `已认证`,
|
||||
kind: n.company?.company ? `text` : void 0,
|
||||
}
|
||||
: {
|
||||
label: `组织机构认证`,
|
||||
value: `未认证`,
|
||||
action: `去认证`,
|
||||
to: `/account/realname`,
|
||||
},
|
||||
: companyStatus
|
||||
? {
|
||||
label: `组织机构认证`,
|
||||
value: statusLabels[companyStatus] || `待核验`,
|
||||
}
|
||||
: {
|
||||
label: `组织机构认证`,
|
||||
value: `未认证`,
|
||||
action: `去认证`,
|
||||
to: `/account/realname`,
|
||||
},
|
||||
)
|
||||
: t.push({
|
||||
label: `组织机构认证`,
|
||||
|
||||
Reference in new issue
Block a user