forked from Gitlink/forgeplus-react
issue
This commit is contained in:
parent
008bab7131
commit
ed1b881cf4
|
@ -8,14 +8,10 @@ import './Index.scss';
|
|||
function SupplyPhoneModal({visible}) {
|
||||
const [ modalVis , setModalVis ] = useState(visible);
|
||||
|
||||
useEffect(()=>{
|
||||
|
||||
},[])
|
||||
|
||||
useEffect(()=>{
|
||||
setModalVis(visible);
|
||||
if(visible){
|
||||
// cookie.remove('supply_phone')
|
||||
cookie.remove('supplyphone');
|
||||
}
|
||||
},[visible])
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ function Index(props){
|
|||
<ul className="securityUl ul-border-buttom">
|
||||
<li>个人信息</li>
|
||||
<li className={pathname.indexOf("/settings/profile")>-1 ?"active":""}><Link to={`/settings/profile`}><i className="iconfont icon-gerenziliao mr5 font-14"></i><span className="text-shodow-bold">基本资料</span></Link></li>
|
||||
<li className={(pathname.indexOf("/settings/emails")>-1 || pathname.indexOf("/settings/phone")>-1 || pathname.indexOf("/settings/password")>-1 || pathname.indexOf("/settings/cancel")>-1) ?"active":""}><Link to={`/settings/emails`}><i className="iconfont icon-xuanzhonganquanshezhi_icon mr5 font-14"></i><span className="text-shodow-bold">账号管理</span></Link></li>
|
||||
<li className={(pathname.indexOf("/settings/emails")>-1 || pathname.indexOf("/settings/phone")>-1 || pathname.indexOf("/settings/password")>-1 || pathname.indexOf("/settings/cancel")>-1) ?"active":""}><Link to={`/settings/phone`}><i className="iconfont icon-xuanzhonganquanshezhi_icon mr5 font-14"></i><span className="text-shodow-bold">账号管理</span></Link></li>
|
||||
</ul>
|
||||
{notice_url && <ul className="securityUl ul-border-buttom">
|
||||
<li>消息通知</li>
|
||||
|
|
|
@ -5,7 +5,7 @@ import { notification } from 'antd';
|
|||
|
||||
import axios from 'axios';
|
||||
import educoderLogo from './educoder.png';
|
||||
|
||||
import cookie from 'react-cookies';
|
||||
import './LoginDialog.css';
|
||||
import { broadcastChannelPostMessage } from 'educoder'
|
||||
import Notcompletedysl from "../user/Notcompletedysl";
|
||||
|
@ -395,6 +395,7 @@ class LoginDialog extends Component {
|
|||
this.setState({
|
||||
isRender: false
|
||||
})
|
||||
cookie.save("supplyphone",true);
|
||||
this.props.Modifyloginvalue(response.data);
|
||||
this.props.gopage ? (window.location.href = this.props.gopage) : window.location.reload()
|
||||
// window.location.reload();
|
||||
|
|
|
@ -35,7 +35,8 @@ function Login(props){
|
|||
} else {
|
||||
//判断用户是否选择【下次自动登录】
|
||||
cookie.save('autologin',values.remember);
|
||||
cookie.save('supply_phone',true);
|
||||
cookie.save('supplyphone',true);
|
||||
|
||||
const searchParams = new URLSearchParams(search.substring(1));
|
||||
const goPage = searchParams.get("go_page");
|
||||
//意见反馈
|
||||
|
|
|
@ -185,13 +185,13 @@ export function TPMIndexHOC(WrappedComponent) {
|
|||
if(this.props.match.path === "/" && this.props.history.length===2){
|
||||
this.props.history.push(`/${response.data.login}`)
|
||||
}
|
||||
// if(!response.data.phone){
|
||||
// var supplyCookie = cookie.load('supply_phone');
|
||||
// console.log(supplyCookie);
|
||||
// this.setState({
|
||||
// supplyPhone:supplyCookie || false
|
||||
// })
|
||||
// }
|
||||
if(!response.data.phone){
|
||||
var supplyCookie = cookie.load('supplyphone');
|
||||
console.log(supplyCookie);
|
||||
this.setState({
|
||||
supplyPhone:supplyCookie || false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}).catch((error) => {
|
||||
|
|
Loading…
Reference in New Issue