Home banner add
This commit is contained in:
@@ -59,21 +59,21 @@
|
||||
</div> -->
|
||||
|
||||
|
||||
<div class="bg_white" *ngFor="let item of [1,2,3,4,5,6]" (click)="onDetails()">
|
||||
<div class="bg_white" *ngFor="let item of bannerData; let i = index" (click)="onDetails()">
|
||||
<div class="list">
|
||||
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/p2.jpg)'"></div>
|
||||
<div class="detail">
|
||||
<ion-label class="bg_text">3D Design</ion-label>
|
||||
|
||||
<ion-label class="name">3D Design Illustration</ion-label>
|
||||
<ion-label class="name">{{item.short_title}}</ion-label>
|
||||
|
||||
<ion-label class="price">$48.00 </ion-label>
|
||||
|
||||
<div class="row">
|
||||
<ion-icon name="star-half-outline" color="warning"></ion-icon>
|
||||
<ion-label class="small">4.9</ion-label>
|
||||
<ion-label class="small">|</ion-label>
|
||||
<ion-label class="small">8266 Students</ion-label>
|
||||
<!-- <ion-icon name="star-half-outline" color="warning"></ion-icon>-->
|
||||
<!-- <ion-label class="small">4.9</ion-label>-->
|
||||
<!-- <ion-label class="small">|</ion-label>-->
|
||||
<!-- <ion-label class="small">8266 Students</ion-label>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -30,12 +30,13 @@ export class HomePage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.getBlogData();
|
||||
this.getBannersData();
|
||||
console.log("BLOG HOME 002->", this.blogDataService.blogData);
|
||||
|
||||
// debugger;
|
||||
// this.firstname = this.sessionDataProviderService.firstname;
|
||||
}
|
||||
blogResult:any;
|
||||
bannerResult:any;
|
||||
bannerData: [];
|
||||
getBlogData(){
|
||||
this.wrenchService.getBlogData().subscribe(
|
||||
blogResult => {
|
||||
@@ -47,6 +48,28 @@ export class HomePage implements OnInit {
|
||||
);
|
||||
}
|
||||
|
||||
// 'member_id' => int 1
|
||||
// 'sessionid' => string '6AD58B08A9F458E6E6819DD603E202C657DB9BFFDD956C16386CC65975CE0D53' (length=64)
|
||||
// 'uid' => string '3119b744-42ad-4834-bb83-b737588754ca' (length=36)
|
||||
// 'action' => int 11200
|
||||
//
|
||||
usrData: {
|
||||
action:11200, member_id: number, uid: string, sessionid: string
|
||||
};
|
||||
getBannersData(){
|
||||
this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, sessionid: this.sessionDataProviderService.session }
|
||||
this.wrenchService.getHomeBanners(this.usrData).subscribe(
|
||||
bannerResult => {
|
||||
this.bannerResult = bannerResult;
|
||||
console.log("BANNERS RETURN->", this.bannerResult);
|
||||
this.bannerData = this.bannerResult.result_list;
|
||||
// debugger;
|
||||
console.log("BANNERS RETURN DATA->", this.bannerData);
|
||||
// this.blogDataService.setBlogData(this.blogResult.blog_data);
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
onDetails() {
|
||||
this.router.navigate(['detail']);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
<ion-tabs>
|
||||
|
||||
<ion-tab-bar slot="bottom">
|
||||
<div class="bottom_bardiv">
|
||||
<ion-tab-bar slot="bottom" class="bottom_bar">
|
||||
<ion-tab-button tab="tab1">
|
||||
<ion-icon name="home"></ion-icon>
|
||||
<ion-label>Home</ion-label>
|
||||
@@ -12,10 +12,9 @@
|
||||
<ion-label>My Course</ion-label>
|
||||
</ion-tab-button>
|
||||
|
||||
<ion-tab-button tab="tab3">
|
||||
<!-- <ion-icon name="chatbubble-ellipses"></ion-icon> -->
|
||||
<ion-tab-button tab="tab3" class="task_button">
|
||||
<ion-icon name="list-outline"></ion-icon>
|
||||
<ion-label>Market</ion-label>
|
||||
<ion-label>Tasks</ion-label>
|
||||
</ion-tab-button>
|
||||
|
||||
<ion-tab-button tab="tab4">
|
||||
@@ -29,4 +28,6 @@
|
||||
</ion-tab-button>
|
||||
</ion-tab-bar>
|
||||
|
||||
</div>
|
||||
|
||||
</ion-tabs>
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
/*
|
||||
Authors : initappz (Rahul Jograna)
|
||||
Website : https://initappz.com/
|
||||
App Name : E-Learning App Template
|
||||
This App Template Source code is licensed as per the
|
||||
terms found in the Website https://initappz.com/license
|
||||
Copyright and Good Faith Purchasers © 2021-present initappz.
|
||||
*/
|
||||
.task_button{
|
||||
background-color: aliceblue;
|
||||
border-radius: 40px;
|
||||
}
|
||||
.bottom_bardiv{
|
||||
background-color: red;
|
||||
// position:absolute;
|
||||
}
|
||||
|
||||
.bottom_bar{
|
||||
//background-color: red;
|
||||
max-width: 600px;
|
||||
}
|
||||
@@ -15,7 +15,7 @@ export class WrenchService {
|
||||
|
||||
constructor(private http: HttpClient) {
|
||||
|
||||
this.url = 'https://www.wrenchboard.com/svs/user';
|
||||
this.url = 'https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1';
|
||||
}
|
||||
|
||||
getPostData(reqPath:string, reqData): Observable<any> {
|
||||
@@ -33,7 +33,15 @@ export class WrenchService {
|
||||
return this.getPostData('blogdata',blogReq);
|
||||
//blogdata
|
||||
}
|
||||
|
||||
getHomeBanners(usrData){
|
||||
return this.getPostData('homebanners',usrData);
|
||||
}
|
||||
/*
|
||||
|
||||
|
||||
|
||||
|
||||
registerUser(newUserData) {
|
||||
// no session needed - will start the session
|
||||
return this.http.post(this.url + '/createmobileuser', newUserData)
|
||||
|
||||
@@ -20,6 +20,7 @@ export class SessionDataProviderService {
|
||||
isPedningJob: number = 0;
|
||||
isOfferJob: number = 0;
|
||||
profile_pic:string='';
|
||||
member_uid:string;
|
||||
|
||||
session_contructed:boolean = false;
|
||||
|
||||
@@ -38,6 +39,7 @@ export class SessionDataProviderService {
|
||||
this.username=loginResult.username;
|
||||
this.last_login = loginResult.last_login2;
|
||||
this.member_id = loginResult.member_id;
|
||||
this.member_uid = loginResult.uid;
|
||||
this.balance = loginResult.balance;
|
||||
this.ccard=loginResult.ccard;
|
||||
this.profile_pic=loginResult.profile_pic;
|
||||
|
||||
Reference in New Issue
Block a user