How to correctly determine the checked status of input and get the input values of all checked states in the change event in the vue project?

there is a shopping cart-like page in which each item has a checkbox,value that is the id,change of the item. I need to calculate the total price of the item when I submit it, and I need to get the id of all the selected items when I submit it.

< input type= "checkbox" v muri model = "item.state": value= "item.id" @ change= "count (item)" >

when I am in change, I use item.state to judge the checked status, so how should I get all the value, of the checked status input when I submit? some of the methods I have searched are that input"s v-model is bound to an array of values of the selected state, but I use v-model to determine the selected state, so I don"t know how to get these values. Or can I calculate the total price of the goods in other ways?

I have also looked at the examples in the official documents, but I don"t understand how to do it. Not long after I used vue, I am not very familiar with many things. I hope anyone who understands can tell me how to deal with this problem. Thank you ~

Apr.05,2021

first of all, always remember to change the checked status after operating the data shopping cart settlement click. In computed, use the filter method to Filter the selected item price calculation logic, which is nothing more than traversing the data iteration

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35c69-2bfb3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35c69-2bfb3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?