Commit f2d8c462 by zhangxw

首页认证弹窗从缓存取用户信息改成通过接口获取

1 parent a89879cc
......@@ -326,12 +326,14 @@ export default class HomePage extends Vue {
* P1:COMMON 且未处于认证中 → 延迟展示认证引导。
* 否则直接进入 P2/P3 链路。
*/
runHomeEntrancePopupSequence(): void {
async runHomeEntrancePopupSequence(): void {
const authService: AuthService = this.$auth;
if (!authService.isLogin()) {
return;
}
const accountInfo = authService.getAuthentication();
const res = await AccountController.getAccountInfo(this.axios)
const accountInfo = res.data
// const accountInfo = authService.getAuthentication();
/** 仅未认证/认证失败的 COMMON 用户走认证引导 或者未签署平台合同;已认证用户直接进入权益弹窗链路 */
const cs = accountInfo?.certifiedState;
const needP1 = (!!(accountInfo && accountInfo.accountType === 'COMMON' && cs !== 'CERTIFICATING' && cs !== 'CERTIFIED') || (accountInfo && !accountInfo.platformContractSigned));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!