How does Mini Program judge the added style?

< view bindtap= "shopselect" wx:key= "speckone" wx:for= "{{pagedata.Specs}}" class=" {{item.RealStock > 0? "zl": "nohave"} "data-max= "{{item.RealStock}}" data-id= "{{item.Id}}"

{{item.SpecValue}} < / view >

this is the view that is looped out.
but through the shopselect event. When you click on a view. Add the act class to the view. Other view cancels act. How do you write it?

Sep.11,2021

my expressive ability is not good, so I wrote a small demo, for reference. I don't know if you want this effect.
Code snippet is as follows:
Code snippet, click to jump

.
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-1b3baec-2ba2e.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-1b3baec-2ba2e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?