one blog
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
ion-content {
|
||||
.back_image {
|
||||
width: 100%;
|
||||
height: 230px;
|
||||
height: 130px;
|
||||
|
||||
.back {
|
||||
font-size: 25px;
|
||||
|
||||
@@ -76,7 +76,7 @@ export class FamilyloginPage implements OnInit {
|
||||
}
|
||||
|
||||
getBlogData(){
|
||||
this.wrenchService.getBlogData().subscribe(
|
||||
this.wrenchService.getBlogData([]).subscribe(
|
||||
blogResult => {
|
||||
this.blogResult = blogResult;
|
||||
console.log("BLOG RETURN->", this.blogResult);
|
||||
|
||||
@@ -29,7 +29,7 @@ export class HomePage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.getBlogData();
|
||||
this.getBlogData([]);
|
||||
this.getBannersData();
|
||||
console.log("BLOG HOME 002->", this.blogDataService.blogData);
|
||||
// this.firstname = this.sessionDataProviderService.firstname;
|
||||
@@ -37,8 +37,8 @@ export class HomePage implements OnInit {
|
||||
blogResult:any;
|
||||
bannerResult:any;
|
||||
bannerData: [];
|
||||
getBlogData(){
|
||||
this.wrenchService.getBlogData().subscribe(
|
||||
getBlogData(blogReq=[]){
|
||||
this.wrenchService.getBlogData(blogReq).subscribe(
|
||||
blogResult => {
|
||||
this.blogResult = blogResult;
|
||||
console.log("BLOG RETURN->", this.blogResult);
|
||||
@@ -81,7 +81,8 @@ export class HomePage implements OnInit {
|
||||
break;
|
||||
|
||||
case 'blog-page':
|
||||
|
||||
// this.blogDetails(this.getOneBlog(item));
|
||||
this.getOneBlog(item);
|
||||
break;
|
||||
|
||||
case 'my-review-jobs':
|
||||
@@ -105,7 +106,23 @@ export class HomePage implements OnInit {
|
||||
this.router.navigate([pageToNavigate]);
|
||||
}
|
||||
}
|
||||
selBlogResult:any;
|
||||
getOneBlog(item){
|
||||
const bligTmF ={
|
||||
sessionid: this.sessionDataProviderService.session,
|
||||
blog_id: item.blog_id,
|
||||
limit: 1
|
||||
};
|
||||
|
||||
this.wrenchService.getBlogData(bligTmF).subscribe(
|
||||
blogResult1 => {
|
||||
this.selBlogResult = blogResult1.blogdata[0];
|
||||
console.log("selBlogResult RETURN->", this.selBlogResult);
|
||||
this.blogDetails(this.selBlogResult );
|
||||
}
|
||||
);
|
||||
return this.selBlogResult;
|
||||
}
|
||||
blogDetails(item) {
|
||||
var pageToNavigate = 'blogdetail';
|
||||
this.router.navigate([pageToNavigate],{state: item} );
|
||||
|
||||
@@ -36,7 +36,7 @@ export class LoginPage implements OnInit {
|
||||
}
|
||||
|
||||
getBlogData(){
|
||||
this.wrenchService.getBlogData().subscribe(
|
||||
this.wrenchService.getBlogData([]).subscribe(
|
||||
blogResult => {
|
||||
this.blogResult = blogResult;
|
||||
console.log("BLOG RETURN->", this.blogResult);
|
||||
|
||||
@@ -74,8 +74,8 @@ export class WrenchService {
|
||||
return this.getPostData('userlogin',loginData);
|
||||
}
|
||||
|
||||
getBlogData(){
|
||||
const blogReq=[];
|
||||
getBlogData(blogReq){
|
||||
//const blogReq=[];
|
||||
return this.getPostData('blogdata',blogReq);
|
||||
//blogdata
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user