import React, { Component } from 'react'; import { SnackbarHOC, getImageUrl } from 'educoder'; import AccountImg from './AccountImg' class AccountNav extends Component { toBasic = () => { this.props.history.push(`/account/profile`) } toCertification = () => { this.props.history.push(`/account/certification`) } toSecure = () => { this.props.history.push(`/account/secure`) } render() { let { basicInfo } = this.props // console.log(this.props); const path = window.location.pathname const isBasic = path.indexOf('profile') != -1 || path == "/account" const isCertification = path.indexOf('certification') != -1 const isSecure = path.indexOf('secure') != -1 return (
{ basicInfo && basicInfo.id &&
{basicInfo.name} {basicInfo.technical_title}
账号管理
  • 基本信息 { basicInfo.base_info_completed == true ? : }
  • 认证信息 { basicInfo.professional_certification == 'certified' && basicInfo.authentication == 'certified' ? : }
  • 安全设置
}
); } } export default AccountNav ;