File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/v3/src/store/modules/coupon.js
Back
export default { namespaced: true, state: () => ({ code: '', discount: '', deduction: '', limit: '', error: '', loading: false }), getters: { getCoupon (state) { return { code: state.code, discount: state.discount, deduction: state.deduction, limit: state.limit } }, getCode (state) { return state.code }, getError (state) { return state.error }, getLoading (state) { return state.loading }, }, mutations: { setCoupon (state, payload) { state.code = payload.code state.discount = payload.discount state.deduction = payload.deduction state.limit = payload.limit }, setCode (state, payload) { state.code = payload }, setError (state, payload) { state.error = payload }, setLoading (state, payload) { state.loading = payload } }, actions: { restCoupon ({commit}) { commit('setCoupon', { code: '', discount: '', deduction: '', limit: '', }) } } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings