-
-
-
-
+
+
+
+
+
+
+

+
+
+

+
+
+
+
Vielen Dank für Ihre Anfrage
+
In Kürze erhalten Sie eine Bestätigung per E-Mail.
Ein Mitarbeiter wird sich zeitnah bei Ihnen melden.
+
+
Viele Grüße
Deine Immobilienbewertung
+
+

+
+
+
- Absenden
@@ -149,22 +186,26 @@ import veeno from 'veeno';
import wNumb from 'wnumb';
import 'nouislider/distribute/nouislider.min.css';
import axios from 'axios';
+import dayjs from 'dayjs';
export default {
data: function() {
return {
+ finished: true,
tooltips: [wNumb({decimals: 0})],
pipsy: {
- mode: 'range',
- density: 3,
- filter: () => 1,
+ mode: 'steps',
+ density: 1,
+ filter: function(value) {
+ return value % 50 === 0 ? 1 : 0;
+ },
format: wNumb({
decimals: 0
})
},
- range: {min: 1600, max: 2020},
+ range: {min: [1800, 1], max: [dayjs().year(), 1]},
value: {
- category_id: null,
+ category_id: 'Haus',
living_area: null,
plot_area: null,
construction_year: null,
@@ -178,7 +219,7 @@ export default {
phone: '',
email: ''
},
- innerStep: 0,
+ innerStep: 7,
categories: [
{key: 'Haus', label: 'Haus', icon: 'category-house'},
{key: 'Grundstück', label: 'Grundstück', icon: 'category-plot'},
@@ -254,8 +295,11 @@ export default {
back() {
this.innerStep--;
},
- submit() {
- axios.post('/wp-admin/admin-ajax.php?action=stepper_submit', this.value);
+ async submit() {
+ await axios.post('/wp-admin/admin-ajax.php?action=stepper_submit', this.value);
+
+ this.innerStep++;
+ this.finished = true;
}
},
components: {
diff --git a/assets/js/app.js b/assets/js/app.js
index 985ca7e..bc4bfd8 100644
--- a/assets/js/app.js
+++ b/assets/js/app.js
@@ -5,6 +5,7 @@ import Stepper from './Stepper.vue';
import RadioGrid from './components/RadioGrid.vue';
import Pagination from './components/Pagination.vue';
import VBtn from './components/VBtn.vue';
+import VText from './components/VText.vue';
import svg from './svg.mixin.js';
Vue.mixin(svg);
@@ -12,6 +13,7 @@ Vue.component('radio-grid', RadioGrid);
Vue.component('stepper', Stepper);
Vue.component('v-btn', VBtn);
Vue.component('pagination', Pagination);
+Vue.component('v-text', VText);
const app = new Vue();
app.$mount(document.getElementById('stepper-main'));
diff --git a/assets/js/components/Pagination.vue b/assets/js/components/Pagination.vue
index 9a831ea..42e9bb0 100644
--- a/assets/js/components/Pagination.vue
+++ b/assets/js/components/Pagination.vue
@@ -4,7 +4,8 @@
Zurück