Fatima-Q2-June
Sultan Khan 5 years ago
parent 9a8176fe7b
commit 72756d812d

@ -225,4 +225,4 @@
"ios"
]
}
}
}

@ -10,7 +10,7 @@
<ion-content>
<div class="container-icon" *ngIf="categories.length>0">
<ion-item *ngFor="let key of categories" (click)="filterOffers(key)" [ngClass]="{'active':activeClass==key.name }">
<ion-item lines="none" *ngFor="let key of categories" (click)="filterOffers(key)" [ngClass]="{'active':activeClass==key.name }">
<ion-label>
{{key.name}}
</ion-label>

@ -12,7 +12,7 @@ ion-thumbnail img{
top: 15px;
padding: 0px;
background: #3cc353;
padding: 3px 2px 2px 3px;
padding: 3px 2px 0px 3px;
border-radius: 60%;
font-size: 12px;
color: #fff;
@ -22,6 +22,11 @@ ion-thumbnail img{
text-align: center;
z-index: 2;
}
ion-item{
border-bottom: 1px solid #ccc;
--padding-start: 0px;
margin: 0 20px 4px 20px;
}
.footer-button{
background: var(--newgreen)!important;border-radius: 10px; --background: transparent;

@ -172,7 +172,7 @@ ion-content{
position: relative;
}
.top img{
width: 35px;
height: 35px;
margin: 5px 5px 0px 5px;
}

@ -58,7 +58,7 @@
</strong>
</p>
<ion-row *ngIf="related" class="related-offers-container">
<ion-col size="6" *ngFor="let item of related">
<ion-col size="6" *ngFor="let item of related" (click)="openRelated(item)">
<ion-card class="related-card">
<ion-card-header>
<div class="header-img" [ngStyle]="{'background-image': 'url(' + item.Banner_Image + ')'}" ></div>

@ -35,8 +35,16 @@ export class OfferDetailsComponent implements OnInit {
return temporalDivElement.textContent || temporalDivElement.innerText || "";
}
share() {
this.socialSharing.share(this.details.Description, this.details.Title, this.details.Banner_Image).then((result) => {
this.socialSharing.share(this.stripHtml(this.details.Description), this.stripHtml(this.details.Title), this.details.Banner_Image).then((result) => {
console.log(result);
})
}
openRelated(item) {
this.cs.sharedService.setSharedData(item, OfferDiscountService.selected_offers);
this.cs.back();
setTimeout(() => {
this.cs.navigateForward('/offersdiscount/offer-details');
}, 200);
}
}

Loading…
Cancel
Save