diff --git a/src/app/pages/home/home.page.html b/src/app/pages/home/home.page.html
index 41dbe8b..ffd5ff4 100644
--- a/src/app/pages/home/home.page.html
+++ b/src/app/pages/home/home.page.html
@@ -36,22 +36,22 @@
diff --git a/src/app/pages/home/home.page.ts b/src/app/pages/home/home.page.ts
index 097bc12..aa9d944 100644
--- a/src/app/pages/home/home.page.ts
+++ b/src/app/pages/home/home.page.ts
@@ -41,7 +41,7 @@ export class HomePage implements OnInit {
}
if (this.accountType == 'FAMILY'){
-
+ this.getFamilySuggestList();
}
}
@@ -56,7 +56,7 @@ export class HomePage implements OnInit {
}
if (this.accountType == 'FAMILY'){
-
+ this.getFamilySuggestList();
}
}
blogResult:any;
@@ -80,10 +80,15 @@ export class HomePage implements OnInit {
// 'action' => int 11200
//
usrData: {
- action:11200, member_id: number, uid: string, sessionid: string
+ action:number, member_id: number, uid: string,
+ sessionid: string,
+ 'limit': 30,
+ 'offset': 0
};
getBannersData(){
- this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, sessionid: this.sessionDataProviderService.session }
+ this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid,
+ sessionid: this.sessionDataProviderService.session,'limit': 30,
+ 'offset': 0 }
this.wrenchService.getHomeBanners(this.usrData).subscribe(
bannerResult => {
this.bannerResult = bannerResult;
@@ -94,7 +99,26 @@ export class HomePage implements OnInit {
// this.blogDataService.setBlogData(this.blogResult.blog_data);
}
);
+ }
+ familySuggestResult:any;
+ familySuggestData:any;
+ getFamilySuggestList(){
+ this.usrData = {
+ action:13010,
+ member_id: this.sessionDataProviderService.member_id,
+ uid: this.sessionDataProviderService.member_uid,
+ sessionid: this.sessionDataProviderService.session,
+ 'limit': 30,
+ 'offset': 0
+ };
+ this.wrenchService.familySuggestList(this.usrData).subscribe(
+ familySuggestResult => {
+ this.familySuggestResult = familySuggestResult;
+ console.log("familySuggestResult RETURN->", this.familySuggestResult);
+ this.familySuggestData = this.familySuggestResult.result_list;
+ }
+ );
}
onDetails(item) {
// var pageToNavigate = 'detail';
diff --git a/src/app/services/wrench.service.ts b/src/app/services/wrench.service.ts
index aa3b052..2ab60dd 100644
--- a/src/app/services/wrench.service.ts
+++ b/src/app/services/wrench.service.ts
@@ -191,6 +191,9 @@ export class WrenchService {
return this.getPostData("sendmoney", sendmoneyData);
}
+ familySuggestList(usrData){
+ return this.getPostData("familysuggestlist", usrData);
+ }
// END POINT FOR WORKER TO MARK TASK AS COMPLETED
workerJobAction(reqData) {
var postData = {