Update onepage.blade.php
This commit is contained in:
parent
075261ec44
commit
487f40a3e5
|
|
@ -201,7 +201,7 @@
|
|||
return false;
|
||||
},
|
||||
|
||||
validateForm: function (scope) {
|
||||
validateForm: async function (scope) {
|
||||
var isManualValidationFail = false;
|
||||
|
||||
if (scope == 'address-form') {
|
||||
|
|
@ -209,7 +209,7 @@
|
|||
}
|
||||
|
||||
if (! isManualValidationFail) {
|
||||
this.$validator.validateAll(scope)
|
||||
await this.$validator.validateAll(scope)
|
||||
.then(result => {
|
||||
if (result) {
|
||||
switch (scope) {
|
||||
|
|
@ -341,7 +341,7 @@
|
|||
.catch(function (error) {})
|
||||
},
|
||||
|
||||
saveAddress: function () {
|
||||
saveAddress: async function () {
|
||||
this.disable_button = true;
|
||||
|
||||
if (this.allAddress.length > 0) {
|
||||
|
|
@ -414,7 +414,7 @@
|
|||
})
|
||||
},
|
||||
|
||||
saveShipping: function () {
|
||||
saveShipping: async function () {
|
||||
this.disable_button = true;
|
||||
|
||||
this.$http.post("{{ route('shop.checkout.save-shipping') }}", {'shipping_method': this.selected_shipping_method})
|
||||
|
|
@ -444,7 +444,7 @@
|
|||
})
|
||||
},
|
||||
|
||||
savePayment: function () {
|
||||
savePayment: async function () {
|
||||
this.disable_button = true;
|
||||
|
||||
if (this.isCheckPayment) {
|
||||
|
|
@ -474,7 +474,7 @@
|
|||
}
|
||||
},
|
||||
|
||||
placeOrder: function () {
|
||||
placeOrder: async function () {
|
||||
if (this.isPlaceOrderEnabled) {
|
||||
this.disable_button = false;
|
||||
this.isPlaceOrderEnabled = false;
|
||||
|
|
@ -735,4 +735,4 @@
|
|||
})()
|
||||
</script>
|
||||
|
||||
@endpush
|
||||
@endpush
|
||||
|
|
|
|||
Loading…
Reference in New Issue