|  |  |  | @ -662,7 +662,17 @@ class Shixuninformation extends Component { | 
			
		
	
		
			
				
					|  |  |  |  |     }) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   //跳转道描点的地方
 | 
			
		
	
		
			
				
					|  |  |  |  |   scrollToAnchor = (anchorName) => { | 
			
		
	
		
			
				
					|  |  |  |  |     if (anchorName) { | 
			
		
	
		
			
				
					|  |  |  |  |       // 找到锚点
 | 
			
		
	
		
			
				
					|  |  |  |  |       let anchorElement = document.getElementById(anchorName); | 
			
		
	
		
			
				
					|  |  |  |  |       // 如果对应id的锚点存在,就跳转到锚点
 | 
			
		
	
		
			
				
					|  |  |  |  |       if (anchorElement) { | 
			
		
	
		
			
				
					|  |  |  |  |         anchorElement.scrollIntoView(); | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  |   onSubmits=()=>{ | 
			
		
	
		
			
				
					|  |  |  |  |     this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  |       loading:true | 
			
		
	
	
		
			
				
					|  |  |  | @ -699,9 +709,10 @@ class Shixuninformation extends Component { | 
			
		
	
		
			
				
					|  |  |  |  |         axios.put(url, data).then((result) => { | 
			
		
	
		
			
				
					|  |  |  |  |           if (result) { | 
			
		
	
		
			
				
					|  |  |  |  |             if (result.data) { | 
			
		
	
		
			
				
					|  |  |  |  |                   this.props.getdatas("2") | 
			
		
	
		
			
				
					|  |  |  |  |                   this.props.getdatas() | 
			
		
	
		
			
				
					|  |  |  |  |               if(result.data.shixun_identifier){ | 
			
		
	
		
			
				
					|  |  |  |  |                 this.props.showNotification("基本信息更新成功!") | 
			
		
	
		
			
				
					|  |  |  |  |                 this.scrollToAnchor("head-navpre1"); | 
			
		
	
		
			
				
					|  |  |  |  |                 this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  |                   loading:false | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
	
		
			
				
					|  |  |  | @ -1287,7 +1298,7 @@ class Shixuninformation extends Component { | 
			
		
	
		
			
				
					|  |  |  |  |         </div> | 
			
		
	
		
			
				
					|  |  |  |  |         {this.props.identity < 5 ? | 
			
		
	
		
			
				
					|  |  |  |  |           <Bottomsubmit {...this.props} {...this.state} url={`/shixuns/${this.props.match.params.shixunId}/challenges`} | 
			
		
	
		
			
				
					|  |  |  |  |                         onSubmits={this.onSubmits} loadings={this.state.loading} bottomvalue={"下一步"} /> : ""} | 
			
		
	
		
			
				
					|  |  |  |  |                         onSubmits={this.onSubmits} loadings={this.state.loading}/> : ""} | 
			
		
	
		
			
				
					|  |  |  |  |       </div> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     ); | 
			
		
	
	
		
			
				
					|  |  |  | 
 |