| 
					
				 | 
			
			
				@@ -1,9 +1,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <div class="ng-scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <navbar :user="userInfo" @openLoginDialog="openLoginDialog"></navbar> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <div class="waphide"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <navbar :user="userInfo" @openLoginDialog="openLoginDialog"></navbar> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <div class="banner-box"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div class="p-wrap-full clear pt30"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-card class="training-category opacity-bg fl" style="border-radius: 20px;padding-top: -5px;" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-card class="training-category opacity-bg fl waphide" style="border-radius: 20px;padding-top: -5px;" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <h2 align="center" style="background-color: white; color: #000000;padding-top:5px;">文件通知</h2> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-table :data="postList"  highlight-current-row 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :show-header="false" height="240px" > 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -28,15 +31,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-card> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <div class="m-login opacity-bg fr"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div class="m-login opacity-bg"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <is-login v-if="loginOk" :user="userInfo" @logout="logout"></is-login> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <un-login v-else @login="login" :err="err"></un-login> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--  --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <div class="waphide"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <learn-time></learn-time> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <learn-time></learn-time> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <div class="p-wrap-full mb20 ng-scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <div class="p-wrap-full mb20 ng-scope waphide"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div class="title-box mt5 clear"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <h2 class="title">课程分类</h2> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,14 +60,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-row> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <div class="right-nav"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <div class="right-nav waphide"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <img class="right-img" src="../../assets/wxapp.jpg" alt=""> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <p>使用小程序</p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <p>学习更轻松</p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <div class="p-wrap-full ng-scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <div class="p-wrap-full ng-scope waphide"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div class="title-box mt5 clear"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <h2 class="title">友情链接</h2> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -128,23 +134,26 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   created(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.getPostList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.loginOk = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    console.log("created", this.userInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if( this.userInfo && this.userInfo.token && this.userInfo.uid){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.loadBaseInfo().then(res=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log("loadBaseInfo", res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          if( !res || !res.uid ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            this.loginOk = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           this.doLogout().then( res=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             this.$router.push('/') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           } ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           this.doLogout() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            this.loginOk = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log("loadBaseInfo", this.userInfo.uid,this.userInfo.token ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ...mapActions("user", ["loadBaseInfo", "doLogout", "doLogin"]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     logout() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.doLogout().then( res=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log("loginOk", res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.loginOk = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 |