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