|
@@ -97,24 +97,25 @@
|
|
|
</div>
|
|
|
</body>
|
|
|
</html> -->
|
|
|
+
|
|
|
<ion-header [translucent]="true">
|
|
|
<ion-toolbar>
|
|
|
<!-- 顶部导航栏 -->
|
|
|
- <ion-segment [(ngModel)]="selectedTab" scrollable>
|
|
|
- <ion-segment-button value="recommend" class="active-tab">
|
|
|
- <ion-label>推荐</ion-label>
|
|
|
- </ion-segment-button>
|
|
|
- <ion-segment-button value="vip">
|
|
|
- <ion-icon name="crown-outline" slot="start"></ion-icon>
|
|
|
- <ion-label>会员</ion-label>
|
|
|
- <ion-badge *ngIf="!isVip" color="warning" slot="end">限免试用</ion-badge>
|
|
|
- </ion-segment-button>
|
|
|
- <ion-segment-button value="camp">
|
|
|
- <ion-icon name="flame-outline" slot="start"></ion-icon>
|
|
|
- <ion-label>减脂营</ion-label>
|
|
|
- <ion-badge *ngIf="hasCampActivity" color="danger" slot="end"></ion-badge>
|
|
|
- </ion-segment-button>
|
|
|
- </ion-segment>
|
|
|
+ <ion-segment [(ngModel)]="selectedTab" (ionChange)="segmentChanged()" scrollable>
|
|
|
+ <ion-segment-button value="recommend" [class.active-tab]="selectedTab === 'recommend'">
|
|
|
+ <ion-label>推荐</ion-label>
|
|
|
+ </ion-segment-button>
|
|
|
+ <ion-segment-button value="vip" [class.active-tab]="selectedTab === 'vip'">
|
|
|
+ <ion-icon name="crown" slot="start"></ion-icon>
|
|
|
+ <ion-label>会员</ion-label>
|
|
|
+ <ion-badge *ngIf="!isVip" color="warning" slot="end">限免试用</ion-badge>
|
|
|
+ </ion-segment-button>
|
|
|
+ <ion-segment-button value="camp" [class.active-tab]="selectedTab === 'camp'">
|
|
|
+ <ion-icon name="flame" slot="start"></ion-icon>
|
|
|
+ <ion-label>减脂营</ion-label>
|
|
|
+ <ion-badge *ngIf="hasCampActivity" color="danger" slot="end"></ion-badge>
|
|
|
+ </ion-segment-button>
|
|
|
+</ion-segment>
|
|
|
|
|
|
<ion-buttons slot="end">
|
|
|
<ion-button (click)="openNotifications()">
|