Browse Source

Merge branch 'master' of http://git.fmode.cn:3000/ai/app-gift

hid_msrpuwgj56ccf29 4 months ago
parent
commit
8aededda8e

+ 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>

+ 2 - 2
app-angular/src/modules/lesson/contact-list/contact-list.component.ts

@@ -15,8 +15,8 @@ export class ContactListPage implements OnInit {
 
   charGroupIndex:any = {}
   loadContact() {
-    const Contact = Parse.Object.extend('Contact');
-    const query = new Parse.Query(Contact);
+    const HrmContact = Parse.Object.extend('HrmContact');
+    const query = new Parse.Query(HrmContact);
     query.ascending('firstChar');
     if (this.searchName) {
       query.contains('name', this.searchName);

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

@@ -11,8 +11,8 @@ import { CheckboxCustomEvent } from '@ionic/angular';
 export class PageAddComponent {
   userAdd: any = {
     name: '',
-    tag: '',
-    desc: '',
+    gender: '',
+    mobile: '',
     img: ''
   };
   selectedImage: string | ArrayBuffer | null = null;
@@ -28,12 +28,12 @@ export class PageAddComponent {
   }
 
   async saveAdd() {
-    const Contact = Parse.Object.extend('Contact');
-    const newContact = new Contact();
+    const HrmContact = Parse.Object.extend('HrmContact');
+    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);
     // 设置其他联系人信息...