flowaaa vor 1 Jahr
Ursprung
Commit
7362816694

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

@@ -1,5 +1,5 @@
 import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { AttentionDetailComponent } from './rattention-detail.component';
+import { AttentionDetailComponent } from './attention-detail.component';
 
 
 describe('AttentionDetailComponent', () => {

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

@@ -35,7 +35,7 @@ export class AttentionDetailComponent {
     })
   }
   async getRoleInfoById(id: string) {
-    let query = new Parse.Query("SqzRoleInfo")
+    let query = new Parse.Query("PetAttention")
     this.attention = await query.get(id)
   }
 

+ 0 - 42
app-angular/src/modules/lesson/attention-detail/rattention-detail.component.ts

@@ -1,42 +0,0 @@
-import { Component } from '@angular/core';
-
-// 引入服务
-import { ActivatedRoute } from '@angular/router';
-
-// 引入Parse第三方库
-import * as Parse from "parse"
-(Parse as any).serverURL = "http://metapunk.cn:9999/parse"
-Parse.initialize("dev")
-
-
-@Component({
-  selector: 'app-attention-detail',
-  templateUrl: './attention-detail.component.html',
-  styleUrls: ['./attention-detail.component.scss']
-})
-export class AttentionDetailComponent {
-
-  //添加评论
-  comments: string[] = [];
-  comment: string = '';
-  currentDate = new Date();
-  addComment() {
-    console.log(this.comment)
-    if (this.comment.trim() !== '') {
-      this.comments.push(this.comment);
-      this.comment = '';
-    }
-  }
-
-  attention: Parse.Object | undefined;
-  constructor(private router: ActivatedRoute) {
-    this.router.queryParams.subscribe(param => {
-      this.getRoleInfoById(param["id"])
-    })
-  }
-  async getRoleInfoById(id: string) {
-    let query = new Parse.Query("PetAttention")
-    this.attention = await query.get(id)
-  }
-
-}

+ 1 - 1
app-angular/src/modules/lesson/community/community-routing.module.ts

@@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';
 import { RouterModule, Routes } from '@angular/router';
 import { ShareComponent } from '../share/share.component';
 import { RecommendDetailComponent } from '../recommend-detail/recommend-detail.component';
-import { AttentionDetailComponent } from '../attention-detail/rattention-detail.component';
+import { AttentionDetailComponent } from '../attention-detail/attention-detail.component';
 import { ScienceDetailComponent } from '../science-detail/science-detail.component';
 
 const routes: Routes = [

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

@@ -5,7 +5,7 @@ import { IonicModule } from '@ionic/angular';
 
 import { CommunityRoutingModule } from './community-routing.module';
 import { ScienceDetailComponent } from '../science-detail/science-detail.component';
-import { AttentionDetailComponent } from '../attention-detail/rattention-detail.component';
+import { AttentionDetailComponent } from '../attention-detail/attention-detail.component';
 import { RecommendDetailComponent } from '../recommend-detail/recommend-detail.component';
 
 @NgModule({

+ 1 - 1
app-angular/src/modules/lesson/lesson-routing.module.ts

@@ -7,7 +7,7 @@ import { TheyDetailComponent } from './they-detail/they-detail.component';
 import { CommunityComponent } from './community/community.component';
 import { ScienceDetailComponent } from './science-detail/science-detail.component';
 import { ShareComponent } from './share/share.component';
-import { AttentionDetailComponent } from './attention-detail/rattention-detail.component';
+import { AttentionDetailComponent } from './attention-detail/attention-detail.component';
 import { RecommendDetailComponent } from './recommend-detail/recommend-detail.component';
 import { UserFollowComponent } from './user-follow/user-follow.component';
 import { UserTagComponent } from './user-tag/user-tag.component';

+ 1 - 1
app-angular/src/modules/lesson/lesson.module.ts

@@ -12,7 +12,7 @@ import { CommunityComponent } from './community/community.component';
 import { ScienceDetailComponent } from './science-detail/science-detail.component';
 import { ShareComponent } from './share/share.component';
 import { RecommendDetailComponent } from './recommend-detail/recommend-detail.component';
-import { AttentionDetailComponent } from './attention-detail/rattention-detail.component';
+import { AttentionDetailComponent } from './attention-detail/attention-detail.component';
 import { UserFollowComponent } from './user-follow/user-follow.component';
 import { UserTagComponent } from './user-tag/user-tag.component';
 import { UserCollectionComponent } from './user-collection/user-collection.component';