L
L
lookingfor22019-12-01 13:12:01
JavaScript
lookingfor2, 2019-12-01 13:12:01

How to make such a calculator in vue?

5de3919417fec992703438.png
Tell me, step by step where to dig and how to do it, please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2019-12-01
@lookingfor2

1. data array of options with sub options
2. data array of checked options with sub options
3. List of options ul -> li v-for
4. total region List of checked options ul -> li v-for
5. copy button handler from the list of options to the list of checked options
6. change the style of the button in the list of options style pp 5
7. computed property total. Iterates through the list of checked options and sums up the result
8. send request handler. Forms an application based on the selected options, based on a template, by the way, it is better to add the name, phone and mail fields

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question