|
@@ -357,7 +357,8 @@ export class Tab2Page {
|
|
|
// 添加更多设计师信息
|
|
|
];
|
|
|
selectedDesignerSegment: string = 'designer';
|
|
|
-
|
|
|
+ isFollowing: boolean = false;
|
|
|
+
|
|
|
constructor(private sanitizer: DomSanitizer) {}
|
|
|
selectedCompany: any;
|
|
|
|
|
@@ -368,7 +369,10 @@ toggleDetails(company: any) {
|
|
|
this.selectedCompany = company;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+// 在组件类中实现一个方法来切换关注状态
|
|
|
+toggleFollow() {
|
|
|
+ this.isFollowing = !this.isFollowing;
|
|
|
+}
|
|
|
formatHtmlContent(content: string): SafeHtml {
|
|
|
const formattedContent = content.replace(/\n/g, '<br>');
|
|
|
return this.sanitizer.bypassSecurityTrustHtml(formattedContent);
|