fix
This commit is contained in:
@@ -6,6 +6,8 @@ import {
|
||||
LoadingController,
|
||||
} from '@ionic/angular'
|
||||
|
||||
import { MermsServiceProviderService } from './../providers/merms-service-provider.service';
|
||||
import { MermsSessionService } from './../merms-session.service';
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -15,7 +17,12 @@ import {
|
||||
})
|
||||
export class MermsPracticePage implements OnInit {
|
||||
|
||||
constructor(public navCtrl: NavController,private router: Router) { }
|
||||
constructor(public navCtrl: NavController,private router: Router,
|
||||
private mermsServiceProviderService: MermsServiceProviderService,
|
||||
private mermsSessionService: MermsSessionService
|
||||
) {
|
||||
this.getPracticeData();
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
@@ -23,4 +30,38 @@ export class MermsPracticePage implements OnInit {
|
||||
console.log('MERMSLoginPage::goBack()')
|
||||
this.navCtrl.pop()
|
||||
}
|
||||
|
||||
currentProviderData: {
|
||||
sessionid: string,
|
||||
member_id: number,
|
||||
card_count: number
|
||||
card_type: number
|
||||
};
|
||||
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);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user