WIP MMCM
This commit is contained in:
@@ -3,9 +3,7 @@
|
|||||||
<div class="step_title">Indiquez votre adresse de livraison :</div>
|
<div class="step_title">Indiquez votre adresse de livraison :</div>
|
||||||
|
|
||||||
<div class="alert alert-warning" role="alert" v-if="alertBox === 1">
|
<div class="alert alert-warning" role="alert" v-if="alertBox === 1">
|
||||||
Nous sommes désolé mais votre adresse est trop eloignée de la pharmacie pour bénéficier de ce service<br/>
|
Nous sommes désolé mais votre adresse est trop eloignée de la pharmacie pour bénéficier de ce service
|
||||||
Nous vous invitions à utiliser le service de La Poste pour trouver une pharmacie proche de chez vous :
|
|
||||||
<a href="https://www.mesmedicamentschezmoi.com" target="_blank">Accéder à mesmedicamentschezmoi.com</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-danger" role="alert" v-if="alertBox === 2">
|
<div class="alert alert-danger" role="alert" v-if="alertBox === 2">
|
||||||
@@ -114,12 +112,13 @@ export default {
|
|||||||
|
|
||||||
this.isSearching = true
|
this.isSearching = true
|
||||||
this.noOfferFound = false
|
this.noOfferFound = false
|
||||||
this.searchResults = await fetch('https://api-adresse.data.gouv.fr/search/?q=' + this.query)
|
this.searchResults = await fetch('https://api-adresse.data.gouv.fr/search/?q=' + this.query + '&citycode=13055')
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
return response.json();
|
return response.json();
|
||||||
}).then(function (jsonObj) {
|
}).then(function (jsonObj) {
|
||||||
this.isSearching = false
|
this.isSearching = false
|
||||||
return jsonObj.features;
|
// return jsonObj.features.filter(obj=>obj.properties.postcode.indexOf('13') === 0);
|
||||||
|
return jsonObj.features
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
},
|
},
|
||||||
selectChoice(item) {
|
selectChoice(item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user