|
@@ -1,99 +1,80 @@
|
|
-<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-menu side="end" content-id="main-content">
|
|
|
|
+ <ion-header>
|
|
|
|
+ <ion-toolbar>
|
|
|
|
+ <ion-title>Menu Content</ion-title>
|
|
|
|
+ </ion-toolbar>
|
|
|
|
+ </ion-header>
|
|
|
|
+ <ion-content class="ion-padding">
|
|
|
|
+
|
|
|
|
+ <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-item [button]="true">
|
|
|
|
+ <ion-icon name="settings-outline" size="small"></ion-icon>
|
|
|
|
+ <ion-text>设置</ion-text>
|
|
|
|
+ </ion-item>
|
|
|
|
+ <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-list>
|
|
|
|
+ </ion-content>
|
|
|
|
+</ion-menu>
|
|
|
|
|
|
|
|
+<div class="ion-page" id="main-content">
|
|
|
|
+ <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-menu-button></ion-menu-button>
|
|
|
|
+
|
|
|
|
+ </ion-buttons>
|
|
|
|
+ </ion-toolbar>
|
|
|
|
+ </ion-header>
|
|
|
|
+ <ion-content class="ion-padding">
|
|
|
|
+
|
|
|
|
+ <div class="card-container">
|
|
|
|
+ <div class="card">
|
|
|
|
+ <div class="profile">
|
|
|
|
+ <ion-avatar>
|
|
|
|
+ <img alt="Silhouette of a person's head" src="../../assets/1.jpg" />
|
|
</ion-avatar>
|
|
</ion-avatar>
|
|
<ion-label>
|
|
<ion-label>
|
|
{{currentUser?.get("name") || '昵称'}}
|
|
{{currentUser?.get("name") || '昵称'}}
|
|
</ion-label>
|
|
</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-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>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- <ion-list [inset]="true">
|
|
<ion-button *ngIf="!currentUser?.id" expand="block" routerLink="/user/login">登录</ion-button>
|
|
<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-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-list> -->
|
|
|
|
+
|
|
|
|
|
|
<ion-accordion-group [multiple]="true" [value]="['first', 'third']">
|
|
<ion-accordion-group [multiple]="true" [value]="['first', 'third']">
|
|
<ion-accordion value="first">
|
|
<ion-accordion value="first">
|
|
@@ -223,7 +204,7 @@
|
|
</ion-item>
|
|
</ion-item>
|
|
<ion-item button detail="true" routerLink="/lesson/me/userFollow">
|
|
<ion-item button detail="true" routerLink="/lesson/me/userFollow">
|
|
<ion-avatar slot="start">
|
|
<ion-avatar slot="start">
|
|
- <img alt="头像" src="../../assets/20.png" />
|
|
|
|
|
|
+ <img alt="头像" src="../../assets/20.jpg" />
|
|
</ion-avatar>
|
|
</ion-avatar>
|
|
<ion-label>
|
|
<ion-label>
|
|
<span class="bold-text2">再见的人物</span><br>
|
|
<span class="bold-text2">再见的人物</span><br>
|
|
@@ -243,16 +224,16 @@
|
|
<ion-toolbar>
|
|
<ion-toolbar>
|
|
<ion-segment value="关注">
|
|
<ion-segment value="关注">
|
|
<ion-segment-button value="推荐" (click)="cate='推荐'">
|
|
<ion-segment-button value="推荐" (click)="cate='推荐'">
|
|
- <ion-icon name="bookmarks-outline"></ion-icon>
|
|
|
|
- <ion-label>浏览记录</ion-label>
|
|
|
|
|
|
+ <ion-icon name="footsteps-outline"></ion-icon>
|
|
|
|
+ <ion-label>我的足迹</ion-label>
|
|
</ion-segment-button>
|
|
</ion-segment-button>
|
|
<ion-segment-button value="关注" (click)="cate='关注'">
|
|
<ion-segment-button value="关注" (click)="cate='关注'">
|
|
<ion-icon name="heart-circle-outline"></ion-icon>
|
|
<ion-icon name="heart-circle-outline"></ion-icon>
|
|
<ion-label>赞过</ion-label>
|
|
<ion-label>赞过</ion-label>
|
|
</ion-segment-button>
|
|
</ion-segment-button>
|
|
<ion-segment-button value="科普" (click)="cate='科普'">
|
|
<ion-segment-button value="科普" (click)="cate='科普'">
|
|
- <ion-icon name="pricetag-outline"></ion-icon>
|
|
|
|
- <ion-label>笔记</ion-label>
|
|
|
|
|
|
+ <ion-icon name="star-half-outline"></ion-icon>
|
|
|
|
+ <ion-label>收藏</ion-label>
|
|
</ion-segment-button>
|
|
</ion-segment-button>
|
|
</ion-segment>
|
|
</ion-segment>
|
|
<ion-buttons slot="end"><ion-button>编辑</ion-button></ion-buttons>
|
|
<ion-buttons slot="end"><ion-button>编辑</ion-button></ion-buttons>
|
|
@@ -327,4 +308,6 @@
|
|
</ng-container>
|
|
</ng-container>
|
|
</ng-container>
|
|
</ng-container>
|
|
|
|
|
|
-</ion-content>
|
|
|
|
|
|
+</ion-content>
|
|
|
|
+<!-- </ion-content> -->
|
|
|
|
+</div>
|