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`) } isBinding = () => { this.props.history.push(`/account/binding`) } render() { let { basicInfo, current_user } = 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 const isBinding = path.indexOf('binding') != -1 return (
{ basicInfo && basicInfo.id &&
{/*{basicInfo.name || (current_user ? current_user.login : '')}*/} {basicInfo.technical_title}
账号管理
  • 基本信息 { basicInfo.base_info_completed == true ? : }
  • 认证信息 { basicInfo.professional_certification == 'certified' && basicInfo.authentication == 'certified' ? : }
  • 安全设置
  • {this.props.user&&this.props.user.main_site===true?
  • 绑定登录账号
  • :""}
}
); } } export default AccountNav ;