Просмотр исходного кода

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

hid_msrpuwgj56ccf29 1 год назад
Родитель
Сommit
8d34a1ec24

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

@@ -0,0 +1,42 @@
+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("SqzRoleInfo")
+    this.attention = await query.get(id)
+  }
+
+}

Разница между файлами не показана из-за своего большого размера
+ 13 - 0
app-angular/src/modules/lesson/page-mine/nav-tabs/nav-tabs.component.html


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

@@ -35,5 +35,4 @@ export class TheyDetailComponent {
   //   }
   //   return ""
   // }
-
 }

Некоторые файлы не были показаны из-за большого количества измененных файлов