|
@@ -1,111 +1,81 @@
|
|
|
<ion-header>
|
|
|
- <ion-toolbar color="" class="header">
|
|
|
- <ion-buttons slot="start">
|
|
|
- <ion-button>
|
|
|
- <ion-icon name="menu"></ion-icon>
|
|
|
- </ion-button>
|
|
|
- </ion-buttons>
|
|
|
- <ion-title>User Profile</ion-title>
|
|
|
+ <ion-toolbar color="light">
|
|
|
+ <ion-searchbar placeholder="搜索"></ion-searchbar>
|
|
|
<ion-buttons slot="end">
|
|
|
<ion-button>
|
|
|
- <ion-icon name="scan"></ion-icon>
|
|
|
- </ion-button>
|
|
|
- <ion-button>
|
|
|
- <ion-icon name="settings"></ion-icon>
|
|
|
+ <ion-icon name="ellipsis-horizontal"></ion-icon>
|
|
|
</ion-button>
|
|
|
</ion-buttons>
|
|
|
+
|
|
|
</ion-toolbar>
|
|
|
+ <div class="user-actions">
|
|
|
+ <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>
|
|
|
+ </div>
|
|
|
+
|
|
|
</ion-header>
|
|
|
|
|
|
<ion-content>
|
|
|
- <div class="user-profile">
|
|
|
- <div class="user-info">
|
|
|
- <img src="assets/user-avatar.jpg" alt="User Avatar">
|
|
|
- <h3>不吃粉面菜蛋</h3>
|
|
|
- <p>ID:0210033</p>
|
|
|
- <p>个人简介</p>
|
|
|
- <div class="info-icons">
|
|
|
- <div class="icon-wrapper">
|
|
|
- <ion-icon name="male"></ion-icon>
|
|
|
- <span>21</span>
|
|
|
- </div>
|
|
|
- <div class="action-buttons">
|
|
|
- <span>关注 104</span>
|
|
|
- <span>粉丝 62</span>
|
|
|
- <span>获赞 896</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="user-actions">
|
|
|
- <ion-button color ="rgba(255, 255, 255, 0.4)">
|
|
|
- <ion-icon name="cart"></ion-icon>
|
|
|
- 购物车
|
|
|
- </ion-button>
|
|
|
- <ion-button color="rgba(255, 255, 255, 0.4)">
|
|
|
- <ion-icon name="document"></ion-icon>
|
|
|
- 我的订单
|
|
|
- </ion-button>
|
|
|
- <ion-button color="rgba(255, 255, 255, 0.4)">
|
|
|
- <ion-icon name="time"></ion-icon>
|
|
|
- 浏览历史
|
|
|
- </ion-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="content">
|
|
|
- <ion-segment>
|
|
|
- <ion-segment-button value="works" checked>
|
|
|
- 作品
|
|
|
- </ion-segment-button>
|
|
|
- <ion-segment-button value="likes">
|
|
|
- 点赞
|
|
|
- </ion-segment-button>
|
|
|
- <ion-segment-button value="favorites">
|
|
|
- 收藏
|
|
|
- </ion-segment-button>
|
|
|
- </ion-segment>
|
|
|
+ <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>
|
|
|
|
|
|
- <ion-grid>
|
|
|
- <ion-row>
|
|
|
- <ion-col size="4" *ngFor="let item of items">
|
|
|
- <div class="image-container">
|
|
|
- <ion-card>
|
|
|
- <img src="{{item.image}}" alt="Item Image">
|
|
|
- <ion-card-content>
|
|
|
- <ion-icon name="heart"></ion-icon> {{item.likes}}
|
|
|
- </ion-card-content>
|
|
|
- </ion-card>
|
|
|
- </div>
|
|
|
- </ion-col>
|
|
|
- </ion-row>
|
|
|
- </ion-grid>
|
|
|
- </div>
|
|
|
-</ion-content>
|
|
|
+ <!-- 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-footer>
|
|
|
- <ion-toolbar color="light">
|
|
|
- <ion-buttons slot="start">
|
|
|
- <ion-button [class.active]="selectedTab === 'home'" (click)="selectTab('home')">
|
|
|
- <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-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-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-button [routerLink]="'/tabs/tab4'" routerDirection="root">
|
|
|
- <ion-icon name="person"></ion-icon>
|
|
|
- </ion-button>
|
|
|
- </ion-button>
|
|
|
- </ion-buttons>
|
|
|
- </ion-toolbar>
|
|
|
-</ion-footer>
|
|
|
+ <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>
|