Ver Fonte

Merge branch 'master' of codehub-cn-south-1.devcloud.huaweicloud.com:web3000003/web-0210402

hid_msrpuwgj56ccf29 há 5 meses atrás
pai
commit
94a7855954

+ 4 - 4
app-angular/src/modules/lesson/attention-detail/attention-detail.component.html

@@ -21,7 +21,7 @@
             <ion-card-subtitle>{{attention?.get('createdAt')| date: 'YYYY/MM/dd/HH:mm'||"发布时间"}}</ion-card-subtitle>
         </ion-card-header>
         <ion-card-content>
-            {{attention?.get('cueword')||"#爱宠之家"}}
+            {{attention?.get('cueword')||"#hrmai"}}
         </ion-card-content>
     </ion-card>
     <!-- 评论区 ,-->
@@ -51,7 +51,7 @@
         <ion-item class="comment-list">
             <ion-label>
                 <p class="commentator">momo</p>
-                <ion-note class="comment-content">救命这也太可爱了吧啊啊 ♥</ion-note>
+                <ion-note class="comment-content">必须关注起来! ♥</ion-note>
             </ion-label>
             <div class="comment-time">
                 <ion-note color="medium">03:44</ion-note>
@@ -60,7 +60,7 @@
         <ion-item class="comment-list">
             <ion-label>
                 <p class="commentator">苏格拉没有底</p>
-                <ion-note class="comment-content">我也想养只哈基米,感觉会很治愈呢!</ion-note>
+                <ion-note class="comment-content">古希腊掌管送礼的神出现啦</ion-note>
             </ion-label>
             <div class="comment-time">
                 <ion-note color="medium">Yesterday</ion-note>
@@ -69,7 +69,7 @@
         <ion-item class="comment-list">
             <ion-label>
                 <p class="commentator">是CC呀</p>
-                <ion-note class="comment-content">它喜欢什么颜色的麻袋,我今晚就扛麻袋去偷=。=</ion-note>
+                <ion-note class="comment-content">礼物🎁仪式感满满</ion-note>
             </ion-label>
             <div class="comment-time">
                 <ion-note color="medium">Yesterday</ion-note>

+ 60 - 125
app-angular/src/modules/lesson/community/community.component.html

@@ -13,87 +13,73 @@
     <ion-card class="navbar">
         <ion-toolbar>
             <ion-segment value="推荐">
-                <ion-segment-button value="推荐" (click)="cate='推荐'">
-                    <ion-label>推荐</ion-label>
-                </ion-segment-button>
-                <ion-segment-button value="关注" (click)="cate='关注'">
-                    <ion-label>关注</ion-label>
-                </ion-segment-button>
-                <!-- <ion-segment-button value="科普" (click)="cate='科普'">
-                    <ion-label>科普</ion-label>
-                </ion-segment-button> -->
+                    <ion-segment-button value="推荐" (click)="cate='推荐'">
+                        <ion-label>推荐</ion-label>
+                    </ion-segment-button>
+                    <ion-segment-button value="关注" (click)="cate='关注'">
+                        <ion-label>关注</ion-label>
+                    </ion-segment-button>
             </ion-segment>
         </ion-toolbar>
     </ion-card>
-
-    <!-- 推荐 -->
-    <ng-container *ngIf="cate=='推荐'">
-        <ion-grid>
-            <ion-row>
-                <ng-container *ngFor="let attention of recommendList">
-                    <ion-col size="6">
-                        <ion-card class="roleCard" (click)="goRecommendDetail(attention)">
-                            <img alt="推荐图" [src]="attention?.get('img')" />
-                            <ion-card-header>
-                                <ion-card-title>
-                                    {{attention?.get('name')}}
-                                </ion-card-title>
-                                <ion-card-subtitle style="font-size:0.7rem;">
-                                    作者:{{attention?.get('user')?.get('name') || "无名"}}
-                                </ion-card-subtitle>
-                            </ion-card-header>
-                            <div class="metadata-end-wrapper">
-                                <ion-button shape="round" size="small" color="danger">
-                                    <ion-icon name="heart-outline" size="small"></ion-icon>
-                                    {{attention?.get('like')}}
-                                </ion-button>
-                            </div>
-                        </ion-card>
-                    </ion-col>
-                </ng-container>
-            </ion-row>
-        </ion-grid>
-    </ng-container>
-
-    <ng-container *ngIf="cate=='关注'">
-        <div class="carousel-container">
-            <div class="carousel">
-                <ng-container *ngFor="let attention of attentionList">
-                    <div class="card-container">
-                        <ion-col size="6">
+    <ion-content>
+        <ng-container *ngIf="cate=='关注'">
+            <div class="carousel-container">
+                <div class="carousel">
+                    <ng-container *ngFor="let attention of attentionList; let i = index">
+                        <ion-col size="6" *ngIf="i % 2 === 0">
                             <ion-card class="roleCard custom-card" (click)="goAttentionDetail(attention)">
                                 <img alt="关注图" [src]="attention?.get('img')" />
-                                <ion-card-header>
-                                    <!-- <ion-card-title>
-                                        {{attention?.get('name')}}
-                                    </ion-card-title> -->
-                                    <ion-card-subtitle style="font-size:0.7rem;">
-                                        作者:{{attention?.get('user')?.get('name') || "无名"}}
-                                    </ion-card-subtitle>
-                                </ion-card-header>
-                                <div class="metadata-end-wrapper">
-                                    <ion-button shape="round" size="small" color="danger">
-                                        <ion-icon name="heart-outline" size="small"></ion-icon>
-                                        {{attention?.get('like')}}
-                                    </ion-button>
-                                </div>
                             </ion-card>
                         </ion-col>
-                    </div>
-                </ng-container>
+                    </ng-container>
+                </div>
             </div>
-        </div>
-        <div class="carousel-container">
-            <div class="carousel">
-                <ng-container *ngFor="let attention of attentionList">
-                    <div class="card-container">
-                        <ion-col size="6">
+            <div class="carousel-container">
+                <div class="carousel">
+                    <ng-container *ngFor="let attention of attentionList.slice().reverse(); let i = index">
+                        <ion-col size="6" *ngIf="i % 2 === 0">
                             <ion-card class="roleCard custom-card" (click)="goAttentionDetail(attention)">
                                 <img alt="关注图" [src]="attention?.get('img')" />
+                            </ion-card>
+                        </ion-col>
+                    </ng-container>
+                </div>
+            </div>
+            <ng-container *ngFor="let science of scienceList">
+                <ion-card (click)="goScienceDetail(science)">
+                    <img alt="科普图" [src]="science?.get('img')" />
+                    <ion-card-header>
+                        <ion-card-title>{{science?.get('name')}}</ion-card-title>
+                        <ion-card-subtitle>{{science?.get('createdAt') | date: 'YYYY/MM/dd' || "发布时间"}}</ion-card-subtitle>
+                        <div class="metadata-end-wrapper">
+                            <ion-button fill="clear" color="dark" size="small" class="see">
+                                <ion-icon name="eye-outline" size="small"></ion-icon>
+                                <ion-note>{{science?.get('see')}}</ion-note>
+                            </ion-button>
+                            <ion-button fill="clear" color="dark" size="small" class="like">
+                                <ion-icon name="heart-outline" size="small"></ion-icon>
+                                <ion-note>{{science?.get('like')}}</ion-note>
+                            </ion-button>
+                        </div>
+                    </ion-card-header>
+                    <ion-card-content>
+                        <p class="foodContent">{{science?.get('content')}}</p>
+                    </ion-card-content>
+                </ion-card>
+            </ng-container>
+        </ng-container>
+
+         <!-- 推荐部分 -->
+         <ng-container *ngIf="cate=='推荐'">
+            <ion-grid>
+                <ion-row>
+                    <ng-container *ngFor="let attention of recommendList">
+                        <ion-col size="6">
+                            <ion-card class="roleCard" (click)="goRecommendDetail(attention)">
+                                <img alt="推荐图" [src]="attention?.get('img')" />
                                 <ion-card-header>
-                                    <!-- <ion-card-title>
-                                        {{attention?.get('name')}}
-                                    </ion-card-title> -->
+                                    <ion-card-title>{{attention?.get('name')}}</ion-card-title>
                                     <ion-card-subtitle style="font-size:0.7rem;">
                                         作者:{{attention?.get('user')?.get('name') || "无名"}}
                                     </ion-card-subtitle>
@@ -106,59 +92,8 @@
                                 </div>
                             </ion-card>
                         </ion-col>
-                    </div>
-                </ng-container>
-            </div>
-        </div>
-    </ng-container><ng-container *ngFor="let science of scienceList">
-        <ion-card (click)="goScienceDetail(science)">
-            <img alt="科普图" [src]="science?.get('img')" />
-            <ion-card-header>
-                <ion-card-title>{{science?.get('name')}}</ion-card-title>
-                <ion-card-subtitle>{{science?.get('createdAt') | date: 'YYYY/MM/dd' || "发布时间"}}</ion-card-subtitle>
-                <div class="metadata-end-wrapper">
-                    <ion-button fill="clear" color="dark" size="small" class="see">
-                        <ion-icon name="eye-outline" size="small"></ion-icon>
-                        <ion-note>{{science?.get('see')}}</ion-note>
-                    </ion-button>
-                    <ion-button fill="clear" color="dark" size="small" class="like">
-                        <ion-icon name="heart-outline" size="small"></ion-icon>
-                        <ion-note>{{science?.get('like')}}</ion-note>
-                    </ion-button>
-                </div>
-            </ion-card-header>
-            <ion-card-content>
-                <p class="foodContent">{{science?.get('content')}}</p>
-            </ion-card-content>
-        </ion-card>
-    </ng-container>
-    
-    
-
-    <!-- 科普 -->
-    <!-- <ng-container *ngIf="cate=='科普'">
-        <ng-container *ngFor="let science of scienceList">
-            <ion-card (click)="goScienceDetail(science)">
-                <img alt="科普图" [src]="science?.get('img')" />
-                <ion-card-header>
-                    <ion-card-title>{{science?.get('name')}}</ion-card-title>
-                    <ion-card-subtitle>{{science?.get('createdAt') | date: 'YYYY/MM/dd' || "发布时间"}}</ion-card-subtitle>
-                    <div class="metadata-end-wrapper">
-                        <ion-button fill="clear" color="dark" size="small" class="see">
-                            <ion-icon name="eye-outline" size="small"></ion-icon>
-                            <ion-note>{{science?.get('see')}}</ion-note>
-                        </ion-button>
-                        <ion-button fill="clear" color="dark" size="small" class="like">
-                            <ion-icon name="heart-outline" size="small"></ion-icon>
-                            <ion-note>{{science?.get('like')}}</ion-note>
-                        </ion-button>
-                    </div>
-                </ion-card-header>
-                <ion-card-content>
-                    <p class="foodContent">{{science?.get('content')}}</p>
-                </ion-card-content>
-            </ion-card>
+                    </ng-container>
+                </ion-row>
+            </ion-grid>
         </ng-container>
-    </ng-container> -->
-
-</ion-content>
+    </ion-content>

+ 11 - 30
app-angular/src/modules/lesson/community/community.component.scss

@@ -1,28 +1,3 @@
-ion-content {
-  height: calc(100vh - 121px) !important;
-}
-
-.foodContent {
-  display: -webkit-box;
-  -webkit-box-orient: vertical;
-  -webkit-line-clamp: 2;
-  overflow: hidden;
-  text-overflow: ellipsis;
-}
-
-.roleCard {
-  margin: 0;
-}
-
-.metadata-end-wrapper {
-  position: absolute;
-  top: 3px;
-  inset-inline-end: 3px;
-  font-size: 0.6rem;
-  display: flex;
-  align-items: center;
-}
-
 .carousel-container {
   width: 100%;
   overflow: hidden;
@@ -31,10 +6,11 @@ ion-content {
 .carousel {
   display: flex;
   overflow-x: auto;
-  scroll-behavior: smooth;
+  overflow-y: hidden; /* 禁止垂直滚动 */
+  scroll-snap-type: x mandatory; /* 必须的水平滚动 */
+  -webkit-overflow-scrolling: touch; /* 兼容iOS的滚动效果 */
   scrollbar-width: none; /* 隐藏滚动条 Firefox */
   -ms-overflow-style: none; /* 隐藏滚动条 IE/Edge */
-  -webkit-overflow-scrolling: touch; /* 兼容iOS的滚动效果 */
 }
 
 .carousel::-webkit-scrollbar {
@@ -43,20 +19,25 @@ ion-content {
 
 .card {
   flex: 0 0 auto;
-  width: 200px;
-  height: 200px;
+  width: 40%; /* 缩短卡片长度 */
+  height: 150px; /* 调整卡片高度 */
   margin-right: 10px;
   background-color: #f9f9f9;
   border-radius: 5px;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+  scroll-snap-align: start; /* 开始对齐滚动 */
 }
 
 .carousel-content {
   display: flex;
   flex-wrap: nowrap; /* 防止换行 */
+  scroll-snap-type: x mandatory; /* 必须的水平滚动 */
 }
+
 .custom-card {
   width: 100%; /* 设置每个 ion-card 的宽度为100% */
   height: 100%; /* 设置每个 ion-card 的高度为100% */
 }
-
+.custom-header {
+  padding-bottom: 1px; /* 调整ion-card-header底部内边距 */
+}

+ 2 - 21
app-angular/src/modules/lesson/community/community.component.ts

@@ -1,39 +1,30 @@
 import { Component, OnInit, ViewChild, ElementRef, Renderer2 } from '@angular/core';
 import { Router } from '@angular/router';
 import * as Parse from "parse";
-
 @Component({
   selector: 'app-community',
   templateUrl: './community.component.html',
   styleUrls: ['./community.component.scss'],
-
 })
 export class CommunityComponent implements OnInit {
-
   scienceList: Array<Parse.Object> = [];
   recommendList: Array<Parse.Object> = [];
   attentionList: Array<Parse.Object> = [];
-
   startX: number = 0;
   currentX: number = 0;
   isDragging: boolean = false;
   minTranslateX: number = 0; // 最小平移距离
   maxTranslateX: number = 0;
-
   @ViewChild('carousel', { static: true }) carousel!: ElementRef;
-
   cate: string = 'all';
-
   constructor(private router: Router, private renderer: Renderer2) {
     this.initPage();
   }
-
   ngOnInit(): void {
     this.renderer.listen(this.carousel.nativeElement, 'touchstart', this.onTouchStart.bind(this));
     this.renderer.listen(this.carousel.nativeElement, 'touchmove', this.onTouchMove.bind(this));
     this.renderer.listen(this.carousel.nativeElement, 'touchend', this.onTouchEnd.bind(this));
   }
-
   async initPage() {
     this.scienceList = await this.getScienceData();
     this.recommendList = await this.getRecommendData();
@@ -41,54 +32,45 @@ export class CommunityComponent implements OnInit {
     // 设置最大最小平移距离
     this.maxTranslateX = this.carousel.nativeElement.offsetWidth - window.innerWidth;
   }
-
   async getScienceData() {
-    let query = new Parse.Query("PetScience");
+    let query = new Parse.Query("HrmScience");
     let list = await query.find();
     return list;
   }
-
   async getRecommendData() {
-    let query = new Parse.Query("PetRecommend");
+    let query = new Parse.Query("HrmRecommend");
     let list = await query.find();
     return list;
   }
-
   async getAttentionData() {
     let query = new Parse.Query("HrmAttention");
     let list = await query.find();
     return list;
   }
-
   goScienceDetail(science: Parse.Object) {
     this.router.navigate(["/lesson/community/scienceDetail"], {
       queryParams: science
     });
   }
-
   goRecommendDetail(recommend: Parse.Object) {
     this.router.navigate(["/lesson/community/recommendDetail"], {
       queryParams: recommend
     });
   }
-
   goAttentionDetail(attention: Parse.Object) {
     this.router.navigate(["/lesson/community/attentionDetail"], {
       queryParams: attention
     });
   }
-
   onTouchStart(event: TouchEvent): void {
     this.startX = event.touches[0].clientX;
     this.isDragging = true;
   }
-
   onTouchMove(event: TouchEvent): void {
     if (this.carousel && this.isDragging) {
         const touch = event.touches[0];
         const deltaX = touch.clientX - this.startX;
         this.currentX = this.currentX + deltaX;
-
         // 限制平移范围在最大最小值之间
         this.currentX = Math.max(this.minTranslateX, Math.min(this.maxTranslateX, this.currentX));
 
@@ -96,7 +78,6 @@ export class CommunityComponent implements OnInit {
         this.startX = touch.clientX;
     }
 }
-
   onTouchEnd(): void {
     this.isDragging = false;
   }

+ 2 - 2
app-angular/src/modules/lesson/me/me.component.ts

@@ -29,7 +29,7 @@ isReminderExpanded = false;
   cate: string = "关注"
   myRecommendList: Array<Parse.Object> = []
   async getRecommendDate() {
-    let query = new Parse.Query("PetRecommend");
+    let query = new Parse.Query("HrmRecommend");
     query.equalTo("user", Parse.User.current()?.toPointer())
     query.include("user")
     let list = await query.find();
@@ -45,7 +45,7 @@ isReminderExpanded = false;
   }
   myScienceList: Array<Parse.Object> = []
   async getScienceData() {
-    let query = new Parse.Query("PetScience");
+    let query = new Parse.Query("HrmScience");
     query.equalTo("user", Parse.User.current()?.toPointer())
     query.include("user")
     let list = await query.find();

+ 7 - 7
app-angular/src/modules/lesson/page-chat/page-chat.component.ts

@@ -25,7 +25,7 @@ export class PageChatComponent {
 
   // 加载AI定制对话的20条消息
   async ref() {
-    let query = new Parse.Query('AIPet') // 创建Parse查询对象
+    let query = new Parse.Query('HrmAI') // 创建Parse查询对象
     query.equalTo('user', Parse.User.current()?.id) // 设置查询条件,筛选出当前用户的消息
     query.descending('createdAt') // 按照创建时间降序排序
     query.limit(20) // 设置查询结果的数量上限为20条
@@ -49,22 +49,22 @@ export class PageChatComponent {
       content: this.userInput
     }) // 将用户输入的消息添加到消息列表中
 
-    let obj = Parse.Object.extend('AIPet') // 创建Parse对象
-    let AIPet = new obj() // 创建AIRecipe对象
-    AIPet.set('user', {
+    let obj = Parse.Object.extend('HrmAI') // 创建Parse对象
+    let HrmAI = new obj() // 创建AIRecipe对象
+    HrmAI.set('user', {
       __type: 'Pointer',
       className: '_User',
       objectId: Parse.User.current()?.id
     }) // 设置AIRecipe对象的user字段为当前用户的指针
-    AIPet.set('userMessage', this.userInput) // 设置AIPet对象的userMessage字段为用户输入的消息
+    HrmAI.set('userMessage', this.userInput) // 设置AI对象的userMessage字段为用户输入的消息
 
     this.completion = new TestChatCompletion(this.messageList) // 创建TestChatCompletion对象,并传入消息列表
     this.completion?.createCompletionByStream(async (isComplete: Boolean) => {
       if (isComplete) {
         let currentBackMsg = this.messageList[this.messageList.length - 1]
         console.log(currentBackMsg);
-        AIPet.set('aiMessage', currentBackMsg?.content) // 设置AIPet对象的aiMessage字段为AI助手的回复消息
-        await AIPet.save() // 保存AIPet对象到Parse数据库
+        HrmAI.set('aiMessage', currentBackMsg?.content) // 设置AI对象的aiMessage字段为AI助手的回复消息
+        await HrmAI.save() // 保存AI对象到Parse数据库
         console.log('已保存');
       }
     }) // 通过流式API创建完成对象,并传入回调函数

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

@@ -29,15 +29,15 @@
                         <ng-container *ngFor="let course of courseList; let i = index">
                             <ng-container *ngIf="i % 2 === 0">
                                 <ion-col size="5.5">
-                                        <img alt="Silhouette of mountains" [src]="course?.get('petImg')" />
+                                        <img alt="Silhouette of mountains" [src]="course?.get('img')" />
                                         <ion-card-header>
-                                            <ion-card-title>{{course?.get("petName")}}</ion-card-title>
+                                            <ion-card-title>{{course?.get("name")}}</ion-card-title>
                                         </ion-card-header>
                                 </ion-col>
                                 <ion-col size="5.5" *ngIf="i + 1 < courseList.length">
-                                        <img alt="Silhouette of mountains" [src]="courseList[i + 1].get('petImg')" />
+                                        <img alt="Silhouette of mountains" [src]="courseList[i + 1].get('img')" />
                                         <ion-card-header>
-                                            <ion-card-title>{{courseList[i +1].get("petName")}}</ion-card-title>
+                                            <ion-card-title>{{courseList[i +1].get("name")}}</ion-card-title>
                                         </ion-card-header>
                                 </ion-col>
                             </ng-container>

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

@@ -30,7 +30,7 @@ import { Router } from '@angular/router';
     }
     // 数据加载相关函数
     async getMenuData() {
-      let query = new Parse.Query("PetTest");
+      let query = new Parse.Query("HrmTest");
       query.limit(this.pageSize);
       query.include('courseAuthor')
 

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

@@ -57,7 +57,7 @@
         <ion-item class="comment-list">
             <ion-label>
                 <p class="commentator">啾啾啾啾~</p>
-                <ion-note class="comment-content">啊啊好漂亮好喜欢好心动!这也太可爱了吧</ion-note>
+                <ion-note class="comment-content">第一次有人把座位讲的这么透彻!好聪明,时钟太好理解啦!</ion-note>
             </ion-label>
             <div class="comment-time">
                 <ion-note color="medium">06:11</ion-note>
@@ -66,7 +66,7 @@
         <ion-item class="comment-list">
             <ion-label>
                 <p class="commentator">我一直很幸福</p>
-                <ion-note class="comment-content">好可爱,看着就想撸一撸,给姨姨吸两口 ♥</ion-note>
+                <ion-note class="comment-content">以前的我嗤之以鼻,现在的我逐字分析 ♥</ion-note>
             </ion-label>
             <div class="comment-time">
                 <ion-note color="medium">03:44</ion-note>
@@ -84,7 +84,7 @@
         <ion-item class="comment-list">
             <ion-label>
                 <p class="commentator">裹着心的光</p>
-                <ion-note class="comment-content">哇好可爱啊,帮我问问它喜欢什么颜色的麻袋!!</ion-note>
+                <ion-note class="comment-content">山东基因爆发了!</ion-note>
             </ion-label>
             <div class="comment-time">
                 <ion-note color="medium">Yesterday</ion-note>

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

@@ -33,7 +33,7 @@ export class RecommendDetailComponent {
     })
   }
   async getViewInfoById(id: string) {
-    let query = new Parse.Query("PetRecommend")
+    let query = new Parse.Query("HrmRecommend")
     this.recommend = await query.get(id)
   }
 }

+ 3 - 3
app-angular/src/modules/lesson/science-detail/science-detail.component.html

@@ -16,7 +16,7 @@
         <img alt="科普图" [src]="science?.get('img')" />
         <ion-card-header>
             <ion-card-title>{{science?.get('name')}}</ion-card-title>
-            <ion-card-subtitle>作者:{{science?.get('user')?.get('name')||"爱宠之家FavorPet"}}</ion-card-subtitle>
+            <ion-card-subtitle>作者:{{science?.get('user')?.get('name')||"HRMAI"}}</ion-card-subtitle>
             <ion-card-subtitle>{{science?.get('type')||"科普类别"}}</ion-card-subtitle>
             <ion-card-subtitle>{{science?.get('createdAt')| date: 'YYYY/MM/dd/HH:mm'||"发布时间"}}</ion-card-subtitle>
         </ion-card-header>
@@ -70,7 +70,7 @@
         <ion-item class="comment-list">
             <ion-label>
                 <p class="commentator">Sunrise</p>
-                <ion-note class="comment-content">这份攻略适合新手养宠!!</ion-note>
+                <ion-note class="comment-content">这份攻略适合萌新社畜!!</ion-note>
             </ion-label>
             <div class="comment-time">
                 <ion-note color="medium">Yesterday</ion-note>
@@ -79,7 +79,7 @@
         <ion-item class="comment-list">
             <ion-label>
                 <p class="commentator">不吃香菜</p>
-                <ion-note class="comment-content">很不错,求推荐驱虫药!!</ion-note>
+                <ion-note class="comment-content">很不错,求推荐礼物!!</ion-note>
             </ion-label>
             <div class="comment-time">
                 <ion-note color="medium">Yesterday</ion-note>

+ 1 - 1
app-angular/src/modules/lesson/science-detail/science-detail.component.ts

@@ -38,7 +38,7 @@ export class ScienceDetailComponent {
     })
   }
   async getFoodInfoById(id: string) {
-    let query = new Parse.Query("PetScience")
+    let query = new Parse.Query("HrmScience")
     this.science = await query.get(id)
   }
 

+ 0 - 1
app-angular/src/modules/lesson/user-follow/user-follow.component.ts

@@ -12,7 +12,6 @@ export class UserFollowComponent {
   }
 
   goToAddPage() {
-    console.log(1)
     // this.navCtrl.navigateForward('/add-page'); // 替换/add-page为你要跳转的页面路径
   }
 }