flowaaa 4 ay önce
ebeveyn
işleme
65425997a0

+ 1 - 1
app-angular/src/modules/lesson/contact-list/contact-list.component.html

@@ -31,7 +31,7 @@
       </ion-item-divider>
       <ion-item lines="none">
         <ion-avatar slot="start">
-          <img [src]="contact.get('avatarUrl') || 'https://ionicframework.com/docs/img/demos/avatar.svg'">
+          <img [src]="contact.get('img') || 'https://ionicframework.com/docs/img/demos/avatar.svg'">
         </ion-avatar>
         <ion-label>
           <h2>{{ contact.get('name') }}</h2>

+ 4 - 4
app-angular/src/modules/user/page-add/page-add.component.ts

@@ -10,8 +10,8 @@ import * as Parse from "parse";
 export class PageAddComponent {
   userAdd: any = {
     name: '',
-    tag: '',
-    desc: '',
+    gender: '',
+    mobile: '',
     img: ''
   };
   selectedImage: string | ArrayBuffer | null = null;
@@ -25,8 +25,8 @@ export class PageAddComponent {
     const newContact = new HrmContact();
 
     newContact.set('name', this.userAdd.name);
-    newContact.set('tag', this.userAdd.tag);
-    newContact.set('desc', this.userAdd.desc);
+    newContact.set('gender', this.userAdd.gender);
+    newContact.set('mobile', this.userAdd.mobile);
     newContact.set('img', this.userAdd.img);
     // 设置其他联系人信息...