|
|
@@ -1,82 +1,71 @@
|
|
|
<ion-header [translucent]="true">
|
|
|
<ion-toolbar>
|
|
|
- <ion-title>
|
|
|
- 生活智伴
|
|
|
- </ion-title>
|
|
|
+ <ion-buttons slot="start">
|
|
|
+ <ion-icon name="logo-ionic"></ion-icon> <!-- Logo -->
|
|
|
+ </ion-buttons>
|
|
|
+ <ion-title>生活智伴</ion-title>
|
|
|
+ <ion-buttons slot="end">
|
|
|
+ <ion-searchbar placeholder="搜索日程、建议等"></ion-searchbar>
|
|
|
+ <ion-button [routerLink]="['/profile']">
|
|
|
+ <ion-icon name="person-circle"></ion-icon> <!-- 个人中心图标 -->
|
|
|
+ </ion-button>
|
|
|
+ </ion-buttons>
|
|
|
</ion-toolbar>
|
|
|
- <ion-header>
|
|
|
- <ion-toolbar>
|
|
|
- <ion-buttons slot="start">
|
|
|
- <ion-icon name="logo-ionic"></ion-icon> <!-- Logo -->
|
|
|
- </ion-buttons>
|
|
|
- <ion-title>生活智伴</ion-title>
|
|
|
- <ion-buttons slot="end">
|
|
|
- <ion-searchbar placeholder="搜索日程、建议等"></ion-searchbar>
|
|
|
- <ion-button [routerLink]="['/profile']">
|
|
|
- <ion-icon name="person"></ion-icon> <!-- 个人中心图标 -->
|
|
|
- </ion-button>
|
|
|
- </ion-buttons>
|
|
|
- </ion-toolbar>
|
|
|
- </ion-header>
|
|
|
+</ion-header>
|
|
|
|
|
|
- <ion-content>
|
|
|
- <div class="today-overview">
|
|
|
- <div class="date">
|
|
|
- <h2>2024年11月30日</h2>
|
|
|
- </div>
|
|
|
- <div class="weather">
|
|
|
- <ion-icon name="sunny"></ion-icon> <!-- 天气图标 -->
|
|
|
- <span>20°C,晴</span>
|
|
|
- </div>
|
|
|
- <div class="todo-list">
|
|
|
- <h3>今日待办事项</h3>
|
|
|
- <ul>
|
|
|
- <li>1. 会议</li>
|
|
|
- <li>2. 买菜</li>
|
|
|
- <li>3. 健身</li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
+<ion-content>
|
|
|
+ <div class="today-overview">
|
|
|
+ <div class="date">
|
|
|
+ <h2>2024年11月30日</h2>
|
|
|
</div>
|
|
|
- <ion-card>
|
|
|
- <ion-card-header>
|
|
|
- <ion-card-title>个性化推荐</ion-card-title>
|
|
|
- </ion-card-header>
|
|
|
- <ion-card-content>
|
|
|
- <h4>穿搭建议:</h4>
|
|
|
- <p>今天适合穿轻便外套和牛仔裤</p>
|
|
|
- <h4>饮食建议:</h4>
|
|
|
- <p>午餐推荐:沙拉和鸡胸肉</p>
|
|
|
- <h4>出行建议:</h4>
|
|
|
- <p>如果出门,建议骑自行车,避开高峰时段</p>
|
|
|
- </ion-card-content>
|
|
|
- </ion-card>
|
|
|
- <ion-list>
|
|
|
+ <div class="weather">
|
|
|
+ <ion-icon name="sunny"></ion-icon> <!-- 天气图标 -->
|
|
|
+ <span>20°C,晴</span>
|
|
|
+ </div>
|
|
|
+ <div class="todo-list">
|
|
|
+ <h3>今日待办事项</h3>
|
|
|
+ <ul>
|
|
|
+ <li *ngFor="let reminder of reminders">{{ reminder }}</li>
|
|
|
+ </ul>
|
|
|
<ion-item>
|
|
|
- <ion-label>提醒事项</ion-label>
|
|
|
- <ion-button slot="end" (click)="addReminder()">
|
|
|
- <ion-icon name="add-circle"></ion-icon> <!-- 添加提醒按钮 -->
|
|
|
+ <ion-input placeholder="添加新提醒" [(ngModel)]="reminderInput"></ion-input> <!-- 独立的提醒输入框 -->
|
|
|
+ <ion-button (click)="addReminder()">
|
|
|
+ <ion-icon name="add"></ion-icon> <!-- 添加提醒按钮 -->
|
|
|
</ion-button>
|
|
|
</ion-item>
|
|
|
- <ion-item *ngFor="let reminder of reminders">
|
|
|
- <ion-label>{{ reminder }}</ion-label>
|
|
|
- </ion-item>
|
|
|
- </ion-list>
|
|
|
- <ion-card>
|
|
|
- <ion-card-header>
|
|
|
- <ion-card-title>生活助手</ion-card-title>
|
|
|
- </ion-card-header>
|
|
|
- <ion-card-content>
|
|
|
- <div class="chat-box">
|
|
|
- <div class="chat-message" *ngFor="let message of chatMessages">
|
|
|
- <p>{{ message }}</p>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <ion-card>
|
|
|
+ <ion-card-header>
|
|
|
+ <ion-card-title>个性化推荐</ion-card-title>
|
|
|
+ </ion-card-header>
|
|
|
+ <ion-card-content>
|
|
|
+ <h4>穿搭建议:</h4>
|
|
|
+ <p>今天适合穿轻便外套和牛仔裤</p>
|
|
|
+ <h4>饮食建议:</h4>
|
|
|
+ <p>午餐推荐:沙拉和鸡胸肉</p>
|
|
|
+ <h4>出行建议:</h4>
|
|
|
+ <p>如果出门,建议骑自行车,避开高峰时段</p>
|
|
|
+ </ion-card-content>
|
|
|
+ </ion-card>
|
|
|
+
|
|
|
+ <ion-card>
|
|
|
+ <ion-card-header>
|
|
|
+ <ion-card-title>生活助手</ion-card-title>
|
|
|
+ </ion-card-header>
|
|
|
+ <ion-card-content>
|
|
|
+ <div class="chat-box">
|
|
|
+ <div class="chat-message" *ngFor="let message of chatMessages">
|
|
|
+ <p>{{ message }}</p>
|
|
|
</div>
|
|
|
- <ion-item>
|
|
|
- <ion-input placeholder="请问我可以帮您什么?" [(ngModel)]="userInput"></ion-input>
|
|
|
- <ion-button (click)="sendMessage()">
|
|
|
- <ion-icon name="send"></ion-icon>
|
|
|
- </ion-button>
|
|
|
- </ion-item>
|
|
|
- </ion-card-content>
|
|
|
- </ion-card>
|
|
|
- </ion-content>
|
|
|
+ </div>
|
|
|
+ <ion-item>
|
|
|
+ <ion-input placeholder="请问我可以帮您什么?" [(ngModel)]="chatInput"></ion-input> <!-- 独立的聊天输入框 -->
|
|
|
+ <ion-button (click)="sendMessage()">
|
|
|
+ <ion-icon name="checkmark"></ion-icon> <!-- 发送消息按钮 -->
|
|
|
+ </ion-button>
|
|
|
+ </ion-item>
|
|
|
+ </ion-card-content>
|
|
|
+ </ion-card>
|
|
|
+</ion-content>
|