fix
This commit is contained in:
@@ -54,12 +54,24 @@
|
|||||||
Practice
|
Practice
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item-divider>
|
</ion-item-divider>
|
||||||
|
|
||||||
|
<ion-item *ngFor="let type of myPracticeList" >
|
||||||
|
<ion-avatar slot="start">
|
||||||
|
<img src="./../../assets/imgs/avatar.svg">
|
||||||
|
</ion-avatar>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{type.practice_name}}</h3>
|
||||||
|
<p>{{type.address}} , {{type.city}} , {{type.country}}</p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
|
||||||
|
<ion-item>
|
||||||
|
<ion-button expand="full" shape="round" color="primary" (click)="goPractice()">Manage</ion-button>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
<ion-item (click)="goPractice()"><ion-label>Manage</ion-label></ion-item>
|
|
||||||
<ion-item><ion-label>B3</ion-label></ion-item>
|
|
||||||
<ion-item><ion-label>B4</ion-label></ion-item>
|
|
||||||
<ion-item><ion-label>B5</ion-label></ion-item>
|
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
<ion-button expand="full" shape="round" color="danger" (click)="goLogout()">Log Out</ion-button>
|
<ion-button expand="full" shape="round" color="danger" (click)="goLogout()">Log Out</ion-button>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ import {
|
|||||||
LoadingController,
|
LoadingController,
|
||||||
} from '@ionic/angular'
|
} from '@ionic/angular'
|
||||||
|
|
||||||
|
import { MermsServiceProviderService } from './../providers/merms-service-provider.service';
|
||||||
|
import { MermsSessionService } from './../merms-session.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-merms-settings',
|
selector: 'app-merms-settings',
|
||||||
@@ -17,7 +18,49 @@ export class MermsSettingsPage implements OnInit {
|
|||||||
|
|
||||||
doctor_profile_picture:string='../../assets/imgs/avatarM.png';
|
doctor_profile_picture:string='../../assets/imgs/avatarM.png';
|
||||||
|
|
||||||
constructor( public navCtrl: NavController,private router: Router) { }
|
constructor( public navCtrl: NavController,private router: Router,
|
||||||
|
private mermsServiceProviderService: MermsServiceProviderService,
|
||||||
|
private mermsSessionService: MermsSessionService
|
||||||
|
) {
|
||||||
|
this.getPracticeData();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
currentProviderData: {
|
||||||
|
sessionid: string,
|
||||||
|
member_id: number,
|
||||||
|
card_count: number
|
||||||
|
card_type: number
|
||||||
|
};
|
||||||
|
|
||||||
|
cardData: any;
|
||||||
|
myPracticeList: any;
|
||||||
|
|
||||||
|
getPracticeData() {
|
||||||
|
console.log('MermsServiceProviderService::getPracticeData() ######## @@@@ ########');
|
||||||
|
this.currentProviderData = {
|
||||||
|
sessionid: this.mermsSessionService.session,
|
||||||
|
member_id: this.mermsSessionService.member_id,
|
||||||
|
card_count: 100,
|
||||||
|
card_type: 22000
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
try {
|
||||||
|
this.mermsServiceProviderService.genericGetService('provider/practicelist', this.currentProviderData).subscribe(myPracticeList => {
|
||||||
|
console.log("card data result 22k: ", myPracticeList[0]['payload']);
|
||||||
|
this.myPracticeList = myPracticeList[0]['payload'];
|
||||||
|
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user