|
@@ -1,6 +1,6 @@
|
|
|
import { Component } from '@angular/core';
|
|
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
|
-
|
|
|
+import { NavController } from '@ionic/angular';
|
|
|
@Component({
|
|
|
selector: 'app-tab2',
|
|
|
templateUrl: 'tab2.page.html',
|
|
@@ -359,7 +359,7 @@ export class Tab2Page {
|
|
|
selectedDesignerSegment: string = 'designer';
|
|
|
isFollowing: boolean = false;
|
|
|
|
|
|
- constructor(private sanitizer: DomSanitizer) {}
|
|
|
+ constructor(private sanitizer: DomSanitizer,private navCtrl: NavController) {}
|
|
|
selectedCompany: any;
|
|
|
|
|
|
toggleDetails(company: any) {
|
|
@@ -369,6 +369,9 @@ toggleDetails(company: any) {
|
|
|
this.selectedCompany = company;
|
|
|
}
|
|
|
}
|
|
|
+openConsultPage(){
|
|
|
+ this.navCtrl.navigateForward('/consult');
|
|
|
+}
|
|
|
// 在组件类中实现一个方法来切换关注状态
|
|
|
toggleFollow() {
|
|
|
this.isFollowing = !this.isFollowing;
|