From c2d98cd0945af2dd7299547fe1dc1e91073c1de2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 18 Feb 2022 14:34:50 +0100 Subject: [PATCH] modif card resto --- src/app/card-resto/card-resto.component.html | 61 +++++++++++++------ src/app/card-resto/card-resto.component.ts | 7 +++ .../pages/resto-page/resto-page.component.ts | 3 + 3 files changed, 52 insertions(+), 19 deletions(-) diff --git a/src/app/card-resto/card-resto.component.html b/src/app/card-resto/card-resto.component.html index 350160d..7ade5b9 100644 --- a/src/app/card-resto/card-resto.component.html +++ b/src/app/card-resto/card-resto.component.html @@ -41,12 +41,11 @@ - 5-10€ + {{restaurant.prix}}

Site Web -

@@ -60,30 +59,54 @@
-
- Sur place : - - A emporter : - -
+
+ +
+ Sur place : + +
+ + Sur place : +

Infos non disponible.

+
+ +
+ A emporter : + +
+ + A emporter : +

Infos non disponible.

+
+
Accès PMR : - - + +
+ +
+ + +

Infos non disponible.

+
+
+ + + \ No newline at end of file diff --git a/src/app/card-resto/card-resto.component.ts b/src/app/card-resto/card-resto.component.ts index 3abf51e..b843623 100644 --- a/src/app/card-resto/card-resto.component.ts +++ b/src/app/card-resto/card-resto.component.ts @@ -13,9 +13,16 @@ export class CardRestoComponent implements OnInit { @Input() likeResto: any; @Output() clickLike = new EventEmitter(); isLiked : boolean = false; + priceRef : object; + constructor(private apiBackService : ApiBackService) { this.distance = 0 ; + this.priceRef = {1 : '€ 1-10€', + 2 : '€€ 11-20€', + 3 : '€€€ 21-30€', + 4 : '€€€€ 31-40€', + } } ngOnInit(): void { diff --git a/src/app/pages/resto-page/resto-page.component.ts b/src/app/pages/resto-page/resto-page.component.ts index 62ec299..4b1aee8 100644 --- a/src/app/pages/resto-page/resto-page.component.ts +++ b/src/app/pages/resto-page/resto-page.component.ts @@ -31,6 +31,9 @@ export class RestoPageComponent implements OnInit { }) } + console.log(this.apiBackService); + +