Commit 5ccf1adb authored by Cédric Moreau's avatar Cédric Moreau

[enh] Meilleur affichage des prix

parent a8ee48c6
......@@ -9,6 +9,13 @@
</p>
<h3>Description</h3>
<pre>{{ announceService.ann.descParagraphe }}</pre>
<h3>Prix</h3>
<p class="price">
{{ announceService.ann.price }} Ğ1
</p>
<p class="fees" *ngIf="announceService.ann.feesFloat">
+{{ announceService.ann.fees }} Ğ1 (frais de transport)
</p>
<h3>Stock</h3>
<p>
{{ announceService.ann.stock }} unités disponibles.
......
......@@ -3,4 +3,9 @@ announce {
img {
padding-right: 30px;
}
.price {
font-size: 25px;
color: coral;
}
}
home {
#home-list h3 {
color: gray;
color: coral;
font-weight: bold;
}
......
......@@ -69,6 +69,7 @@ export class AnnounceService {
this.ann = res.json().announce
this.ann.descLigne = this.ann.desc.replace(/\\n+/g, ' ')
this.ann.descParagraphe = this.ann.desc.replace(/\\n/g, '\n')
this.ann.feesFloat = parseFloat(this.ann.fees)
this.ann.images = this.ann.images || []
this.stockInitial = this.ann.stock
this.creation = false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment