<ion-card class="app-user-info">
    <ion-card-content  style="padding: 10px 0;">
        <ion-item lines="none" href="javascript:;">
            <ion-avatar slot="start">
                <img [src]="userInfo.userhead ? userInfo.userhead : './assets/icon/default_head.svg'" onerror="this.src = './assets/icon/default_head.svg'">
            </ion-avatar>
            <ion-label>
                <h2>{{ userInfo.username }}</h2>
                <p>{{ userInfo.loginname }}</p>
            </ion-label>
            <ng-content></ng-content>
        </ion-item>
    </ion-card-content>
</ion-card>