Fix data dsplay
This commit is contained in:
@@ -73,7 +73,14 @@ export class RegisterPage implements OnInit {
|
||||
this.refreshSignupCountry();
|
||||
}
|
||||
|
||||
signupCountry:any;
|
||||
signupCountry=[
|
||||
{
|
||||
"code": "US",
|
||||
"country": "United States",
|
||||
"phone_code": "1",
|
||||
"uid": "d5cdc546-6f5b-405d-b39a-0ea309e536a2"
|
||||
}
|
||||
];
|
||||
refreshSignupCountry(){
|
||||
//debugger;
|
||||
var reqD = {
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
<ion-content>
|
||||
<div class="boxed_contents">
|
||||
<ion-accordion-group>
|
||||
<ion-accordion *ngFor="let item of playGroundData" value="{{item.uid}}">
|
||||
<ion-accordion *ngFor="let item of resourceTabs" value="{{item.id}}">
|
||||
<ion-item class="arcord_head" slot="header" color="secondary">
|
||||
<ion-label><span style="font-weight: bolder; color: #8b198e">{{item.topic}}</span> </ion-label>
|
||||
<ion-label><span style="font-weight: bolder; color: #8b198e">{{item.content}}</span> </ion-label>
|
||||
</ion-item>
|
||||
<div class="ion-padding acc-item" slot="content" [innerHTML]="item.contents">
|
||||
<div class="ion-padding acc-item" slot="content" [innerHTML]="item.content">
|
||||
</div>
|
||||
</ion-accordion>
|
||||
</ion-accordion-group>
|
||||
|
||||
@@ -19,11 +19,41 @@ export class ResourcesPage implements OnInit {
|
||||
private navctr: NavController,
|
||||
private loadingCtrl: LoadingController,
|
||||
public tasksDataService: TasksDataService,
|
||||
public usersoffersDataService: UsersoffersDataService) { }
|
||||
public usersoffersDataService: UsersoffersDataService) {
|
||||
|
||||
//this.loadResources();
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.loadResources();
|
||||
}
|
||||
onBack() {
|
||||
this.navctr.back();
|
||||
}
|
||||
|
||||
usrData: {
|
||||
action:number, member_id: number, uid: string, sessionid: string, limit:20, page:1,offset: 0
|
||||
};
|
||||
resourceTotalData:any;
|
||||
resourceTabs:any;
|
||||
loadResources(){
|
||||
this.usrData =
|
||||
{
|
||||
action:11055,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
limit:20, page:1,offset: 0
|
||||
};
|
||||
|
||||
this.wrenchService.getResourcesList(this.usrData).subscribe(
|
||||
resourceTotalData => {
|
||||
this.resourceTotalData = resourceTotalData;
|
||||
console.log("resourceTotalData TOTAL RETURN->", this.resourceTotalData);
|
||||
this.resourceTabs = this.resourceTotalData.tab_categories.data;
|
||||
// debugger;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -156,7 +156,12 @@ export class WrenchService {
|
||||
return this.getPostData('paylistcard',usrData);
|
||||
}
|
||||
|
||||
deleteUserCard(reqData){
|
||||
getResourcesList(usrData){
|
||||
return this.getPostData('resources',usrData);
|
||||
}
|
||||
|
||||
|
||||
deleteUserCard(reqData){
|
||||
return this.getPostData("payremcard", reqData);
|
||||
}
|
||||
setSuggestStatus(usrData){
|
||||
|
||||
Reference in New Issue
Block a user