0225263 пре 4 месеци
родитељ
комит
6406c5d4ab

+ 1 - 1
package-lock.json

@@ -34,7 +34,7 @@
         "@angular-eslint/eslint-plugin-template": "^18.0.0",
         "@angular-eslint/schematics": "^18.0.0",
         "@angular-eslint/template-parser": "^18.0.0",
-        "@angular/cli": "^18.0.0",
+        "@angular/cli": "18.0.7",
         "@angular/compiler-cli": "^18.0.0",
         "@angular/language-service": "^18.0.0",
         "@capacitor/cli": "6.1.0",

+ 1 - 1
package.json

@@ -39,7 +39,7 @@
     "@angular-eslint/eslint-plugin-template": "^18.0.0",
     "@angular-eslint/schematics": "^18.0.0",
     "@angular-eslint/template-parser": "^18.0.0",
-    "@angular/cli": "^18.0.0",
+    "@angular/cli": "18.0.7",
     "@angular/compiler-cli": "^18.0.0",
     "@angular/language-service": "^18.0.0",
     "@capacitor/cli": "6.1.0",

+ 0 - 0
src/app/tab4/assets/avatar.jpg


+ 34 - 9
src/app/tab4/tab4.page.html

@@ -1,15 +1,40 @@
 <ion-header [translucent]="true">
   <ion-toolbar>
-    <ion-title>
-      Tab 4
-    </ion-title>
+    <ion-title>我的</ion-title>
+    <ion-buttons slot="end">
+      <ion-button (click)="openFeedbackPage()">
+        <ion-icon name="chatbubble-ellipses-outline"></ion-icon>
+      </ion-button>
+      <ion-button (click)="openSettingsPage()">
+        <ion-icon name="settings-outline"></ion-icon>
+      </ion-button>
+    </ion-buttons>
   </ion-toolbar>
 </ion-header>
 
-<ion-content [fullscreen]="true">
-  <ion-header collapse="condense">
-    <ion-toolbar>
-      <ion-title size="large">Tab4</ion-title>
-    </ion-toolbar>
-  </ion-header>
+<ion-content>
+  <ion-card>
+    <ion-card-content>
+      <ion-avatar>
+        <img src="https://ionicframework.com/docs/img/demos/avatar.svg" alt="User Avatar">
+      </ion-avatar>
+      <ion-label>登录/注册</ion-label>
+    </ion-card-content>
+  </ion-card>
+  <ion-segment scrollable>
+    <ion-segment-button value="followings">关注的人</ion-segment-button>
+    <ion-segment-button value="creators">创作者中心</ion-segment-button>
+    <ion-segment-button value="ai">AI焕新家</ion-segment-button>
+    <ion-segment-button value="diagnosis">户型诊断</ion-segment-button>
+    <ion-segment-button value="circles">我的圈子</ion-segment-button>
+    <ion-segment-button value="my-followings">我的关注</ion-segment-button>
+    <ion-segment-button value="my-orders">我的订单</ion-segment-button>
+    <ion-segment-button value="decor-assistant">装修助手</ion-segment-button>
+    <ion-segment-button value="apply-verification">申请认证</ion-segment-button>
+  </ion-segment>
+
+  <ion-button>发布</ion-button>
+  <ion-button>收藏</ion-button>
+  <ion-button>点赞</ion-button>
+  <ion-button>浏览</ion-button>
 </ion-content>

+ 21 - 0
src/app/tab4/tab4.page.scss

@@ -0,0 +1,21 @@
+ion-card {
+    margin: 10px;
+  }
+  
+  ion-card-content {
+    display: flex;
+    align-items: center;
+  }
+  
+  ion-avatar {
+    margin-right: 10px;
+  }
+  
+  ion-label {
+    font-weight: bold;
+  }
+  
+  ion-button {
+    margin: 5px;
+  }
+  

+ 11 - 1
src/app/tab4/tab4.page.ts

@@ -1,4 +1,5 @@
 import { Component, OnInit } from '@angular/core';
+import { NavController } from '@ionic/angular';
 
 @Component({
   selector: 'app-tab4',
@@ -7,9 +8,18 @@ import { Component, OnInit } from '@angular/core';
 })
 export class Tab4Page implements OnInit {
 
-  constructor() { }
+  constructor(private navCtrl: NavController) {}
+
+  openFeedbackPage() {
+    // 打开反馈页面
+  }
+
+  openSettingsPage() {
+    // 打开设置页面
+  }
 
   ngOnInit() {
   }
 
 }
+