|
@@ -1,98 +1,69 @@
|
|
|
<ion-header>
|
|
|
- <ion-toolbar color="light" class="header">
|
|
|
- <ion-searchbar placeholder="搜索"></ion-searchbar>
|
|
|
+ <ion-toolbar color="light">
|
|
|
+ <ion-buttons slot="start">
|
|
|
+ <ion-button>
|
|
|
+ 消息 ({{unreadMessages}})
|
|
|
+ </ion-button>
|
|
|
+ </ion-buttons>
|
|
|
<ion-buttons slot="end">
|
|
|
+ <ion-button (click)="search()">
|
|
|
+ <ion-icon name="search"></ion-icon>
|
|
|
+ </ion-button>
|
|
|
<ion-button>
|
|
|
- <ion-icon name="ellipsis-horizontal"></ion-icon>
|
|
|
+ <ion-icon name="people-outline"></ion-icon>
|
|
|
+ </ion-button>
|
|
|
+ <ion-button (click)="addNewMessage()">
|
|
|
+ <ion-icon name="add"></ion-icon>
|
|
|
</ion-button>
|
|
|
</ion-buttons>
|
|
|
- <ion-button color="light">
|
|
|
- <ion-icon name="document"></ion-icon>
|
|
|
- 我的订单
|
|
|
- </ion-button>
|
|
|
- <ion-button color="light">
|
|
|
- <ion-icon name="cart"></ion-icon>
|
|
|
- 购物车
|
|
|
- </ion-button>
|
|
|
- <ion-button color="light">
|
|
|
- <ion-icon name="ticket"></ion-icon>
|
|
|
- 红包/卡券
|
|
|
- </ion-button>
|
|
|
- <ion-button color="light">
|
|
|
- <ion-icon name="time"></ion-icon>
|
|
|
- 浏览记录
|
|
|
- </ion-button>
|
|
|
</ion-toolbar>
|
|
|
-
|
|
|
</ion-header>
|
|
|
|
|
|
<ion-content>
|
|
|
- <ion-segment [(ngModel)]="segmentModel">
|
|
|
- <ion-segment-button value="aiRecommend">
|
|
|
- AI推荐
|
|
|
- </ion-segment-button>
|
|
|
- <ion-segment-button value="seasonHot">
|
|
|
- 当季热门
|
|
|
- </ion-segment-button>
|
|
|
- <ion-segment-button value="styleChange">
|
|
|
- 风格转换
|
|
|
- </ion-segment-button>
|
|
|
- <ion-segment-button value="selectedProducts">
|
|
|
- 精选商品
|
|
|
- </ion-segment-button>
|
|
|
- <ion-segment-button value="favoriteProducts">
|
|
|
- 收藏商品
|
|
|
- </ion-segment-button>
|
|
|
- </ion-segment>
|
|
|
-
|
|
|
- <!-- Content for each segment -->
|
|
|
- <ion-grid *ngIf="segmentModel === 'aiRecommend'">
|
|
|
- <!-- AI推荐内容 -->
|
|
|
+ <ion-grid>
|
|
|
<ion-row>
|
|
|
- <ion-col size="6" *ngFor="let item of aiRecommendItems">
|
|
|
- <ion-card>
|
|
|
- <img src="{{item.image}}" />
|
|
|
+ <ion-col size="12">
|
|
|
+ <ion-card *ngFor="let message of messages">
|
|
|
+ <ion-card-header>
|
|
|
+ <ion-avatar>
|
|
|
+ <img src="{{message.avatar}}">
|
|
|
+ </ion-avatar>
|
|
|
+ <ion-card-title>{{message.title}}</ion-card-title>
|
|
|
+ <ion-card-subtitle>{{message.time}}</ion-card-subtitle>
|
|
|
+ </ion-card-header>
|
|
|
<ion-card-content>
|
|
|
- <ion-label>{{item.label}}</ion-label>
|
|
|
+ {{message.content}}
|
|
|
</ion-card-content>
|
|
|
</ion-card>
|
|
|
</ion-col>
|
|
|
</ion-row>
|
|
|
</ion-grid>
|
|
|
-
|
|
|
- <ion-grid *ngIf="segmentModel === 'seasonHot'">
|
|
|
- <!-- 当季热门内容 -->
|
|
|
- </ion-grid>
|
|
|
-
|
|
|
- <ion-grid *ngIf="segmentModel === 'styleChange'">
|
|
|
- <!-- 风格转换内容 -->
|
|
|
- </ion-grid>
|
|
|
-
|
|
|
- <ion-grid *ngIf="segmentModel === 'selectedProducts'">
|
|
|
- <!-- 精选商品内容 -->
|
|
|
- </ion-grid>
|
|
|
-
|
|
|
- <ion-grid *ngIf="segmentModel === 'favoriteProducts'">
|
|
|
- <!-- 收藏商品内容 -->
|
|
|
- </ion-grid>
|
|
|
</ion-content>
|
|
|
|
|
|
<ion-footer>
|
|
|
<ion-toolbar color="light">
|
|
|
<ion-buttons slot="start">
|
|
|
<ion-button [class.active]="selectedTab === 'home'" (click)="selectTab('home')">
|
|
|
- <ion-icon name="home"></ion-icon>
|
|
|
+ <ion-button [routerLink]="'/tabs/tab1'" routerDirection="root">
|
|
|
+ <ion-icon name="home"></ion-icon>
|
|
|
+ </ion-button>
|
|
|
</ion-button>
|
|
|
<ion-button [class.active]="selectedTab === 'shop'" (click)="selectTab('shop')">
|
|
|
- <ion-icon name="cart"></ion-icon>
|
|
|
+ <ion-button [routerLink]="'/tabs/tab2'" routerDirection="root">
|
|
|
+ <ion-icon name="cart"></ion-icon>
|
|
|
+ </ion-button>
|
|
|
</ion-button>
|
|
|
</ion-buttons>
|
|
|
<ion-buttons slot="end">
|
|
|
<ion-button [class.active]="selectedTab === 'message'" (click)="selectTab('message')">
|
|
|
- <ion-icon name="chatbox"></ion-icon>
|
|
|
+ <ion-button [routerLink]="'/tabs/tab3'" routerDirection="root">
|
|
|
+ <ion-icon name="chatbox"></ion-icon>
|
|
|
+ </ion-button>
|
|
|
</ion-button>
|
|
|
<ion-button [class.active]="selectedTab === 'profile'" (click)="selectTab('profile')">
|
|
|
- <ion-icon name="person"></ion-icon>
|
|
|
+ <ion-button [routerLink]="'/tabs/tab4'" routerDirection="root">
|
|
|
+ <ion-icon name="person"></ion-icon>
|
|
|
+ </ion-button>
|
|
|
</ion-button>
|
|
|
</ion-buttons>
|
|
|
</ion-toolbar>
|