@@ -84,19 +84,15 @@
if (this.filters.status != null) {
switch(this.filters.status) {
case 'Active':
- // code block
this.options.status = '2';
break;
case 'Complete':
- // code block
this.options.status = '3';
break;
}
}
- console.log(this.options);
-
this.searchKey +=1;
this.hasSubmited = true;
},
@@ -116,8 +112,19 @@
var currency = new URL(location.href).searchParams.get('currency');
if (currency != null) {
- if (currency == 'usd') {
-
+ switch (currency) {
+ case 'usd':
+ this.filters.fixed_currency_id = 3;
+ this.submitSearch();
+ break;
+ case 'cny':
+ this.filters.fixed_currency_id = 2;
+ this.submitSearch();
+ break;
+ case 'rmb':
+ this.filters.fixed_currency_id = 2;
+ this.submitSearch();
+ break;
}
}
}
diff --git a/resources/assets/vue/components/bookings/forms/ChooseCurrencyComponent.vue b/resources/assets/vue/components/bookings/forms/ChooseCurrencyComponent.vue
index e670a450..0fc1cd49 100644
--- a/resources/assets/vue/components/bookings/forms/ChooseCurrencyComponent.vue
+++ b/resources/assets/vue/components/bookings/forms/ChooseCurrencyComponent.vue
@@ -28,7 +28,7 @@
v-bind:key="currency.id">
+ @click="updateCurrency(currency)">