Remin pareent

This commit is contained in:
CHIEFSOFT\ameye
2023-09-24 17:32:03 -04:00
parent 57500291da
commit 5377b1520f
7 changed files with 18 additions and 8 deletions
+3 -4
View File
@@ -2,7 +2,7 @@
<ion-toolbar>
<div class="heading">
<div class="left">
<div class="bg_image back_image" [style.backgroundImage]="'url(https://www.wrenchboard.com/assets/images/profile.jpg)'"></div>
<div class="bg_image back_image" [style.backgroundImage]="'url('+profilePicture+')'"></div>
<div>
<ion-label class="grey_text">Hello</ion-label>
<ion-label class="bold_text">{{firstname}}</ion-label>
@@ -10,7 +10,6 @@
</div>
<div class="right">
<ion-icon name="notifications-outline" (click)="onNotification()"></ion-icon>
<!-- <ion-icon name="bookmark-outline" (click)="onBookmark()"></ion-icon>-->
</div>
</div>
</ion-toolbar>
@@ -57,7 +56,7 @@
</div>
<ng-template #elseFulltag>
<div class="offer">
<div class="bg_image back_image" [style.backgroundImage]="'url(https://www.wrenchboard.com/assets/images/apps/offer.jpg)'"></div>
<div class="bg_image back_image" [style.backgroundImage]="'url('+offerBanner+')'"></div>
</div>
<div *ngFor="let item of bannerData; let i = index" class="bg_white {{item.short_style}} {{item.card_type}} " (click)="onDetails(item)">
<div class="list">
@@ -71,7 +70,7 @@
<div class="detail">
<ion-label class="name">{{item.short_title}}</ion-label>
<ion-label class="bg_text">{{item.short_description}}</ion-label>
<ion-label class="bg_text ovf">{{item.short_description}}</ion-label>
<!-- <ion-label class="price">$48.00 </ion-label>-->
+3
View File
@@ -317,6 +317,9 @@ ion-content {
text-align: center;
height: 38px;
width: 100%;
.ovf{
overflow: hidden;
}
}
.name {
+3
View File
@@ -17,6 +17,8 @@ export class HomePage implements OnInit {
active_job_count:number = 0;
blogData: [];
accountType:string="";
profilePicture = "https://www.wrenchboard.com/assets/images/profile.jpg";
offerBanner = "https://www.wrenchboard.com/assets/images/apps/offer.jpg";
constructor(
private router: Router,
@@ -49,6 +51,7 @@ export class HomePage implements OnInit {
}
this.profilePicture = this.sessionDataProviderService.profilePicture();
}
+1 -1
View File
@@ -14,7 +14,7 @@
<div class="boxed_contents">
<div *ngIf = "accountType == 'FAMILY'; else elseFulltag">
<div class="profile">
<div class="bg_image back_image" [style.backgroundImage]="'url(https://www.wrenchboard.com/assets/images/profile.jpg)'">
<div class="bg_image back_image" [style.backgroundImage]="'url('+profilePicture+')'">
<!-- <div class="icon">-->
<!-- <ion-icon name="pencil" (click)="onProfile()"></ion-icon>-->
<!-- </div>-->
+2 -1
View File
@@ -12,7 +12,7 @@ export class ProfilePage implements OnInit {
firstname:string='';
lastname:string='';
email:string='';
profilePicture:string='';
accountType:string="FULL";
constructor(
@@ -27,6 +27,7 @@ export class ProfilePage implements OnInit {
this.firstname = this.sessionDataProviderService.firstname;
this.lastname = this.sessionDataProviderService.lastname;
this.email = this.sessionDataProviderService.username;
this.profilePicture = this.sessionDataProviderService.profilePicture();
}
onFamily() {
@@ -31,11 +31,11 @@
<div class="items">
<div class="stud">
<ion-icon slot="start" name="time" color="primary"></ion-icon>
<ion-label>{{suggestData.added |date}}</ion-label>
<ion-label>Send: {{suggestData.added |date}}</ion-label>
</div>
<div class="stud">
<ion-icon slot="start" name="document-text" color="primary"></ion-icon>
<ion-label>{{suggestData.status_text}}</ion-label>
<ion-label>Status: {{suggestData.status_text}}</ion-label>
</div>
</div>
@@ -180,10 +180,14 @@ export class SessionDataProviderService {
this.isOfferJob = 0;
}
profilePicture(){
var defualtProfilePicture = "https://www.wrenchboard.com/assets/images/profile.jpg";
var profile_p = '';
if (this.profile_pic !=''){
profile_p="https://www.wrenchboard.com/smedia/LIVE/profile/"+this.profile_pic;
}
else{
profile_p = defualtProfilePicture;
}
return profile_p;
}
}