flowaaa vor 1 Jahr
Ursprung
Commit
b8b4c597de

+ 1 - 6
app-angular/src/modules/lesson/community/community.component.ts

@@ -69,11 +69,6 @@ export class CommunityComponent {
       queryParams: attention
     })
   }
-  goHateDetail(attention: Parse.Object) {
-    this.router.navigate(["/lesson/community/hateDetail"], {
-      queryParams: attention
-    })
-  }
-// 888
+
 
 }

+ 0 - 4
app-angular/src/modules/lesson/community/community.module.ts

@@ -4,15 +4,11 @@ import { FormsModule } from '@angular/forms';
 import { IonicModule } from '@ionic/angular';
 
 import { CommunityRoutingModule } from './community-routing.module';
-import { ScienceDetailComponent } from '../science-detail/science-detail.component';
-
 
 @NgModule({
 
     declarations: [
        
-        // ScienceDetailComponent,
-
     ],
     imports: [
         CommonModule,

+ 1 - 7
app-angular/src/modules/lesson/me/me.component.html

@@ -63,7 +63,6 @@
             </ion-item>
         </ion-list>
     </ion-card>
-
     <!-- 列表 -->
     <ion-card class="myList">
         <ion-list [inset]="true">
@@ -88,7 +87,6 @@
         <ion-button *ngIf="!currentUser?.id" expand="block" routerLink="/user/login">登录</ion-button>
         <ion-button *ngIf="currentUser?.id" fill="clear" expand="block" (click)="logout()">登出</ion-button>
     </ion-list>
-
     <!-- 详细内容 -->
     <!-- 导航 -->
     <ion-card>
@@ -110,9 +108,7 @@
             <ion-buttons slot="end"><ion-button>编辑</ion-button></ion-buttons>
         </ion-toolbar>
     </ion-card>
-
-    <!-- 美景推荐 -->
-
+    <!-- 推荐图 -->
     <ng-container *ngIf="cate=='推荐'">
         <ion-list [inset]="true" lines="inset">
             <ng-container *ngFor="let recommend of myRecommendList">
@@ -129,7 +125,6 @@
             </ng-container>
         </ion-list>
     </ng-container>
-
     <!-- 科普关注 -->
     <ng-container *ngIf="cate=='关注'">
         <ion-grid>
@@ -152,7 +147,6 @@
             </ion-row>
         </ion-grid>
     </ng-container>
-
     <!-- 科普笔记 -->
     <ng-container *ngIf="cate=='科普'">
         <ng-container *ngFor="let science of myScienceList">

+ 0 - 6
app-angular/src/modules/lesson/me/me.component.scss

@@ -9,7 +9,6 @@ ion-item {
 
     font-size: 0.9rem;
 }
-
 .foodContent {
     display: -webkit-box;
     -webkit-box-orient: vertical;
@@ -17,7 +16,6 @@ ion-item {
     overflow: hidden;
     text-overflow: ellipsis;
 }
-
 .myList {
     padding: 0%;
 
@@ -25,12 +23,9 @@ ion-item {
         margin: 0%;
     }
 }
-
-
 .roleCard {
     margin: 0px;
 }
-
 .metadata-end-wrapper {
     position: absolute;
 
@@ -42,7 +37,6 @@ ion-item {
     display: flex;
     align-items: center;
 }
-
 .metadata-end-wrapper-science {
     position: absolute;
 

+ 0 - 19
app-angular/src/modules/lesson/page-lesson/page-lesson.component.ts

@@ -61,25 +61,6 @@ export class PageLessonComponent {
   
   groupedCourseList: any[] = [];
 
-  // 在获取课程数据后,将课程按照每4个为一组进行分组
-  // groupCoursesByCategory() {
-  //   const coursesPerCategory = 4;
-  //   const totalCourses = this.courseList.length;
-  //   const totalCategories = Math.ceil(totalCourses / coursesPerCategory);
-  
-  //   for (let i = 0; i < totalCategories; i++) {
-  //     const startIndex = i * coursesPerCategory;
-  //     const endIndex = startIndex + coursesPerCategory;
-  //     const categoryCourses = this.courseList.slice(startIndex, endIndex);
-  //     this.groupedCourseList.push(categoryCourses);
-  //   }
-  // }
-  // ngOnInit() {
-  //   this.groupCoursesByCategory();
-  // }
-  
-  
-
   goLessonDetail(lesson: any) {
     this.router.navigate(["/lesson/lesson/detail"], { queryParams: lesson })
   }

+ 1 - 12
app-angular/src/modules/lesson/page-test/page-test.component.html

@@ -6,7 +6,6 @@
             </ion-segment-button>
             <ion-segment-button value="favorites" (click)="changeTab('favorites')">
                 <ion-label>宠物性格测试</ion-label>
-            
             </ion-segment-button>
         </ion-segment>
     </ion-header>
@@ -14,14 +13,7 @@
     <ion-content>
         
         <ng-container *ngIf="currentTab === 'all'">
-         
-
-           
-          
-
-   
             <ion-content>
-                <ng-container *ngIf="currentTab === 'all'">
                     <ion-card>
                       <ion-card-header>
                         <ion-card-title>宠物MBTI各个维度解释</ion-card-title>
@@ -32,7 +24,7 @@
                         <p>L(学习型)- S(稳定型):表示狗狗在学习和适应环境中的表现,L表示狗狗学习能力强、适应能力高,S表示狗狗倾向于稳定的环境和习惯。</p>
                       </ion-card-content>
                     </ion-card>
-                  </ng-container>
+                    
                 <ion-grid>
                     <ion-row>
                         <ng-container *ngFor="let course of courseList; let i = index">
@@ -56,9 +48,6 @@
             </ion-content>
         </ng-container>
 
-
-
-
         <!-- 宠物测试 -->
         <ng-container *ngIf="currentTab === 'favorites'">
             <h4 style="text-align: center;padding: 15px;">开始测试</h4>

+ 0 - 5
app-angular/src/modules/lesson/page-test/page-test.component.ts

@@ -38,7 +38,6 @@ import { Router } from '@angular/router';
       console.log(list);
       return list
     }
-    
     planOptions: any = {
       gender: "未知",
       option1: "",
@@ -48,7 +47,6 @@ import { Router } from '@angular/router';
     setOption(optionName: string, event: any) {
       this.planOptions[optionName] = event.detail.value;
     }
-    
     // 触底加载函数逻辑
     pageSize = 30
     skip: number = 0 // 跳过多少条进行加载
@@ -59,7 +57,4 @@ import { Router } from '@angular/router';
       this.courseList = this.courseList.concat(list)
       infiScroll?.complete();
     }
-    // goLessonDetail(lesson: any) {
-    //   this.router.navigate(["/lesson/test/detail"], { queryParams: lesson })
-    // }
   }

+ 0 - 1
app-angular/src/modules/lesson/recommend-detail/recommend-detail.component.html

@@ -9,7 +9,6 @@
                 <ion-note>收藏</ion-note>
             </ion-button>
         </ion-buttons>
-
     </ion-toolbar>
 </ion-header>
 <ion-content color="light">

+ 1 - 4
app-angular/src/modules/user/page-login/page-login.component.html

@@ -8,7 +8,6 @@
     </ion-toolbar>
 </ion-header>
 <ion-content color="light">
-
     <div class="login-modal">
         <ion-card>
             <ion-card-header>
@@ -30,15 +29,13 @@
     <ion-list [inset]="true">
         <ion-item>
             <ion-label class="register-modal">
-                未有账号?请选择<ion-button fill="outline" color="dark" (click)="goRegister()" class="register">
+                未有账号?请选择<ion-button fill="outline" color="dark" (click)="goRegister()" class="register">
                     注册一下
                 </ion-button>
             </ion-label>
         </ion-item>
     </ion-list>
 </ion-content>
-
-
 <ng-container *ngIf="false">
 
     请输入用户名:{{userData.username}} <br />

+ 0 - 2
app-angular/src/modules/user/page-login/page-login.component.ts

@@ -29,7 +29,6 @@ export class PageLoginComponent {
   goRegister() {
     let path = "/user/register"
     this.router.navigate([path])
-    console.log('账户已保存,去登录吧')
   }
 
   async login() {
@@ -52,7 +51,6 @@ export class PageLoginComponent {
       message: err,
       buttons: ['好的'],
     });
-
     await alert.present();
   }
 }

+ 0 - 3
app-angular/src/modules/user/page-register/page-register.component.ts

@@ -15,7 +15,6 @@ export class PageRegisterComponent {
 
   async register() {
     // 处理注册逻辑,例如发送注册请求到后端
-
     // 显示注册成功的提示框
     const alert = await this.alertController.create({
       header: '提示',
@@ -27,9 +26,7 @@ export class PageRegisterComponent {
     // 导航到登录页面
     this.router.navigate(['/user/login']);
   }
-
   goBack() {
     this.router.navigate(['/user/login']);
   }
-
 }