123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 |
- <ion-header>
- <ion-toolbar>
- <ion-title>我的</ion-title>
- <!-- 编辑信息按钮. -->
- <ion-buttons slot="end">
- <ion-button routerLink="/user/info">
- <ion-icon slot="start" name="create-outline"></ion-icon>
- </ion-button>
- <ion-button id="myMenu">
- <ion-icon name="menu-outline"></ion-icon>
- </ion-button>
- <ion-popover trigger="myMenu" triggerAction="click">
- <ng-template>
- <ion-list>
- <ion-item [button]="true">
- <ion-icon name="scan-outline" size="small"></ion-icon>
- <ion-text>扫一扫</ion-text>
- </ion-item>
- <ion-item [button]="true">
- <ion-icon name="share-social-outline" size="small"></ion-icon>
- <ion-text>分享</ion-text>
- </ion-item>
- <ion-item [button]="true">
- <ion-icon name="pulse-outline" size="small"></ion-icon>
- <ion-text>客服</ion-text>
- </ion-item>
- <ion-item [button]="true">
- <ion-icon name="settings-outline" size="small"></ion-icon>
- <ion-text>设置</ion-text>
- </ion-item>
- </ion-list>
- </ng-template>
- </ion-popover>
- </ion-buttons>
- </ion-toolbar>
- </ion-header>
- <ion-content color="light">
- <!-- 基本信息栏 -->
- <ion-card>
- <ion-list [inset]="true">
- <ion-item lines="full">
- <ion-avatar slot="start">
- <img alt="头像" src="../../assets/1.jpg" />
- </ion-avatar>
- <ion-label>
- {{currentUser?.get("name") || '昵称'}}
- </ion-label>
- <ion-buttons slot="end">
- <ion-button>
- <ion-icon name="heart-outline"></ion-icon>
- <ion-note>{{currentUser?.get("like") || '99'}}</ion-note>
- </ion-button>
- </ion-buttons>
- </ion-item>
- <ion-item lines="none">
- <ion-badge slot="start">{{currentUser?.get("tag") || '标签'}}</ion-badge>
- </ion-item>
- <ion-item lines="none">
- <ion-label color="medium">
- {{currentUser?.get("desc") || '介绍一下自己吧'}}
- </ion-label>
- </ion-item>
- </ion-list>
- </ion-card>
- <!-- 列表 -->
-
- <ion-list [inset]="true">
- <ion-button *ngIf="!currentUser?.id" expand="block" routerLink="/user/login">登录</ion-button>
- <ion-button *ngIf="currentUser?.id" fill="clear" expand="block" (click)="logout()">登出</ion-button>
- </ion-list>
- <ion-card class="myList">
- <ion-list [inset]="true">
- <ion-item button detail="true" routerLink="/lesson/me/userFollow">
- <ion-icon name="people-sharp"></ion-icon>
- <ion-label>
- <ion-note>人物</ion-note>
-
- </ion-label>
- </ion-item>
- <ion-item button detail="true" routerLink="/lesson/me/userTag">
- <ion-icon name="gift"></ion-icon>
- <ion-label>
- <ion-note>礼物</ion-note>
- </ion-label>
- </ion-item>
- <ion-item button detail="true" routerLink="/lesson/me/userCollection">
- <ion-icon name="bulb"></ion-icon>
- <ion-label>
- <ion-note>想法</ion-note>
- </ion-label>
- </ion-item>
- </ion-list>
- </ion-card>
- <ion-accordion-group [multiple]="true" [value]="['first', 'third']">
- <ion-accordion value="first">
- <ion-item slot="header" color="light">
-
- <ion-label class="larger-font">🔔提醒</ion-label>
- </ion-item>
- <div class="ion-padding" slot="content">
- <ion-item>
- <ion-avatar slot="start">
- <img alt="头像" src="../../assets/2.jpg" />
- </ion-avatar>
- <ion-label><span class="bold-text">葱葱</span><br>
- <span class="small-orange-text">生日</span>🎂<br>
- <span class="small-red-text">2024-7-01</span> </ion-label>
- </ion-item>
- <ion-item>
- <ion-avatar slot="start">
- <img alt="头像" src="../../assets/3.jpg" />
- </ion-avatar>
- <ion-label>
- <span class="bold-text">影影</span><br>
- <span class="small-orange-text">生日</span>🎂<br>
- <span class="small-red-text">2024-7-03</span>
- </ion-label>
- </ion-item>
- </div>
- </ion-accordion>
- <ion-accordion value="second">
- <ion-item slot="header" color="light">
- <ion-label class="larger-font">📌建议</ion-label>
- </ion-item>
- <div class="ion-padding" slot="content">
- <ion-item>
- <ion-avatar slot="start">
- <img alt="头像" src="../../assets/2.jpg" />
- </ion-avatar>
- <ion-label><span class="bold-text">boss刘</span> <br>
- <span class="small-orange-text">还没记录任何该人物的往来信息</span><br>
- </ion-label>
- </ion-item>
- <ion-item>
- <ion-avatar slot="start">
- <img alt="头像" src="../../assets/3.jpg" />
- </ion-avatar>
- <ion-label>
- <span class="bold-text">飞马智哥</span><br>
- <span class="small-orange-text">还没添加该人物的关系</span><br>
- </ion-label>
- </ion-item>
- </div>
- </ion-accordion>
- <ion-accordion value="third">
- <ion-item slot="header" color="light">
- <ion-label class="larger-font">🎡功能</ion-label>
- </ion-item>
- <div class="ion-padding" slot="content">
- <ion-item button detail="true" routerLink="/lesson/me/userFollow">
- <ion-avatar slot="start">
- <img alt="" src="../../assets/2.jpg" />
- </ion-avatar>
- <ion-label><span class="bold-text2">记账</span> <br>
- <span class="small-orange-text2">金钱往来</span><br>
- </ion-label>
- </ion-item>
- <ion-item>
- <ion-avatar slot="start">
- <img alt="头像" src="../../assets/3.jpg" />
- </ion-avatar>
- <ion-label>
- <span class="bold-text2">想法</span><br>
- <span class="small-orange-text2">看法,想法,畅所欲言</span><br>
- </ion-label>
- </ion-item>
- <ion-item>
- <ion-avatar slot="start">
- <img alt="头像" src="../../assets/3.jpg" />
- </ion-avatar>
- <ion-label>
- <span class="bold-text2">礼物</span><br>
- <span class="small-orange-text2">送出和收到的礼物</span><br>
- </ion-label>
- </ion-item>
- <ion-item>
- <ion-avatar slot="start">
- <img alt="头像" src="../../assets/3.jpg" />
- </ion-avatar>
- <ion-label>
- <span class="bold-text2">技能&能力探索</span><br>
- <span class="small-orange-text2">检索人物的技能和能力</span><br>
- </ion-label>
- </ion-item>
- </div>
- </ion-accordion>
- </ion-accordion-group>
-
- <!-- 详细内容 -->
- <!-- 导航 -->
- <ion-card>
- <ion-toolbar>
- <ion-segment value="关注">
- <ion-segment-button value="推荐" (click)="cate='推荐'">
- <ion-icon name="bookmarks-outline"></ion-icon>
- <ion-label>浏览记录</ion-label>
- </ion-segment-button>
- <ion-segment-button value="关注" (click)="cate='关注'">
- <ion-icon name="heart-circle-outline"></ion-icon>
- <ion-label>赞过</ion-label>
- </ion-segment-button>
- <ion-segment-button value="科普" (click)="cate='科普'">
- <ion-icon name="pricetag-outline"></ion-icon>
- <ion-label>笔记</ion-label>
- </ion-segment-button>
- </ion-segment>
- <ion-buttons slot="end"><ion-button>编辑</ion-button></ion-buttons>
- </ion-toolbar>
- <!-- 好 HH-->
- </ion-card>
- <!-- 推荐图 -->
- <ng-container *ngIf="cate=='推荐'">
- <ion-list [inset]="true" lines="inset">
- <ng-container *ngFor="let recommend of myRecommendList">
- <ion-item>
- <ion-thumbnail slot="end">
- <img alt="推荐图" [src]="recommend?.get('img')" />
- </ion-thumbnail>
- <ion-label>
- <h2>{{recommend?.get('title')}}</h2>
- <p>{{recommend?.get('content')}}</p>
- <ion-note slot="start">{{recommend?.get('createdAt')| date: 'YYYY/MM/dd'||"发布时间"}}</ion-note>
- </ion-label>
- </ion-item>
- </ng-container>
- </ion-list>
- </ng-container>
- <!-- 科普关注 -->
- <ng-container *ngIf="cate=='关注'">
- <ion-grid>
- <ion-row>
- <ng-container *ngFor="let attention of myAttentionList">
- <ion-col size="6">
- <ion-card class="roleCard">
- <img alt="关注图" [src]="attention?.get('img')" />
- <ion-card-header>
- <ion-card-title>
- {{attention?.get('name')}}
- </ion-card-title>
- <ion-card-subtitle>{{attention?.get('createdAt')| date:
- 'YYYY/MM/dd'||"发布时间"}}</ion-card-subtitle>
- </ion-card-header>
- </ion-card>
- </ion-col>
- </ng-container>
- </ion-row>
- </ion-grid>
- </ng-container>
- <!-- 科普笔记 -->
- <ng-container *ngIf="cate=='科普'">
- <ng-container *ngFor="let science of myScienceList">
- <ion-card>
- <img alt="科普图" [src]="science?.get('img')" />
- <ion-card-header>
- <ion-card-title>{{science?.get('name')}}</ion-card-title>
- <ion-card-subtitle>{{science?.get('createdAt')| date:
- 'YYYY/MM/dd/HH:mm'||"发布时间"}}</ion-card-subtitle>
- <div class="metadata-end-wrapper-science">
- <ion-buttons slot="end">
- <ion-button>
- <ion-icon name="eye-outline" size="small"></ion-icon>
- <ion-note>{{science?.get('see')}}</ion-note>
- </ion-button>
- <ion-button>
- <ion-icon name="heart-outline" size="small"></ion-icon>
- <ion-note>{{science?.get('like')}}</ion-note>
- </ion-button>
- </ion-buttons>
- </div>
- </ion-card-header>
- <ion-card-content>
- <p class="foodContent">{{science?.get('content')}}</p>
- </ion-card-content>
- </ion-card>
- </ng-container>
- </ng-container>
- </ion-content>
|