|  |  | @ -1,3 +1,5 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import React, { Component } from 'react'; |  |  |  | import React, { Component } from 'react'; | 
			
		
	
		
		
			
				
					
					|  |  |  | import { Link } from "react-router-dom"; |  |  |  | import { Link } from "react-router-dom"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import AccountProfile from "../user/AccountProfile"; |  |  |  | import AccountProfile from "../user/AccountProfile"; | 
			
		
	
	
		
		
			
				
					|  |  | @ -13,18 +15,24 @@ import Addcourses from '../courses/coursesPublic/Addcourses'; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import LoginDialog from '../login/LoginDialog'; |  |  |  | import LoginDialog from '../login/LoginDialog'; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import GotoQQgroup from '../../modal/GotoQQgroup' |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import GotoQQgroup from '../../modal/GotoQQgroup' | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import './TPMIndex.css'; |  |  |  | import './TPMIndex.css'; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | const $ = window.$ |  |  |  | const $ = window.$ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | // TODO 这部分脚本从公共脚本中直接调用
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | const RadioGroup = Radio.Group; |  |  |  | const RadioGroup = Radio.Group; | 
			
		
	
		
		
			
				
					
					|  |  |  | const { Search } = Input; |  |  |  | const { Search } = Input; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | let old_url; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | /* | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     _logined_header.html.erb | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     _unlogin_header.html.erb | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | */ | 
			
		
	
		
		
			
				
					
					|  |  |  | window._header_componentHandler = null; |  |  |  | window._header_componentHandler = null; | 
			
		
	
		
		
			
				
					
					|  |  |  | class NewHeader extends Component { |  |  |  | class NewHeader extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  |   constructor(props) { |  |  |  |   constructor(props) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -279,6 +287,7 @@ class NewHeader extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  |     this.setState({ |  |  |  |     this.setState({ | 
			
		
	
		
		
			
				
					
					|  |  |  |       isRender: true |  |  |  |       isRender: true | 
			
		
	
		
		
			
				
					
					|  |  |  |     }) |  |  |  |     }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  |   educoderloginysl = () => { |  |  |  |   educoderloginysl = () => { | 
			
		
	
		
		
			
				
					
					|  |  |  |     var url = `/accounts/logout.json`; |  |  |  |     var url = `/accounts/logout.json`; | 
			
		
	
	
		
		
			
				
					|  |  | @ -577,13 +586,6 @@ class NewHeader extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  |     document.head.appendChild(link); |  |  |  |     document.head.appendChild(link); | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   getAppdata = () => { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     try { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       var chromesettingArray = JSON.parse(localStorage.getItem('chromesetting')); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       var chromesettingresponseArray = JSON.parse(localStorage.getItem('chromesettingresponse')); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       // console.log("NewHeaderNewHeaderNewHeader");
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       // console.log(chromesettingArray);
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       // console.log(chromesettingresponseArray);
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   handleVisibleChanges = (boll) => { |  |  |  |   handleVisibleChanges = (boll) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |     this.setState({ |  |  |  |     this.setState({ | 
			
		
	
	
		
		
			
				
					|  |  | @ -1143,10 +1145,10 @@ class NewHeader extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  |                   <li><a href={this.props.Headertop.laboratory_admin_url}>后台管理</a></li> |  |  |  |                   <li><a href={this.props.Headertop.laboratory_admin_url}>后台管理</a></li> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                   <li><a href={`/account/profile`}>账号管理</a></li> |  |  |  |                 <li><a href={`/account/profile`}>账号管理</a></li> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                   {/*<li><a onClick={()=>this.educoderlogin()} >登入测试接口</a></li>*/} |  |  |  |                 {/*<li><a onClick={()=>this.educoderlogin()} >登入测试接口</a></li>*/} | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                   {/*<li><a onClick={()=>this.trialapplications()} >试用申请</a> </li>*/} |  |  |  |                 {/*<li><a onClick={()=>this.trialapplications()} >试用申请</a> </li>*/} | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                   {/*<li><Link to={`/interest`}>兴趣页</Link></li>*/} |  |  |  |                 {/*<li><Link to={`/interest`}>兴趣页</Link></li>*/} | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <li className="bor-top-greyE"> |  |  |  |                 <li className="bor-top-greyE"> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -1300,7 +1302,7 @@ class NewHeader extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         </div> |  |  |  |         </div> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       </div > |  |  |  |       </div> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     ); |  |  |  |     ); | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |