123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <ion-header>
- <ion-toolbar color="light" class="header">
- <ion-searchbar placeholder="搜索"></ion-searchbar>
- <ion-buttons slot="end">
- <ion-button>
- <ion-icon name="ellipsis-horizontal"></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-row>
- <ion-col size="6" *ngFor="let item of aiRecommendItems">
- <ion-card>
- <img src="{{item.image}}" />
- <ion-card-content>
- <ion-label>{{item.label}}</ion-label>
- </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>
- <ion-button [class.active]="selectedTab === 'shop'" (click)="selectTab('shop')">
- <ion-icon name="cart"></ion-icon>
- </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>
- <ion-button [class.active]="selectedTab === 'profile'" (click)="selectTab('profile')">
- <ion-icon name="person"></ion-icon>
- </ion-button>
- </ion-buttons>
- </ion-toolbar>
- </ion-footer>
|