discount: 0,
//
nameSaved: {},
- confirmMessageCart: ''
+ confirmMessage: '',
+ confirmMessageText: "Vos informations ont été mises à jour avec succès !"
},
beforeMount() {
axios.post('/ajax/update', data)
.then(function (response) {
root.removeErrorsForm()
+ root.confirmMessage = root.confirmMessageText;
root.validateAction = true
root.form[id] = response.data
})
axios.post('/ajax/updateAddress', data)
.then(function (response) {
root.removeErrorsForm()
+ root.confirmMessage = root.confirmMessageText;
root.validateAction = true
})
.catch(function (error) {
axios.post('/ajax/storecart', data)
.then(function (response) {
root.validateAction = true
- root.confirmMessageCart = response.data;
+ root.confirmMessage = response.data;
})
.catch(function (error) {
console.log(error)
axios.post('/ajax/order', data)
.then(function (response) {
root.validateAction = true
- root.confirmMessageCart = response.data;
+ root.confirmMessage = response.data;
root.items = {}
})
.catch(function (error) {
padding: 0 25px
z-index: 999
//top: -120px
- top: -var(--header-height)
+ top: var(--header-height)
&-text
width: 100%
max-width: 744px
z-index: 1
box-shadow: 0 30px 60px rgba(24,47,76,.2)
font-family: 'Barlow',sans-serif
+ color: theme('colors.navy')
+ font-weight: 400
.mb-4
margin-bottom: 1rem !important
&-close