|
@@ -10,10 +10,11 @@
|
|
|
<ion-refresher-content></ion-refresher-content>
|
|
|
</ion-refresher>
|
|
|
<!-- 用户登录状态 -->
|
|
|
- <ion-card>
|
|
|
+
|
|
|
<!-- 未登录 -->
|
|
|
@if(!currentUser?.id){
|
|
|
- <ion-content>
|
|
|
+ <ion-card >
|
|
|
+ <ion-content class="login">
|
|
|
<ion-card class="login-card">
|
|
|
<ion-card-header>
|
|
|
<ion-card-title>请登录</ion-card-title>
|
|
@@ -25,56 +26,128 @@
|
|
|
</div>
|
|
|
</ion-card>
|
|
|
</ion-content>
|
|
|
- }
|
|
|
- <!-- 已登录 -->
|
|
|
- @if(currentUser?.id){
|
|
|
- <ion-card-header class="card-header">
|
|
|
- <img [src]="currentUser?.get('avatar')" onerror="this.src='https://app.fmode.cn/dev/jxnu/202226701019/头像示例.png';" alt="图片加载失败" class="avatar" />
|
|
|
- <div class="user-info">
|
|
|
- <ion-card-title>账号:{{currentUser?.get("username")}}</ion-card-title>
|
|
|
- <ion-card-subtitle>
|
|
|
- 姓名: {{currentUser?.get("realname") || "-"}}
|
|
|
- 性别: {{currentUser?.get("gender") || "-"}}
|
|
|
- 年龄: {{currentUser?.get("age") || "-"}}
|
|
|
- </ion-card-subtitle>
|
|
|
- </div>
|
|
|
- </ion-card-header>
|
|
|
- }
|
|
|
<ion-card-content>
|
|
|
- @if(!currentUser?.id){
|
|
|
<ion-button expand="block" (click)="signup()" color="success">注册</ion-button>
|
|
|
<ion-button expand="block" (click)="login()" color="success">登录</ion-button>
|
|
|
- }
|
|
|
- @if(currentUser?.id){
|
|
|
- <ion-button expand="block" (click)="editUser()" color="success">编辑资料</ion-button>
|
|
|
- <ion-button expand="block" (click)="logout()" color="medium">登出</ion-button>
|
|
|
- }
|
|
|
- </ion-card-content>
|
|
|
- </ion-card>
|
|
|
- @if(currentUser?.id){
|
|
|
- <ion-card>
|
|
|
- <ion-card-header>
|
|
|
- <ion-card-title>个性头像生成器</ion-card-title>
|
|
|
- <ion-card-subtitle>点击创建个性化头像</ion-card-subtitle>
|
|
|
- </ion-card-header>
|
|
|
- <ion-card-content>
|
|
|
- <ion-button expand="block" (click)="goToAvatar()" color="success">前往生成</ion-button>
|
|
|
</ion-card-content>
|
|
|
- </ion-card>
|
|
|
+ </ion-card>
|
|
|
}
|
|
|
+ <!-- 已登录 -->
|
|
|
@if(currentUser?.id){
|
|
|
- <ion-card class="memo-card">
|
|
|
- <h2 class="memo-title">健康备忘录</h2>
|
|
|
- <p class="memo-description">写下您问诊的医生名或者心动的科普知识,便于您下次查找(点击标签可删除)</p>
|
|
|
- <app-edit-tag (onTagChange)="setTagsValue($event)"></app-edit-tag>
|
|
|
+ @if(pageNum==0){
|
|
|
+ <div class="container">
|
|
|
+ <div class="top-section">
|
|
|
+ <ion-button expand="block" fill="outline" (click)="changeNum1()" color="dark">简约朴素-模块型</ion-button>
|
|
|
+ <ion-label class="zi1">点击进入此主题页面</ion-label>
|
|
|
+ </div>
|
|
|
+ <div class="bottom-section">
|
|
|
+ <ion-button expand="block" fill="outline" (click)="changeNum2()" color="light">优雅精致-层次型</ion-button>
|
|
|
+ <ion-label class="zi2">点击进入此主题页面</ion-label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ }
|
|
|
+ @if(pageNum==1){
|
|
|
+ <ion-card >
|
|
|
+ <ion-card-header class="card-header">
|
|
|
+ <img [src]="currentUser?.get('avatar')" onerror="this.src='https://app.fmode.cn/dev/jxnu/202226701019/头像示例.png';" alt="图片加载失败" class="avatar" />
|
|
|
+ <div class="user-info">
|
|
|
+ <ion-card-title>账号:{{currentUser?.get("username")}}</ion-card-title>
|
|
|
+ <ion-card-subtitle>
|
|
|
+ 姓名: {{currentUser?.get("realname") || "-"}}
|
|
|
+ 性别: {{currentUser?.get("gender") || "-"}}
|
|
|
+ 年龄: {{currentUser?.get("age") || "-"}}
|
|
|
+ </ion-card-subtitle>
|
|
|
+ </div>
|
|
|
+ </ion-card-header>
|
|
|
+ <ion-card-content>
|
|
|
+ <ion-button expand="block" (click)="editUser()" color="success">编辑资料</ion-button>
|
|
|
+ <ion-button expand="block" (click)="changeNum2()">切换主题</ion-button>
|
|
|
+ <ion-button expand="block" (click)="logout()" color="medium">登出</ion-button>
|
|
|
+ </ion-card-content>
|
|
|
+ </ion-card>
|
|
|
|
|
|
- <h2 class="memo-title">收藏夹</h2>
|
|
|
- <ul class="tag-list">
|
|
|
- @for(tag of editTags; track tag;){
|
|
|
- <li class="tag-item">{{tag}}</li>
|
|
|
- }
|
|
|
- </ul>
|
|
|
- </ion-card>
|
|
|
- }
|
|
|
+ <ion-card >
|
|
|
+ <ion-card-header>
|
|
|
+ <ion-card-title>个性头像生成器</ion-card-title>
|
|
|
+ <ion-card-subtitle>点击创建个性化头像</ion-card-subtitle>
|
|
|
+ </ion-card-header>
|
|
|
+ <ion-card-content>
|
|
|
+ <ion-button expand="block" (click)="goToAvatar()" color="success">前往生成</ion-button>
|
|
|
+ </ion-card-content>
|
|
|
+ </ion-card>
|
|
|
|
|
|
+ <ion-card class="memo-card" >
|
|
|
+ <h2 class="memo-title">健康备忘录</h2>
|
|
|
+ <p class="memo-description">写下您问诊的医生名或者心动的科普知识,便于您下次查找</p>
|
|
|
+ <app-edit-tag (onTagChange)="setTagsValue($event)"></app-edit-tag>
|
|
|
+ <h2 class="memo-title">收藏夹</h2>
|
|
|
+ <ul class="tag-list">
|
|
|
+ @for(tag of editTags; track tag;){
|
|
|
+ <li class="tag-item">{{tag}}</li>
|
|
|
+ }
|
|
|
+ </ul>
|
|
|
+ </ion-card>
|
|
|
+ }
|
|
|
+ @if(pageNum==2){
|
|
|
+ <ion-content class="ye2">
|
|
|
+ <ion-card class="custom-card">
|
|
|
+ <ion-avatar (click)="editUser()">
|
|
|
+ <img [src]="currentUser?.get('avatar')" onerror="this.src='https://app.fmode.cn/dev/jxnu/202226701019/头像示例.png';" alt="图片加载失败" class="avatar" />
|
|
|
+ </ion-avatar>
|
|
|
+ <ion-label>{{currentUser?.get("realname") || "-"}}</ion-label>
|
|
|
+ </ion-card>
|
|
|
+
|
|
|
+ <ion-list>
|
|
|
+ <ion-item>
|
|
|
+ <ion-icon name="person-circle" slot="start" ></ion-icon>
|
|
|
+ <ion-label (click)="editUser()">我的信息</ion-label>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-icon name="image" slot="start"></ion-icon>
|
|
|
+ <ion-label>头像生成</ion-label>
|
|
|
+ <ion-button slot="end" fill="outline" size="small" color="success" (click)="goToAvatar()">前往生成</ion-button>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-icon name="document" slot="start"></ion-icon>
|
|
|
+ <ion-label (click)="goToHealth()">健康档案</ion-label>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-icon name="location" slot="start"></ion-icon>
|
|
|
+ <ion-label>我的地址</ion-label>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-icon name="card" slot="start"></ion-icon>
|
|
|
+ <ion-label>我的优惠券</ion-label>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-icon name="bag" slot="start"></ion-icon>
|
|
|
+ <ion-label>我的套餐包</ion-label>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-icon name="chatbox" slot="start"></ion-icon>
|
|
|
+ <ion-label>联系客服</ion-label>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-icon name="call" slot="start"></ion-icon>
|
|
|
+ <ion-label>绑定手机</ion-label>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-icon name="folder" slot="start"></ion-icon>
|
|
|
+ <ion-label>我的收藏<app-edit-tag (onTagChange)="setTagsValue($event)"></app-edit-tag></ion-label>
|
|
|
+ </ion-item>
|
|
|
+ </ion-list>
|
|
|
+
|
|
|
+ <ion-item>
|
|
|
+ <ion-label>关注公众号</ion-label>
|
|
|
+ <ion-label>每日医生直播义诊早知道~</ion-label>
|
|
|
+ <ion-button slot="end" fill="solid" size="small" color="success">立即前往</ion-button>
|
|
|
+ </ion-item>
|
|
|
+ <ion-button expand="block" fill="outline" (click)="changeNum1()" color="default">切换主题</ion-button>
|
|
|
+ <ion-button expand="block" fill="outline" (click)="logout()" color="medium">登出</ion-button>
|
|
|
+
|
|
|
+
|
|
|
+ </ion-content>
|
|
|
+ }
|
|
|
+}
|
|
|
</ion-content>
|